Struct merkle_light::proof::Proof [] [src]

pub struct Proof<T: Eq + Clone + AsRef<[u8]>> { /* fields omitted */ }

Merkle tree inclusion proof for data element, for which item = Leaf(Hash(Data Item)).

Lemma layout:

[ item h1x h2y h3z ... root ]

Proof validation is positioned hash against lemma path to match root hash.

Methods

impl<T: Eq + Clone + AsRef<[u8]>> Proof<T>
[src]

[src]

Creates new MT inclusion proof

[src]

Return proof target leaf

[src]

Return tree root

[src]

Verifies MT inclusion proof

Trait Implementations

impl<T: Debug + Eq + Clone + AsRef<[u8]>> Debug for Proof<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T: Clone + Eq + Clone + AsRef<[u8]>> Clone for Proof<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Eq + Eq + Clone + AsRef<[u8]>> Eq for Proof<T>
[src]

impl<T: PartialEq + Eq + Clone + AsRef<[u8]>> PartialEq for Proof<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.