This project provides a library and a command-line interface (CLI) for converting Bech32 addresses with different prefixes. It's written in Rust and is optimized for maximum performance.
The project is divided into two main parts:
-
bech32-addr-converter-cli
: This is a CLI tool that uses thebech32-addr-converter
library to convert addresses. The source code is located inbech32-addr-converter-cli/src
.
install the cli using cargo:
cargo install bech32-addr-converter-cli
or add the converter library to your project
cargo add bech32-addr-converter
To use the CLI tool, you need to build the project first. After building, you can run the bech32-addr-converter
binary with the appropriate arguments. try bech32-addr-converter-cli -h
for description.
Tests are included in the tests
module in the bech32-addr-converter/src/converter.rs
file.
This project is licensed under either of
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in bech32-addr-converter