Trait holochain_types::dna::PrimitiveHashType
source · [−]pub trait PrimitiveHashType: HashType {
fn new() -> Self;
fn static_prefix() -> &'static [u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
;
fn hash_name(self) -> &'static str;
}
Expand description
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.