pub struct UpdateProof {
pub old_proof: MerkleProof,
pub new_proof: MerkleProof,
}
Fields§
§old_proof: MerkleProof
§new_proof: MerkleProof
Implementations§
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