Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support BOLT#11 fallback #22

Open
joshmh opened this issue Jul 19, 2018 · 0 comments
Open

Support BOLT#11 fallback #22

joshmh opened this issue Jul 19, 2018 · 0 comments

Comments

@joshmh
Copy link

joshmh commented Jul 19, 2018

It would be really useful for all the lightning mobile wallets to support the fallback mode described in BOLT#11. This means that if the wallet comes across an old BIP21 URI, it will parse it as it does now, then look for a lighting parameter. If it finds it, it just takes that parameter and treats it as a regular lightning invoice. If not, it treats the URI as a regular Bitcoin URI.

This is especially important for Bitcoin ATMs. We can show a single QR code for everyone. If the user has a lightning wallet, they can send the funds instantly (and receive cash on the spot). If the user has an old Bitcoin-only wallet (currently the majority), they can just send Bitcoin. Eventually, lightning wallets could use the Bitcoin address to send large payments for which a path can't be found.

else if inputString.hasPrefix(PayReqPrefixes.btcuri.rawValue) {

See: ACINQ/eclair-mobile@56dd9c5

https://twitter.com/meeDamian/status/1019505368760659968

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant