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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.