rust-ipfs/vendor/multihash-0.11.4
Vladislav Tsarev 3dec7eeb01 Initial commit
2024-10-18 11:36:33 +03:00
..
benches Initial commit 2024-10-18 11:36:33 +03:00
src Initial commit 2024-10-18 11:36:33 +03:00
tests Initial commit 2024-10-18 11:36:33 +03:00
.cargo-checksum.json Initial commit 2024-10-18 11:36:33 +03:00
Cargo.toml Initial commit 2024-10-18 11:36:33 +03:00
LICENSE Initial commit 2024-10-18 11:36:33 +03:00
README.md Initial commit 2024-10-18 11:36:33 +03:00
rustfmt.toml Initial commit 2024-10-18 11:36:33 +03:00

rust-multihash

Build Status Crates.io License Documentation Dependency Status Coverage Status

multihash implementation in Rust.

Table of Contents

Install

First add this to your Cargo.toml

[dependencies]
multihash = "*"

Then run cargo build.

Usage

use multihash::Sha2_256;

fn main() {
    let hash = Sha2_256::digest(b"my hash");
    println!("{:?}", hash);
}

Supported Hash Types

  • SHA1
  • SHA2-256
  • SHA2-512
  • SHA3/Keccak
  • Blake2b-256/Blake2b-512/Blake2s-128/Blake2s-256

Maintainers

Captain: @dignifiedquire.

Contribute

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.

License

MIT © 2015-2017 Friedel Ziegelmayer