Struct akd::proof_structs::AppendOnlyProof
source · [−]pub struct AppendOnlyProof<H: Hasher> {
pub inserted: Vec<Node<H>>,
pub unchanged_nodes: Vec<Node<H>>,
}
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, it should result in the final root hash.
Fields
inserted: Vec<Node<H>>
The inserted nodes & digests
unchanged_nodes: Vec<Node<H>>
The unchanged nodes & digests
Trait Implementations
sourceimpl<H: Hasher> Clone for AppendOnlyProof<H>
impl<H: Hasher> Clone for AppendOnlyProof<H>
sourceimpl<H: Debug + Hasher> Debug for AppendOnlyProof<H>
impl<H: Debug + Hasher> Debug for AppendOnlyProof<H>
sourceimpl<H: PartialEq + Hasher> PartialEq<AppendOnlyProof<H>> for AppendOnlyProof<H>
impl<H: PartialEq + Hasher> PartialEq<AppendOnlyProof<H>> for AppendOnlyProof<H>
sourcefn eq(&self, other: &AppendOnlyProof<H>) -> bool
fn eq(&self, other: &AppendOnlyProof<H>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AppendOnlyProof<H>) -> bool
fn ne(&self, other: &AppendOnlyProof<H>) -> bool
This method tests for !=
.
impl<H: Hasher> StructuralPartialEq for AppendOnlyProof<H>
Auto Trait Implementations
impl<H> RefUnwindSafe for AppendOnlyProof<H> where
<H as Hasher>::Digest: RefUnwindSafe,
impl<H> Send for AppendOnlyProof<H>
impl<H> Sync for AppendOnlyProof<H>
impl<H> Unpin for AppendOnlyProof<H> where
<H as Hasher>::Digest: Unpin,
impl<H> UnwindSafe for AppendOnlyProof<H> where
<H as Hasher>::Digest: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more