multihash implementation in Rust.
TODO
First add this to your Cargo.toml
[dependencies]
multihash = "*"
crate extern multihash
use multihash::{encode, decode, HashType};
let hash = encode(HashTpype:SHA2256, "my hash").unwrap();
let multi = decode(&hash).unwrap();
SHA2 256
SHA2 512
This uses libsodium and sodiumoxide for the hashing so it depends on libsodium being installed.
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.