pub struct SingleAppendOnlyProof {
pub inserted: Vec<AzksElement>,
pub unchanged_nodes: Vec<AzksElement>,
}Expand description
Proof that no leaves were deleted from the initial epoch. This means that unchanged_nodes should hash to the initial root hash and the vec of inserted is the set of leaves inserted between these epochs. If we built the tree using the nodes in inserted and the nodes in unchanged_nodes as the leaves with the correct epoch of insertion, it should result in the final root hash.
Fields§
§inserted: Vec<AzksElement>The inserted nodes & digests
unchanged_nodes: Vec<AzksElement>The unchanged nodes & digests
Trait Implementations§
Source§impl Clone for SingleAppendOnlyProof
impl Clone for SingleAppendOnlyProof
Source§fn clone(&self) -> SingleAppendOnlyProof
fn clone(&self) -> SingleAppendOnlyProof
Returns a duplicate 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 SingleAppendOnlyProof
impl Debug for SingleAppendOnlyProof
Source§impl PartialEq for SingleAppendOnlyProof
impl PartialEq for SingleAppendOnlyProof
impl Eq for SingleAppendOnlyProof
impl StructuralPartialEq for SingleAppendOnlyProof
Auto Trait Implementations§
impl Freeze for SingleAppendOnlyProof
impl RefUnwindSafe for SingleAppendOnlyProof
impl Send for SingleAppendOnlyProof
impl Sync for SingleAppendOnlyProof
impl Unpin for SingleAppendOnlyProof
impl UnwindSafe for SingleAppendOnlyProof
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