blech32
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Blech32.js

A 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

Example

Check out tests that also demonstrate how to serialize a pubkey and a witness program for generating a confidential address.

Installation

Install dependencies:

yarn install

Build:

yarn build

Test

$ yarn test

Credits

Package Sidebar

Install

npm i blech32

Weekly Downloads

753

Version

1.1.2

License

MIT

Unpacked Size

85.1 kB

Total Files

16

Last publish

Collaborators

  • tiero