bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.6k stars 2.08k forks source link

bech32 support? #1102

Closed guotie closed 6 years ago

guotie commented 6 years ago

does this lib support bech32?

dcousens commented 6 years ago

@guotie yes!

https://github.com/bitcoinjs/bitcoinjs-lib/blob/d7eb6c8e77c0d73bdd54a2b4dedfa1055d361c33/test/integration/addresses.js#L59-L64

Or did you mean generic bech32 encoding of any data? In which case, use https://github.com/bitcoinjs/bech32