Module holo_hash::hash_type

source ·
Expand description

Defines the prefixes for the various HashTypes, as well as the traits which unify them

Structs§

  • The $name PrimitiveHashType
  • The $name PrimitiveHashType
  • The $name PrimitiveHashType
  • The $name PrimitiveHashType
  • The $name PrimitiveHashType
  • The $name PrimitiveHashType
  • The $name PrimitiveHashType
  • The $name PrimitiveHashType

Enums§

Traits§

  • Every HoloHash is generic over HashType. Additionally, every HashableContent has an associated HashType. The HashType is the glue that binds together HashableContent with its hash.
  • HashTypes whose content are only hashable asynchronously, i.e. the content is unbounded in size
  • HashTypes whose content are hashable synchronously, i.e. the content is guaranteed to be small
  • A PrimitiveHashType is one with a multihash prefix. In contrast, a non-primitive hash type could be one of several primitive types, e.g. an AnyDhtHash can represent one of three primitive types.