Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rust-bitcoin/rust-bech32
Bech32 format encoding and decoding
https://github.com/rust-bitcoin/rust-bech32
Last synced: about 16 hours ago
JSON representation
Bech32 format encoding and decoding
- Host: GitHub
- URL: https://github.com/rust-bitcoin/rust-bech32
- Owner: rust-bitcoin
- License: mit
- Created: 2017-05-08T18:14:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-18T17:52:18.000Z (27 days ago)
- Last Synced: 2024-11-11T01:56:10.347Z (4 days ago)
- Language: Rust
- Size: 574 KB
- Stars: 94
- Watchers: 9
- Forks: 50
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
Rust Bech32
===========[![Docs.rs badge](https://docs.rs/bech32/badge.svg)](https://docs.rs/bech32/)
[![Continuous Integration](https://github.com/rust-bitcoin/rust-bech32/workflows/Continuous%20Integration/badge.svg)](https://github.com/rust-bitcoin/rust-bech32/actions?query=workflow%3A%22Continuous+Integration%22)Rust implementation of the Bech32 encoding format described in [BIP-0173](https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki)
and Bech32m encoding format described in [BIP-0350](https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki).You can find some usage examples in the [documentation](https://docs.rs/bech32/).
Bitcoin-specific address encoding is handled by the `bitcoin-bech32` crate.
## MSRV
This library should always compile with any combination of features on **Rust 1.56.1**.
## Githooks
To assist devs in catching errors _before_ running CI we provide some githooks. If you do not
already have locally configured githooks you can use the ones in this repository by running, in the
root directory of the repository:
```
git config --local core.hooksPath githooks/
```Alternatively add symlinks in your `.git/hooks` directory to any of the githooks we provide.
## Benchmarks
We use a custom Rust compiler configuration conditional to guard the benchmark code. To run the
benchmarks use: `RUSTFLAGS='--cfg=bench' cargo +nightly bench`.