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]

[src]

Constructs an instance of the node hasher.

Trait Implementations

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

[src]

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

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

[src]

Formats the value using the given formatter.

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

The output of the hash function.

[src]

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