-
Notifications
You must be signed in to change notification settings - Fork 9
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
BIP353 address parser #619
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @lorenzoronzani, thanks for contributing! I've left two small comments, but besides that the code is looking good. It'd be better if this parsing method was shared so we can also reuse it on the Greenlight SDK.
I tried to resolve all of your comment in the breez-sdk-greenlight repo inside the following PR breez/breez-sdk-greenlight#1149. I think this PR could be keep active because it requires some code that it is implemented inside the other one |
feat: I implemented within the sdk the function to parse a BIP353 address and extract the corresponding bolt12 or lnurl-pay offer. To achieve that I needed a dns-resolver and I decided to use trust-dns-resolver crate.
feat: I edited the cli accepted inputs to be able to understand also a pay_code.
The idea behind my implementation is to use the already provided section regarding the final payment adding before that a parser layer to intercept BIP353 addresses and resolve it.