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

code refactoring, optimalisations, tests, isBech32 func, rename decodeUri to parseUri #8

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

gorrdy
Copy link
Contributor

@gorrdy gorrdy commented Jul 26, 2023

Add 'break' to not check all the prefixes

Basically rewrite the dart_lnurl.dart and hide the handing of non-bech32 lnurls into lnurl.dart for better reading of the code

Adding some tests to verify it handles most of the cases

Add small isBech32() boolean function that tells if the lnurl is bech32 encoded or not (which helps a lot to make code more readable)

Rename the decodeUri to parseUri to make it more clear that it handles both encoded and non encoded lnurls

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.

1 participant