Struct lambdaworks_crypto::merkle_tree::proof::Proof
source · 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)