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

fix(phoenixd): use descriptionHash when unhashed_description is provided (#3913)

Public commit record

What the developer wrote

Authored by Richard

85/100 · Strong
fix(phoenixd): use descriptionHash when unhashed_description is provided (#3913)

Co-authored-by: Richard Taylor <RT@MacBookPro.lan>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides an explanatory body✓ Links an issue, advisory, or supporting reference
The short version

What changed, and why it matters

This commit fixes how LNbits' PhoenixD wallet integration handles invoice descriptions. Previously, when a caller provided an 'unhashed_description', the code ignored it and fell back to a short text memo. The fix now correctly hashes that full description and sends it to PhoenixD as a description hash, matching the expected BOLT-11 invoice behavior. This is a correctness fix that prevents invoices from having mismatched or missing descriptions, which could break payment flows or cause wallets to reject invoices.

Recommended action

Review other wallet backends for consistent handling of unhashed_description and description_hash. Ensure integration tests cover cases where unhashed_description is provided without description_hash. No urgent security patch is indicated, but the fix should be included in the next release.

Security signals we found

01

Data-flow correctness fix: previously ignored user-supplied description data

02

BOLT-11 description_hash handling alignment

03

Potential invoice description mismatch could lead to payment failures or user confusion

04

No explicit security claim by vendor in commit message

Risk score

Why this scored 32/100

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