Struct challenge_bypass_ristretto::oprf::VerificationKey
source · #[repr(C)]pub struct VerificationKey([u8; 64]);
Expand description
The shared VerificationKey
for proving / verifying the validity of an UnblindedToken
.
\(K = H_2(t, W)\)
Tuple Fields§
§0: [u8; 64]
Implementations§
source§impl VerificationKey
impl VerificationKey
sourcepub fn sign<D>(&self, message: &[u8]) -> VerificationSignature
pub fn sign<D>(&self, message: &[u8]) -> VerificationSignature
Use the VerificationKey
to “sign” a message, producing a VerificationSignature
Trait Implementations§
source§impl Clone for VerificationKey
impl Clone for VerificationKey
source§fn clone(&self) -> VerificationKey
fn clone(&self) -> VerificationKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for VerificationKey
impl RefUnwindSafe for VerificationKey
impl Send for VerificationKey
impl Sync for VerificationKey
impl Unpin for VerificationKey
impl UnwindSafe for VerificationKey
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
Mutably borrows from an owned value. Read more