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

common: enforce currency-requires-amount check.

Public commit record

What the developer wrote

Authored by Rusty Russell

60/100 · Adequate
common: enforce currency-requires-amount check.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body
The short version

What changed, and why it matters

This change makes Core Lightning refuse BOLT12 offers that specify a currency but no amount. Previously the code did not enforce this rule, which could let a node process malformed offers in ways the protocol says it must not. The fix is small and adds a test that now passes.

Recommended action

Treat as a low-to-moderate reliability/protocol-compliance fix. Review whether any other BOLT12 mandatory offer field combinations are unenforced, and ensure the new test covers edge cases such as currency with a zero versus missing amount.

Security signals we found

01

Protocol compliance enforcement (BOLT #12 currency-requires-amount rule)

02

Rejection of malformed offer input that was previously accepted

03

Removal of xfail test marker indicating a known-failing behavior is now fixed

Risk score

Why this scored 44/100

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