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

lightningd: introduce some changes for dual open id randomness even with CLN_DEV_ENTROPY_SEED.

Public commit record

What the developer wrote

Authored by Rusty Russell

70/100 · Adequate
lightningd: introduce some changes for dual open id randomness even with CLN_DEV_ENTROPY_SEED.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides an explanatory body✓ Names security-relevant behavior explicitly
The short version

What changed, and why it matters

This commit fixes a developer-only edge case. When running Core Lightning with a special developer mode flag (CLN_DEV_ENTROPY_SEED) that forces the same randomness seed for testing, multiple channel-opening sub-processes could accidentally pick the same internal IDs. That could cause a PSBT (transaction-building data structure) collision when combining contributions. The fix tweaks the seed slightly for each new sub-process so IDs differ, then restores the original seed afterward. It is not a normal user security bug and does not expose funds or keys.

Recommended action

No urgent action needed. Treat as a minor robustness improvement for developer/regression testing. Reviewers may want to confirm the seed is always restored on error paths and that atol() on a 64-bit seed string cannot overflow or mis-parse non-numeric seeds.

Security signals we found

01

developer-mode-only code path

02

entropy seed collision avoidance

03

dual-funding PSBT ID collision mitigation

04

environment variable mutation around subdaemon spawn

Risk score

Why this scored 23/100

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