multihash 0.1.0

Implementation of the multihash format
Documentation

rust-multihash

Build Status

multihash implementation in Rust.

Usage

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();

Supported Hash Types

  • SHA2 256
  • SHA2 512

Dependencies

This uses libsodium and sodiumoxide for the hashing so it depends on libsodium being installed.

License

MIT