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]

Constructs an instance of the node hasher.

Trait Implementations

impl<D> Default for DefaultNodeHasher<D>
[src]

Returns the "default value" for a type. Read more

impl<D> Clone for DefaultNodeHasher<D>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<D> Debug for DefaultNodeHasher<D>
[src]

Formats the value using the given formatter. Read more

impl<D> NodeHasher for DefaultNodeHasher<D> where
    D: Default,
    D: Input + FixedOutput, 
[src]

The output of the hash function.

Hash a sequence of child nodes to produce the parent hash value. Read more

Auto Trait Implementations

impl<D> Send for DefaultNodeHasher<D> where
    D: Send

impl<D> Sync for DefaultNodeHasher<D> where
    D: Sync