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§
- Blake2bHasher
blake2b
Multihash hasher. - Blake2sHasher
blake2s
Multihash hasher. - Blake3Hasher
blake3
Multihash hasher. - Keccak224
sha3
Multihash hasher. - Keccak256
sha3
Multihash hasher. - Keccak384
sha3
Multihash hasher. - Keccak512
sha3
Multihash hasher. - Ripemd160
ripemd
Multihash hasher. - Ripemd256
ripemd
Multihash hasher. - Ripemd320
ripemd
Multihash hasher. - Sha1
sha1
Multihash hasher. - Sha2_256
sha2
Multihash hasher. - Sha2_512
sha2
Multihash hasher. - Sha3_224
sha3
Multihash hasher. - Sha3_256
sha3
Multihash hasher. - Sha3_384
sha3
Multihash hasher. - Sha3_512
sha3
Multihash hasher. - StrobeHasher
strobe
Strobe hasher.
Enums§
- Default (cryptographically secure) Multihash implementation.
Traits§
- Trait that implements hashing.
Type Aliases§
- Blake2b256
blake2b
256 bit blake2b hasher. - Blake2b512
blake2b
512 bit blake2b hasher. - Blake2s128
blake2s
256 bit blake2s hasher. - Blake2s256
blake2s
512 bit blake2s hasher. - Blake3_256
blake3
blake3-256 hasher. - A Multihash with the same allocated size as the Multihashes produces by this derive.
- Strobe256
strobe
256 bit strobe hasher. - Strobe512
strobe
512 bit strobe hasher.
Derive Macros§
- Custom derive for the
MultihashDigest
trait.