Registry / crypto / multihash

multihash

JSON →
library0.19.5rscratesunverified

Implementation of the multihash format

# Cargo.toml [dependencies] multihash = "0.19.5"
INSTALL
IMPORT
SIG · MULTIHASH
M
multihash
cryptorustv0.19.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Multihash
use multihash::Multihash;

Create and encode a multihash digest

use multihash::Multihash; use multihash::Code; let hash = Code::Sha2_256.digest(b"hello world"); let multihash = Multihash::wrap(hash.code(), hash.digest()).unwrap(); println!("{:?}", multihash);
Debug
Known issues
gotchaRequires feature flags for specific hash algorithms
fix
Add `features = ["sha2", "sha3"]` to Cargo.toml dependency
affects: >=0.19.0
Upgrade
Version history
0.19.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
multihash — cargo add multihash · libregistry