Struct indexed_merkle_tree::tree::UpdateProof
source · pub struct UpdateProof {
pub old_proof: MerkleProof,
pub new_proof: MerkleProof,
}Fields§
§old_proof: MerkleProof§new_proof: MerkleProofImplementations§
source§impl UpdateProof
impl UpdateProof
sourcepub fn verify(&self) -> bool
pub fn verify(&self) -> bool
Verifies an update proof in the indexed Merkle Tree.
This function checks both the old and new “state” proofs of a node to ensure that the update operation has been performed correctly and the tree’s integrity is maintained.
§Returns
true if both proofs are valid, false otherwise.
Trait Implementations§
source§impl Clone for UpdateProof
impl Clone for UpdateProof
source§fn clone(&self) -> UpdateProof
fn clone(&self) -> UpdateProof
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 UpdateProof
impl Debug for UpdateProof
source§impl<'de> Deserialize<'de> for UpdateProof
impl<'de> Deserialize<'de> for UpdateProof
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 UpdateProof
impl RefUnwindSafe for UpdateProof
impl Send for UpdateProof
impl Sync for UpdateProof
impl Unpin for UpdateProof
impl UnwindSafe for UpdateProof
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)