Struct akd::proof_structs::HistoryProof
source · pub struct HistoryProof<H: Hasher> {
pub update_proofs: Vec<UpdateProof<H>>,
pub next_few_vrf_proofs: Vec<Vec<u8>>,
pub non_existence_of_next_few: Vec<NonMembershipProof<H>>,
pub future_marker_vrf_proofs: Vec<Vec<u8>>,
pub non_existence_of_future_markers: Vec<NonMembershipProof<H>>,
}
Expand description
This proof is an array of UpdateProof
s
and proofs of non-membership of future entries
Fields
update_proofs: Vec<UpdateProof<H>>
For each version v = 1…n of a user’s key, include a proof that the previous version was retired at the same time as this version was added. (for version 1, it’s just a mem proof).
next_few_vrf_proofs: Vec<Vec<u8>>
VRF Proofs for the labels of the next few values, these are values in the set [latest_version + 1, …, 2^(log(latest_version+1))-1]
non_existence_of_next_few: Vec<NonMembershipProof<H>>
Proof that the next few values did not exist at this time
future_marker_vrf_proofs: Vec<Vec<u8>>
VRF proofs for the labels of future marker entries, these are values with version numbers [2^(log(latest_version+1)), …, 2^(log(latest_epoch))]
non_existence_of_future_markers: Vec<NonMembershipProof<H>>
Proof that future markers did not exist
Trait Implementations
sourceimpl<H: Hasher> Clone for HistoryProof<H>
impl<H: Hasher> Clone for HistoryProof<H>
sourceimpl<H: Debug + Hasher> Debug for HistoryProof<H>
impl<H: Debug + Hasher> Debug for HistoryProof<H>
sourceimpl<H: PartialEq + Hasher> PartialEq<HistoryProof<H>> for HistoryProof<H>
impl<H: PartialEq + Hasher> PartialEq<HistoryProof<H>> for HistoryProof<H>
sourcefn eq(&self, other: &HistoryProof<H>) -> bool
fn eq(&self, other: &HistoryProof<H>) -> bool
impl<H: Eq + Hasher> Eq for HistoryProof<H>
impl<H: Hasher> StructuralEq for HistoryProof<H>
impl<H: Hasher> StructuralPartialEq for HistoryProof<H>
Auto Trait Implementations
impl<H> RefUnwindSafe for HistoryProof<H>where
<H as Hasher>::Digest: RefUnwindSafe,
impl<H> Send for HistoryProof<H>
impl<H> Sync for HistoryProof<H>
impl<H> Unpin for HistoryProof<H>where
<H as Hasher>::Digest: Unpin,
impl<H> UnwindSafe for HistoryProof<H>where
<H as Hasher>::Digest: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.