wif

Crates.iowif
lib.rswif
version0.1.0
sourcesrc
created_at2022-11-03 03:23:46.109893
updated_at2022-11-03 03:23:46.109893
descriptionBitcoin Wallet Import Format written in Rust, for encoding/decoding WIF
homepage
repository
max_upload_size
id703929
size7,052
Ahmad Abdullahi Adamu (ahmadbrainworks)

documentation

README

version-badge license-badge rust-version-badge

Wallet import format decoder and encoder for bitcoin written in RUST.

Rust Version Policy

This crate only supports the current stable version of Rust, patch releases may use new features at any time.

License

Licensed under either of

##Usage

use wif::{encode, decode};

println!("{:?}",decode("93SewNjbsxJLEgRmF6QYvhtMbztGeUjmr3ng6yVrD47r6E8bUvi","testnet")); // DecodedWif { network: "testnet", private_key: "F4A194DF2E1442B8F82B8D762BF8EC1C7E7E054798A5162F99CEB7DF4683B1FB", compressed: false }

 println!("{:?}",encode("a70253dbfc1540647bd27626706c60c9745a0f1948ff07463a1505d9f0ba35ec","testnet",true,)); //  EncodedWif { network: "testnet", wif: "cTBLzVDsLsNRxhyngnYMyaFVw9CiipCnnJSQ6cgW9NYr6Hkt1Gjm", compressed: true }
Commit count: 0

cargo fmt