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

add support for longer LNURLs #2

Merged
merged 4 commits into from
Sep 26, 2023
Merged

add support for longer LNURLs #2

merged 4 commits into from
Sep 26, 2023

Conversation

ckritzinger
Copy link
Contributor

.decode Wasn't working with Wallet of Satoshi URLs

This https://github.com/azuchi/bech32rb/tree/master#advanced seems to resolve the issue

lib/lnurl.rb Outdated
lnurl = lnurl.gsub(/^lightning:/, '')
hrp, data, sepc = Bech32.decode(lnurl)
hrp, data, sepc = Bech32.decode(lnurl,max_length)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should the MAX_INTEGER maybe be the default?

@bumi bumi merged commit 1998ef9 into bumi:master Sep 26, 2023
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.

None yet

2 participants