bitcoinjs / bolt11

A library for encoding and decoding lightning network payment requests as defined in BOLT #11.
MIT License
92 stars 64 forks source link

Add ability to decode any network type wanted #22

Closed junderw closed 5 years ago

junderw commented 5 years ago

Fixes #19 by passing a second arg to decode with { bech32: 'sb' }

junderw commented 5 years ago

This feature is compatible with the BitcoinJS Network format. Since network objects' bech32 headers are placed under the bech32 attribute.