Crate tiny_multihash

Source
Expand description

Multihash implementation.

§Feature Flags

Multihash has lots of feature flags, by default, all features (except for test) are enabled.

Some of them are about specific hash functions, these are:

  • blake2b: Enable Blake2b hashers
  • blake2s: Enable Blake2s hashers
  • sha1: Enable SHA-1 hashers
  • sha2: Enable SHA-2 hashers
  • sha3: Enable SHA-3 hashers
  • strobe: Enable Strobe hashers

In order to enable all hashers, you can set the all feature flag.

The library has support for no_std, if you disable the std feature flag.

The multihash-impl feature flag enables a default Multihash implementation that contains all bundled hashers (which may be disabled via the feature flags mentioned above). If only want a specific subset of hash algorithms or add one which isn’t supporte by default, you will likely disable that feature and enable derive in order to be able to use the Multihash derive.

The test feature flag enables property based testing features.

Re-exports§

Structs§

Enums§

  • Default (cryptographically secure) Multihash implementation.
  • Multihash error.

Traits§

  • Stack allocated digest trait.
  • Trait implemented by a hash function implementation.
  • Trait that implements hashing.
  • Size marker trait.
  • Trait implemented by a hash function implementation.

Type Aliases§