Closed junderw closed 6 years ago
Also, I copied convert from bech32, but there is currently a PR I have open to expose convert.
https://github.com/bitcoinjs/bech32/pull/18
Once this is merged I will replace convert with bech32.convert
Travis has been enabled on the repo, but unclear if that PR needed to merge master to work here.
Still need to review this in depth, but, no use holding back development in this PR.
This implements encode and decode.
tests include test vectors from the BOLT#11 and have checks for decoding, making sure the info is correct, then encoding and making sure the payment request is the same with both reconstruction AND signing (RFC6979 deterministic signing)
Help Wanted:
Anyone who can list of cases I should add for tests, as well as any refactoring help please feel free to commit directly to the
wip
branch.Thanks.