AI-generated analysisPublished automatically and not human-verified. Validated context appears in community notes below.
← Watch feed
Informational 17 Bitcoin

Enforce that `ChanelSigner::pubkeys` is only called once

Public commit record

What the developer wrote

Authored by Matt Corallo

83/100 · Strong
Enforce that `ChanelSigner::pubkeys` is only called once

In the previous commit we partially reverted
9d291e01f98417c2f6b2d4321bbf806464c424a6 renaming
`ChannelSigner::new_pubkeys` to `pubkeys` again, but we still don't
want to go back to requiring that `pubkeys` return the same
contents on each call. Thus, here, we add test logic to check that
`pubkeys` isn't called more than once.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
The short version

What changed, and why it matters

This commit only changes a test helper used during development. It adds an internal guard so that a mock signer in the test suite panics if its public keys are fetched more than once. It does not change production code, network behavior, or wallet security. There is no indication this fixes a real vulnerability.

Recommended action

No action required. Treat as a routine test-hardening change. If reviewing a release that includes this commit, verify separately whether the preceding `ChannelSigner::pubkeys` API change has any production implications, but this commit itself is not a security patch.

Security signals we found

01

No production code changed

02

Test-only file under `src/util/test_channel_signer.rs`

03

Commit message describes a design/test invariant, not a vulnerability

04

No CVE, advisory, or vendor security disclosure referenced

05

No externally reported incident or researcher attribution present

Risk score

Why this scored 17/100

Our methodology →
Potential impact 2/30
Exploitability 0/25
Stealth signal 0/15
Affected reach 2/15
Confidence 9/10
Evidence quality 4/5
Human-validated context

Community notes

Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.

No validated notes yet.

The AI analysis stands alone for now. Submit a note if you can add evidence or important context.