Closed mrfelton closed 4 years ago
note: there is a PR with these changes open against coininfo https://github.com/cryptocoinjs/coininfo/pull/89
Any chance of this getting merged in? It looks like simnet support is now in coininfo (here). decode
is currently breaking for tests I have in a project for LSAT based authentication because of this unfortunately.
Nevermind. I saw there's support for "unknown network" where you can add the bech32 prefix. Still think it would be worthwhile to officially add it in now that it's supported in coininfo too, especially since btc simnet doesn't really feel like it should be counted as "unknown".
closed in favor of #33
As a follow up to https://github.com/bitcoinjs/bolt11/issues/19 this PR updates coininfo package to a version that supports simnet and adds simnet support into the bolt11 library itself.
This makes it easier to use with simnet as the user doesn't need to do manually parse the payment request and figure out which bech32 code they need to manually pass into the decode method.