pub struct QueryProofCircuitInput<const MAX_DEPTH: usize> {
pub pk: [EdwardsAffine; 7],
pub pk_index: Fq,
pub s: Fr,
pub r: EdwardsAffine,
pub merkle_root: Fq,
pub depth: Fq,
pub mt_index: Fq,
pub siblings: [Fq; MAX_DEPTH],
pub beta: Fr,
pub rp_id: Fq,
pub action: Fq,
pub nonce: Fq,
}Expand description
The input for the circuit of the OPRF Query Proof π1.
TODO: Rename attribute names to match the Credential type.
Fields§
§pk: [EdwardsAffine; 7]The AuthenticatorPublicKeySet represented as an array of Affine points.
pk_index: FqThe index of the public key which will be used to sign the OPRF query from the AuthenticatorPublicKeySet.
s: FrThe s part of the signature of the query with the public key at the pk_index.
r: EdwardsAffineThe r part of the signature of the query with the public key at the pk_index.
merkle_root: FqThe root of the Merkle tree of the WorldIDRegistry contract.
depth: FqThe depth of the Merkle tree of the WorldIDRegistry contract.
mt_index: FqThe leaf index of the World ID in the Merkle tree of the WorldIDRegistry contract.
In the MerkleInclusionProof type, this is the leaf_index field.
siblings: [Fq; MAX_DEPTH]The siblings of the Merkle proof of the account in the WorldIDRegistry contract.
beta: FrThe (non-inverted) blinding factor of the OPRF query.
rp_id: FqThe ID of the RP requesting the proof as registered in the RpRegistry contract.
TODO: Will require updates once the new RpRegistry is launched.
action: FqThe action for the proof request. See ProofRequest for more details.
nonce: FqThe nonce of the proof request. See ProofRequest for more details.
Trait Implementations§
Source§impl<const MAX_DEPTH: usize> Clone for QueryProofCircuitInput<MAX_DEPTH>
impl<const MAX_DEPTH: usize> Clone for QueryProofCircuitInput<MAX_DEPTH>
Source§fn clone(&self) -> QueryProofCircuitInput<MAX_DEPTH>
fn clone(&self) -> QueryProofCircuitInput<MAX_DEPTH>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<const MAX_DEPTH: usize> Debug for QueryProofCircuitInput<MAX_DEPTH>
impl<const MAX_DEPTH: usize> Debug for QueryProofCircuitInput<MAX_DEPTH>
Source§impl<const MAX_DEPTH: usize> ProofInput for QueryProofCircuitInput<MAX_DEPTH>
impl<const MAX_DEPTH: usize> ProofInput for QueryProofCircuitInput<MAX_DEPTH>
Auto Trait Implementations§
impl<const MAX_DEPTH: usize> Freeze for QueryProofCircuitInput<MAX_DEPTH>
impl<const MAX_DEPTH: usize> RefUnwindSafe for QueryProofCircuitInput<MAX_DEPTH>
impl<const MAX_DEPTH: usize> Send for QueryProofCircuitInput<MAX_DEPTH>
impl<const MAX_DEPTH: usize> Sync for QueryProofCircuitInput<MAX_DEPTH>
impl<const MAX_DEPTH: usize> Unpin for QueryProofCircuitInput<MAX_DEPTH>
impl<const MAX_DEPTH: usize> UnsafeUnpin for QueryProofCircuitInput<MAX_DEPTH>
impl<const MAX_DEPTH: usize> UnwindSafe for QueryProofCircuitInput<MAX_DEPTH>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more