multihash implementation in Rust.
First add this to your Cargo.toml
[dependencies]
multihash = "*"
Then run cargo build
.
extern crate multihash;
use multihash::{encode, decode, Hash};
let hash = encode(Hash::SHA2256, b"my hash").unwrap();
let multi = decode(&hash).unwrap();
SHA1
SHA2-256
SHA2-512
SHA3
/Keccak
Captain: @dignifiedquire.
Contributions welcome. Please check out the issues.
Check out our contributing document for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS Code of Conduct.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2015-2017 Friedel Ziegelmayer