Crate multihash_codetable

Source
Expand description

A batteries-included code table of multihashes.

Whilst the multihash crate itself only defines the data structure, this crate defines a codetable via multihash_derive for several hashers. Although convenient, depending on this crate will increase the dependency footprint of your project.

It is only recommended as a getting-started-quickly solution. For production, you should either define your own codetable or rely only on the multihash crate itself.

Structs§

Blake2bHasherblake2b
Multihash hasher.
Blake2sHasherblake2s
Multihash hasher.
Blake3Hasherblake3
Multihash hasher.
Keccak224sha3
Multihash hasher.
Keccak256sha3
Multihash hasher.
Keccak384sha3
Multihash hasher.
Keccak512sha3
Multihash hasher.
Ripemd160ripemd
Multihash hasher.
Ripemd256ripemd
Multihash hasher.
Ripemd320ripemd
Multihash hasher.
Sha1sha1
Multihash hasher.
Sha2_256sha2
Multihash hasher.
Sha2_512sha2
Multihash hasher.
Sha3_224sha3
Multihash hasher.
Sha3_256sha3
Multihash hasher.
Sha3_384sha3
Multihash hasher.
Sha3_512sha3
Multihash hasher.
StrobeHasherstrobe
Strobe hasher.

Enums§

Code
Default (cryptographically secure) Multihash implementation.

Traits§

MultihashDigest
Trait that implements hashing.

Type Aliases§

Blake2b256blake2b
256 bit blake2b hasher.
Blake2b512blake2b
512 bit blake2b hasher.
Blake2s128blake2s
256 bit blake2s hasher.
Blake2s256blake2s
512 bit blake2s hasher.
Blake3_256blake3
blake3-256 hasher.
Multihash
A Multihash with the same allocated size as the Multihashes produces by this derive.
Strobe256strobe
256 bit strobe hasher.
Strobe512strobe
512 bit strobe hasher.

Derive Macros§

MultihashDigest
Custom derive for the MultihashDigest trait.