Accept lightning-prefixed LNURLs - #2498
Conversation
|
Claude finished @BullishNode's task in 5m 1s —— View job Code review — Accept lightning-prefixed LNURLs
No hard bugs found in the mobile-side changes. The main risks are the unmerged SDK dependency and two untested input shapes that currently rely on fallback heuristics. Findings1. Dependency pins point to an unmerged PR-branch commit — merge ordering risk ( 2. Uppercase 3. Parse-time LNURL validation removed — confirm intended for non-send entry points ( 4. Test invoice replacement — a short comment would help ( 5. Pre-existing, out of scope but adjacent: missing What looks good
|
|
Thanks for the review. Addressed as follows:
The expanded focused native suite passes 7/7. |
Summary
lightning:scheme explicitly before the existing payment-request heuristics.lightning:-prefixed invoices without first treating them as invalid LNURLs.The existing parser could extract some prefixed LNURLs through its broad embedded-LNURL heuristic. This change makes ownership explicit: Satoshifier normalizes LNURLs, while the mobile parser only classifies the payload and routes it to the correct parser.
Testing
TZ=UTC make checksbull_uitestsbull_ui_cataloguetestlightning:schemes, prefixed LNURLs, prefixed Lightning Addresses, prefixed BOLT11 invoices, and encoded Lightning Address URLs.develop; its data was deliberately left intact.Dependency
Companion Bull SDK PR: SatoshiPortal/bull_sdk#15
Merge the SDK PR first, then repin this PR to the resulting durable SDK commit before merging it.