pub enum ProofInputError {
Show 13 variants
InvalidMerkleTreeDepth {
expected: usize,
is: Fq,
},
InvalidAuthenticatorPublicKeySet,
InvalidMerkleTreeInclusionProof,
InvalidQuerySignature,
InvalidBlindingFactor,
CredentialExpired {
current_timestamp: u64,
expires_at: u64,
},
CredentialGenesisExpired {
genesis_issued_at_min: u64,
genesis_issued_at: u64,
},
ValueOutOfBounds {
name: &'static str,
is: Fq,
limit: Fq,
},
InvalidCredentialSignature,
InvalidBabyJubJubPoint {
name: &'static str,
},
InvalidOprfProof,
InvalidOprfResponse,
InvalidSessionId,
}Expand description
Errors that can occur when validating the inputs for a single World ID proof.
Variants§
InvalidMerkleTreeDepth
The specified Merkle tree depth is invalid.
InvalidAuthenticatorPublicKeySet
The set of authenticator public keys is invalid.
InvalidMerkleTreeInclusionProof
The provided Merkle tree inclusion proof is invalid (the root may or may not be valid for the WorldIDRegistry tree)
InvalidQuerySignature
The signature from the authenticator for the request is invalid.
InvalidBlindingFactor
The provided blinding factor is invalid, or the sub is incorrect.
CredentialExpired
The provided credential has expired.
CredentialGenesisExpired
The provided credential genesis issue timestamp is expired.
Fields
ValueOutOfBounds
A value is out of bounds.
Fields
InvalidCredentialSignature
The credential signature is invalid. This signals the issued credential is invalid.
InvalidBabyJubJubPoint
The provided point is not a valid point in the prime-order subgroup of the BabyJubJub curve.
InvalidOprfProof
The provided OPRF proof is invalid.
InvalidOprfResponse
The provided unblinded OPRF response point is invalid.
InvalidSessionId
The provided session ID commitment is invalid.
Trait Implementations§
Source§impl Debug for ProofInputError
impl Debug for ProofInputError
Source§impl Display for ProofInputError
impl Display for ProofInputError
Source§impl Error for ProofInputError
impl Error for ProofInputError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ProofInputError> for ProofError
impl From<ProofInputError> for ProofError
Source§fn from(source: ProofInputError) -> Self
fn from(source: ProofInputError) -> Self
Auto Trait Implementations§
impl Freeze for ProofInputError
impl RefUnwindSafe for ProofInputError
impl Send for ProofInputError
impl Sync for ProofInputError
impl Unpin for ProofInputError
impl UnsafeUnpin for ProofInputError
impl UnwindSafe for ProofInputError
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> 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