https://github.com/vulpemventures/blech32
An Elements extended BIP173 compatible Blech32 encoding/decoding JavaScript library
https://github.com/vulpemventures/blech32
Last synced: 12 months ago
JSON representation
An Elements extended BIP173 compatible Blech32 encoding/decoding JavaScript library
- Host: GitHub
- URL: https://github.com/vulpemventures/blech32
- Owner: vulpemventures
- License: mit
- Created: 2020-02-12T17:27:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T10:40:57.000Z (over 3 years ago)
- Last Synced: 2025-06-08T12:03:14.382Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 1.96 MB
- Stars: 2
- Watchers: 3
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Blech32.js
A Elements extended [BIP173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki) 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](./test/blech32Address.test.ts) that also demonstrate how to serialize a pubkey and a witness program for generating a confidential address.
## Installation
Install dependencies:
```sh
yarn install
```
Build:
```sh
yarn build
```
## Test
```sh
$ yarn test
```
## Credits
- [ElementsProject](https://github.com/ElementsProject/libwally-core/blob/master/src/blech32.c) for the reference C implementation of blech32.