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

common: fix up test vectors' invoice_merkle_root.

Public commit record

What the developer wrote

Authored by Rusty Russell

78/100 · Adequate
common: fix up test vectors' invoice_merkle_root.

Calculate proof_merkle_root properly: we accidentally printed the
`invoice_merkle_root` again here.

Reported-by: @t-bast.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ 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 change fixes a test-vector generator used only in Core Lightning's own test suite. The generator was accidentally printing the invoice merkle root twice and labeling the second copy as the 'proof merkle root.' The fix computes and prints the actual proof merkle root. This is a test-data bug, not a bug in live payment code, so it does not directly endanger user funds or node security.

Recommended action

No urgent action required for operators. Merge the fix so that generated BOLT12 proof test vectors are correct and downstream implementers do not rely on invalid vectors. Review any vectors generated from the buggy revision and regenerate them if they were published.

Security signals we found

01

Test-only vector generator bug

02

Incorrect merkle root printed in generated test vectors

03

No change to production signing/verification logic

04

Reported by external contributor (@t-bast)

Risk score

Why this scored 18/100

Our methodology →
Potential impact 2/30
Exploitability 0/25
Stealth signal 1/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.