Struct akd::SingleAppendOnlyProof
source · 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 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 SingleAppendOnlyProof
impl Debug for SingleAppendOnlyProof
source§impl From<&SingleAppendOnlyProof> for SingleAppendOnlyProof
impl From<&SingleAppendOnlyProof> for SingleAppendOnlyProof
source§fn from(input: &SingleAppendOnlyProof) -> SingleAppendOnlyProof
fn from(input: &SingleAppendOnlyProof) -> SingleAppendOnlyProof
Converts to this type from the input type.
source§impl PartialEq for SingleAppendOnlyProof
impl PartialEq for SingleAppendOnlyProof
source§fn eq(&self, other: &SingleAppendOnlyProof) -> bool
fn eq(&self, other: &SingleAppendOnlyProof) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<&SingleAppendOnlyProof> for SingleAppendOnlyProof
impl TryFrom<&SingleAppendOnlyProof> for SingleAppendOnlyProof
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§fn try_from(
input: &SingleAppendOnlyProof
) -> Result<SingleAppendOnlyProof, <SingleAppendOnlyProof as TryFrom<&SingleAppendOnlyProof>>::Error>
fn try_from( input: &SingleAppendOnlyProof ) -> Result<SingleAppendOnlyProof, <SingleAppendOnlyProof as TryFrom<&SingleAppendOnlyProof>>::Error>
Performs the conversion.
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