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

Use `SINGLE|ACP` sighash on signatures from peer in 0FC channels

Public commit record

What the developer wrote

Authored by Leo Nash

65/100 · Adequate
Use `SINGLE|ACP` sighash on signatures from peer in 0FC channels

Co-authored-by: Matt Corallo <git@bluematt.me>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This commit fixes how a Lightning node validates signatures from its channel peer for a newer type of channel (0FC, or 'zero-fee commitments'). Previously, the code expected the older SIGHASH_ALL signature type for these channels, which would cause the node to reject valid peer signatures or fail to build valid transactions. The fix makes the code use SIGHASH_SINGLE|SIGHASH_ANYONECANPAY for 0FC channels, matching the protocol design. A mismatch here could prevent correct operation or, in the worst case, be exploited to make a node accept an invalid transaction state, though the commit itself is small and defensive.

Recommended action

Review related 0FC channel specification and test vectors to confirm SIGHASH_SINGLE|SIGHASH_ANYONECANPAY is the intended sighash for all HTLC signatures in zero-fee commitment channels. Add regression tests covering signature validation and HTLC claim transaction construction for 0FC channels. Consider whether any deployed nodes need to resync or revalidate prior 0FC channel states.

Security signals we found

01

Signature hash type mismatch between channel variants

02

Peer-provided signature handling changed for newer channel type

03

Defensive alignment of sighash policy across signer implementations

04

No explicit vulnerability language in commit message

Risk score

Why this scored 57/100

Our methodology →
Potential impact 18/30
Exploitability 12/25
Stealth signal 8/15
Affected reach 10/15
Confidence 6/10
Evidence quality 3/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.