Module holo_hash::hash_type[][src]

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

Structs

Agent

The $name PrimitiveHashType

DhtOp

The $name PrimitiveHashType

Dna

The $name PrimitiveHashType

Entry

The $name PrimitiveHashType

Header

The $name PrimitiveHashType

NetId

The $name PrimitiveHashType

Wasm

The $name PrimitiveHashType

Enums

AnyDht

The AnyDht (composite) HashType

Traits

HashType

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.

HashTypeAsync

HashTypes whose content are only hashable asynchronously, i.e. the content is unbounded in size

HashTypeSync

HashTypes whose content are hashable synchronously, i.e. the content is guaranteed to be small

PrimitiveHashType

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.