#address #cryptocurrency #encode #bitcoin #public-key #wif #private-key

crypto-addr

Library for cryptocurrency address and WIF encoding

5 releases

0.2.3 Mar 11, 2023
0.2.2 Mar 11, 2023
0.2.1 Mar 3, 2023
0.2.0 Feb 25, 2023
0.1.0 Feb 25, 2023

#100 in #private-key

MIT license

86KB
1K SLoC

crates.rs loicense docs

Library crate for computing cryptocurrency addresses from public keys and encoding private keys as WIFs for various cryptocurrency blockchains. See AddressFormat for a list of supported address formats. This crate is unique in that it supports address generation using format standards from several different blockchains.

⚠️ Warning

The software contained is provided as-is and makes no guarantee of accuracy. The author takes no responsibility for lost funds or any other damage that results from use of this software.

Features

  • Generate addresses using standard address formats for several blockchains
  • Encode private keys as WIF using standard WIF formats for several blockchains
  • Parse strings to Address format specs
  • Supports P2SHWPKH Bitcoin addresses
  • Supports Arbitrary prefix for Bitcoin Cash addresses
  • Ethereum-like addresses (available with crate feature eth)
  • EIP55 support

Limitations

Currently the following limitations exist:

  • Does not support native bech32 Segwit Bitcoin addresses
  • Does not support Public Key validation

Dependencies

~1.4–3MB
~55K SLoC