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

pi: allow emaillike pi with 'lightning:' prefix

Public commit record

What the developer wrote

Authored by f321x

68/100 · Adequate
pi: allow emaillike pi with 'lightning:' prefix

Lightning addresses with 'lightning:' do occur in the wild and make
sense (how else would e.g. the smartphone know to open a lightning
wallet instead of the e-mail client). So we should allow this.
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
The short version

What changed, and why it matters

This commit lets Electrum recognize email-style payment identifiers (like user@domain.com) even when they have a 'lightning:' prefix in front. Previously, 'lightning:user@domain.com' would not be treated as a resolvable Lightning address. The change simply strips the prefix before checking if the rest looks like an email address. It is a small usability improvement, not a fix for a known security flaw.

Recommended action

No security action required. Treat as a normal feature/usability improvement. Reviewers may optionally verify that remove_uri_prefix handles case and whitespace consistently with other URI prefix stripping in the codebase.

Security signals we found

01

No memory-safety, cryptographic, or authorization changes

02

No input validation removed; only an additional accepted prefix form

03

No CVE, advisory, or security-related wording in commit message or diff

04

Change is additive and covered by unit tests

Risk score

Why this scored 21/100

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