#bech32 #base32 #bitcoin-cash #codec #encoding

no-std bitcoincash-bech32

Encodes and decodes the BitcoinCash's Bech32 format

1 unstable release

Uses old Rust 2015

0.1.0 Jan 12, 2022

#6 in #bitcoin-cash

MIT license

36KB
725 lines

BitcoinCash's Bech32 Rust

Docs.rs badge Continuous Integration

Fork of Bitcoin's bech32 crate to cover BitcoinCash's differences.

MSRV

The minimum supported Rust version with the standard library is 1.29.

With nostd, we use the alloc dependency, so the MSRV is instead 1.36.


lib.rs:

Encoding and decoding of the Bech32 format

Bech32 is an encoding scheme that is easy to use for humans and efficient to encode in QR codes.

A Bech32 string consists of a human-readable part (HRP), a separator (the character ':'), and a data part. A checksum at the end of the string provides error detection to prevent mistakes when the string is written off or read out loud.

The original description in BIP-0173 has more details.

No runtime deps

Features