19 releases
0.9.1 | Aug 12, 2022 |
---|---|
0.9.0 | May 13, 2022 |
0.8.1 | Jun 18, 2021 |
0.8.0 | Feb 14, 2021 |
0.2.1 | May 17, 2017 |
#1490 in Magic Beans
273,209 downloads per month
Used in 661 crates
(102 directly)
36KB
758 lines
Bech32 Rust
Rust implementation of the Bech32 encoding format described in BIP-0173 and Bech32m encoding format described in BIP-0350.
You can find some usage examples in the documentation.
Bitcoin-specific address encoding is handled by the bitcoin-bech32
crate.
MSRV
The minimum supported Rust version with the standard library is 1.41.1.
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 '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
- std
- strict