17 releases

Uses old Rust 2015

0.8.1 Jun 18, 2021
0.8.0 Feb 14, 2021
0.7.3 Feb 12, 2021
0.7.2 Jan 3, 2020
0.2.1 May 17, 2017

#22 in Encoding

Download history 19712/week @ 2021-08-09 17578/week @ 2021-08-16 20026/week @ 2021-08-23 19450/week @ 2021-08-30 15819/week @ 2021-09-06 22928/week @ 2021-09-13 23832/week @ 2021-09-20 21303/week @ 2021-09-27 22875/week @ 2021-10-04 23607/week @ 2021-10-11 23113/week @ 2021-10-18 24140/week @ 2021-10-25 24496/week @ 2021-11-01 22055/week @ 2021-11-08 24690/week @ 2021-11-15 21780/week @ 2021-11-22

63,959 downloads per month
Used in 336 crates (64 directly)

MIT license

33KB
703 lines

Bech32 Rust

Docs.rs badge Continuous Integration

Rust implementation of the Bech32 encoding format described in BIP-0173. 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.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 '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
`