pub struct LookupProof<H: Hasher> {
    pub epoch: u64,
    pub plaintext_value: AkdValue,
    pub version: u64,
    pub existence_vrf_proof: Vec<u8>,
    pub existence_proof: MembershipProof<H>,
    pub marker_vrf_proof: Vec<u8>,
    pub marker_proof: MembershipProof<H>,
    pub freshness_vrf_proof: Vec<u8>,
    pub freshness_proof: NonMembershipProof<H>,
    pub commitment_proof: Vec<u8>,
}
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:

  • committed 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: AkdValue

The plaintext value in question

version: u64

The version of the record

existence_vrf_proof: Vec<u8>

VRF proof for the label corresponding to this version

existence_proof: MembershipProof<H>

Record existence proof

marker_vrf_proof: Vec<u8>

VRF proof for the marker preceding (less than or equal to) this version

marker_proof: MembershipProof<H>

Existence at specific marker

freshness_vrf_proof: Vec<u8>

VRF proof for the label corresponding to this version being stale

freshness_proof: NonMembershipProof<H>

Freshness proof (non membership of stale label)

commitment_proof: Vec<u8>

Proof for commitment value derived from raw AkdLabel and AkdValue

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
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.