pub struct Proof<T: PartialEq + Eq> {
pub merkle_path: Vec<T>,
}Expand description
Stores a merkle path to some leaf.
Internally, the necessary hashes are stored from root to leaf in the
merkle_path field, in such a way that, if the merkle tree is of height n, the
i-th element of merkle_path is the sibling node in the n - 1 - i-th check
when verifying.
Fields§
§merkle_path: Vec<T>Implementations§
Trait Implementations§
Source§impl<T> Deserializable for Proof<T>
impl<T> Deserializable for Proof<T>
fn deserialize(bytes: &[u8]) -> Result<Self, DeserializationError>where
Self: Sized,
Auto Trait Implementations§
impl<T> Freeze for Proof<T>
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