Struct mrkl::digest::DefaultNodeHasher
[−]
[src]
pub struct DefaultNodeHasher<D> { /* fields omitted */ }
The NodeHasher
implementation used by default in this module.
This implementation concatenates the hash values of the child nodes, prepended with a 1 byte, as input for the digest function.
Methods
impl<D> DefaultNodeHasher<D>
[src]
Trait Implementations
impl<D> Default for DefaultNodeHasher<D>
[src]
impl<D> Clone for DefaultNodeHasher<D>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<D> Debug for DefaultNodeHasher<D>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl<D> NodeHasher for DefaultNodeHasher<D> where
D: Default,
D: Input + FixedOutput,
[src]
D: Default,
D: Input + FixedOutput,
type HashOutput = GenericArray<u8, D::OutputSize>
The output of the hash function.
fn hash_children<'a, L>(
&'a self,
iter: Children<'a, Self::HashOutput, L>
) -> Self::HashOutput
[src]
&'a self,
iter: Children<'a, Self::HashOutput, L>
) -> Self::HashOutput
Hash a sequence of child nodes to produce the parent hash value. Read more