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
blake2bMultihash hasher. - Blake2sHasher
blake2sMultihash hasher. - Blake3Hasher
blake3Multihash hasher. - Keccak224
sha3Multihash hasher. - Keccak256
sha3Multihash hasher. - Keccak384
sha3Multihash hasher. - Keccak512
sha3Multihash hasher. - Ripemd160
ripemdMultihash hasher. - Ripemd256
ripemdMultihash hasher. - Ripemd320
ripemdMultihash hasher. - Sha1
sha1Multihash hasher. - Sha2_256
sha2Multihash hasher. - Sha2_512
sha2Multihash hasher. - Sha3_224
sha3Multihash hasher. - Sha3_256
sha3Multihash hasher. - Sha3_384
sha3Multihash hasher. - Sha3_512
sha3Multihash hasher. - StrobeHasher
strobeStrobe hasher.
Enums§
- Default (cryptographically secure) Multihash implementation.
Traits§
- Trait that implements hashing.
Type Aliases§
- Blake2b256
blake2b256 bit blake2b hasher. - Blake2b512
blake2b512 bit blake2b hasher. - Blake2s128
blake2s256 bit blake2s hasher. - Blake2s256
blake2s512 bit blake2s hasher. - Blake3_256
blake3blake3-256 hasher. - A Multihash with the same allocated size as the Multihashes produces by this derive.
- Strobe256
strobe256 bit strobe hasher. - Strobe512
strobe512 bit strobe hasher.
Derive Macros§
- Custom derive for the
MultihashDigesttrait.