You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Scanner decodes a bitcoin: URI as Lightning when a value contains lightning: #227
Scanner::decode sends any input whose lowercased text containslightning: to the Lightning branch:
if invoice_str.to_lowercase().contains("lightning:")
|| invoice_str.to_lowercase().starts_with("lntb")
...
So a valid BIP 21/321 request with lightning: inside a parameter value fails to decode, for example bitcoin:<address>?label=pay%20lightning:x, or a message that mentions lightning:. The whole URI is parsed as a BOLT11 invoice and decoding fails. The payer never reaches the review.
This is on master (and in v0.8.0-rc15). The app hits it for every source: QR, paste, NFC and Bluetooth.
Suggested fix
Take the Lightning branch only when the request starts with lightning: (after trimming and the existing wrapper handling), or is a bare invoice (lnbc…, lntb…). A bitcoin: URI keeps going to decode_onchain, which already reads its lightning parameter. Add the case above as a scanner test.
Activity