Blech32 encoding / decoding
npm install blech32A Elements extended BIP173 compatible Blech32 encoding/decoding library.
This package provides two types of encoding:
* BLECH32 for witness version 0.
* BLECH32M for witness version 1-16. _Note that the blech32m encoding const on Liquid differs from the bitcoin one_
Check out tests that also demonstrate how to serialize a pubkey and a witness program for generating a confidential address.
Install dependencies:
``sh`
yarn install
Build:
`sh`
yarn build
`sh``
$ yarn test
- ElementsProject for the reference C implementation of blech32.