Struct akd::proof_structs::LookupProof [−][src]
pub struct LookupProof<H: Hasher> {
pub epoch: u64,
pub plaintext_value: Values,
pub version: u64,
pub existence_proof: MembershipProof<H>,
pub marker_proof: MembershipProof<H>,
pub freshness_proof: NonMembershipProof<H>,
}
Expand description
Proof that a given label was at a particular state at the given epoch. This means we need to show that the state and version we are claiming for this node must have been:
- commited in the tree,
- not too far ahead of the most recent marker version,
- not stale when served. This proof is sent in response to a lookup query for a particular key.
Fields
epoch: u64
The epoch of this record
plaintext_value: Values
The plaintext value in question
version: u64
The version of the record
existence_proof: MembershipProof<H>
Record existence proof
marker_proof: MembershipProof<H>
Existence at specific marker
freshness_proof: NonMembershipProof<H>
Freshness proof (non member at previous epoch)
Trait Implementations
Auto Trait Implementations
impl<H> RefUnwindSafe for LookupProof<H> where
<H as Hasher>::Digest: RefUnwindSafe,
impl<H> Send for LookupProof<H>
impl<H> Sync for LookupProof<H>
impl<H> Unpin for LookupProof<H> where
<H as Hasher>::Digest: Unpin,
impl<H> UnwindSafe for LookupProof<H> where
<H as Hasher>::Digest: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more