#base32 #codec #string #encode #decode #error

no-std blech32

Encodes and decodes the Blech32 format

1 unstable release

Uses old Rust 2015

0.8.1 Mar 25, 2022

#29 in #base32

MIT license

32KB
666 lines

Blech32 Rust

Docs.rs badge Continuous Integration

Fork of Bitcoin's bech32 crate to cover Blech32'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 Blech32 format

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

A Blech32 string consists of a human-readable part (HRP), a separator (the character '1'), 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