Trait holo_hash::PrimitiveHashType [−][src]
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.
Required methods
fn new() -> Self
[src]
Constructor
fn static_prefix() -> &'static [u8]
[src]
Get the 3 byte prefix, which is statically known for primitive hash types
fn hash_name(self) -> &'static str
[src]
Get a Display-worthy name for this hash type