breez / breez-sdk-greenlight

MIT License
244 stars 43 forks source link

Strip ₿ prefix from lightning address #1097

Closed JssDWt closed 1 month ago

JssDWt commented 1 month ago

BIP-353 contains instructions on how to pay users with static internet identifiers. The displayed address will have a ₿ prefix . Probably wallets will reuse the same address for both BIP-353 and lnurl. Currently, however, hte SDK's lnurl parsing doesn't allow a ₿ prefix due to the specifications in LUD-16.

This PR strips the ₿ prefix from a lightning address, to ensure lnurl identifiers with BIP-353 compatibility can be parsed.