Closed cmdruid closed 1 year ago
can you give an example code of decoding it using a different lib?
Sure, here is an online decoder that I use for testing:
Also, here is the github for the project. It appears they use the bech32
library in package.json
:
You are using the library in a wrong way. All tests actually pass.
Please take a look at the new README section: https://github.com/paulmillr/scure-base#bech32-bech32m-and-bitcoin
Thank you for the clarification and update. I will take a look at the new readme.
I am running the following code in nodejs (version 19+):
I get the following error:
The invoice decodes normally using other decoding tools.
I'm not sure if this is a bug, or that I am using the library incorrectly. The above code works for smaller encoded strings.