Module challenge_bypass_ristretto::voprf
source · Expand description
An implementation of a verifiable oblivious pseudorandom function
Structs
- A
BatchDLEQProof
is a proof of the equivalence of the discrete logarithm between a common pair of points and one or more other pairs of points. - A
BlindedToken
is sent to the server for signing. - A
DLEQProof
is a proof of the equivalence of the discrete logarithm between two pairs of points. - A
PublicKey
is a committment by the server to a particularSigningKey
. - A
SignedToken
is the result of signing aBlindedToken
. - A
SigningKey
is used to sign aBlindedToken
and verify anUnblindedToken
. - A
Token
consists of a randomly chosen preimage and blinding factor. - A
TokenPreimage
is a slice of bytes which can be hashed to aRistrettoPoint
. - An
UnblindedToken
is the result of unblinding aSignedToken
. - The shared
VerificationKey
for proving / verifying the validity of anUnblindedToken
. - A
VerificationSignature
which can be verified given theVerificationKey
and message
Constants
- The length of a
BlindedToken
, in bytes. - The length of a
DLEQProof
, in bytes. - The length of a
PublicKey
, in bytes. - The length of a
SignedToken
, in bytes. - The length of a
SigningKey
, in bytes. - The length of a
Token
, in bytes. - The length of a
TokenPreimage
, in bytes. - The length of a
UnblindedToken
, in bytes. - The length of a
VerificationSignature
, in bytes.