pub struct Proof<T> {
pub algorithm: Sha3,
pub root_hash: Vec<u8>,
pub lemma: Lemma,
pub value: T,
}
Expand description
An inclusion proof represent the fact that a value
is a member
of a MerkleTree
with root hash root_hash
, and hash function algorithm
.
Fields§
§algorithm: Sha3
The hashing algorithm used in the original MerkleTree
root_hash: Vec<u8>
The hash of the root of the original MerkleTree
lemma: Lemma
The first Lemma
of the Proof
value: T
The value concerned by this Proof
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Proof<T>where
T: Freeze,
impl<T> RefUnwindSafe for Proof<T>where
T: RefUnwindSafe,
impl<T> Send for Proof<T>where
T: Send,
impl<T> Sync for Proof<T>where
T: Sync,
impl<T> Unpin for Proof<T>where
T: Unpin,
impl<T> UnwindSafe for Proof<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more