pub struct InsertProof {
pub non_membership_proof: NonMembershipProof,
pub first_proof: UpdateProof,
pub second_proof: UpdateProof,
}
Fields§
§non_membership_proof: NonMembershipProof
§first_proof: UpdateProof
§second_proof: UpdateProof
Implementations§
Source§impl InsertProof
impl InsertProof
Sourcepub fn verify(&self) -> bool
pub fn verify(&self) -> bool
Verifies the proofs associated with a node insertion in the indexed Merkle Tree.
This function confirms the non-membership of the node before insertion, and then verifies the two update proofs representing the tree’s state changes due to the insertion. Essential for validating insert operations in the tree.
§Returns
true
if all proofs are valid, false
otherwise.
Trait Implementations§
Source§impl Clone for InsertProof
impl Clone for InsertProof
Source§fn clone(&self) -> InsertProof
fn clone(&self) -> InsertProof
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InsertProof
impl Debug for InsertProof
Source§impl<'de> Deserialize<'de> for InsertProof
impl<'de> Deserialize<'de> for InsertProof
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for InsertProof
impl RefUnwindSafe for InsertProof
impl Send for InsertProof
impl Sync for InsertProof
impl Unpin for InsertProof
impl UnwindSafe for InsertProof
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