bch_addr 0.1.0

cash_addr format implementation inspired by bchaddrjs.
Documentation
  • Coverage
  • 100%
    34 out of 34 items documented18 out of 21 items with examples
  • Size
  • Source code size: 55.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.55 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 21s Average build duration of successful builds.
  • all releases: 21s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • haryu703/rust-bch-addr
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • haryu703

bch_addr

CircleCI codecov

cash_addr format implementation inspired by bchaddrjs.

Usage

use bch_addr::Converter;
let converter = Converter::new();
let cash_addr = converter.to_cash_addr("1B9UNtBfkkpgt8kVbwLN9ktE62QKnMbDzR").unwrap();
assert_eq!(cash_addr, "bitcoincash:qph5kuz78czq00e3t85ugpgd7xmer5kr7c5f6jdpwk");

let legacy_addr = converter.to_legacy_addr(&cash_addr).unwrap();
assert_eq!(legacy_addr, "1B9UNtBfkkpgt8kVbwLN9ktE62QKnMbDzR");