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

BIP353 address parser #619

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

lorenzoronzani
Copy link

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.

Copy link
Member

@hydra-yse hydra-yse left a 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.

cli/src/commands.rs Show resolved Hide resolved
lib/core/src/sdk.rs Show resolved Hide resolved
lib/core/src/sdk.rs Show resolved Hide resolved
lib/core/Cargo.toml Show resolved Hide resolved
cli/src/commands.rs Show resolved Hide resolved
lib/core/src/sdk.rs Show resolved Hide resolved
@lorenzoronzani
Copy link
Author

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

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

Successfully merging this pull request may close these issues.

3 participants