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§
- Blake2b
Hasher blake2b - Multihash hasher.
- Blake2s
Hasher blake2s - Multihash hasher.
- Blake3
Hasher 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.
- Strobe
Hasher strobe - Strobe hasher.
Enums§
- Code
- Default (cryptographically secure) Multihash implementation.
Traits§
- Multihash
Digest - 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.
- Multihash
- 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§
- Multihash
Digest - Custom derive for the
MultihashDigesttrait.