Struct challenge_bypass_ristretto::voprf::BlindedToken
source · #[repr(C)]pub struct BlindedToken(pub(crate) CompressedRistretto);
Expand description
A BlindedToken
is sent to the server for signing.
It is the result of the scalar multiplication of the point derived from the token preimage with the blinding factor.
\(P = T^r = H_1(t)^r\)
Tuple Fields§
§0: CompressedRistretto
Implementations§
source§impl BlindedToken
impl BlindedToken
fn bytes_length_error() -> TokenError
sourcepub fn from_bytes(bytes: &[u8]) -> Result<BlindedToken, TokenError>
pub fn from_bytes(bytes: &[u8]) -> Result<BlindedToken, TokenError>
Construct a BlindedToken
from a slice of bytes.
Trait Implementations§
source§impl Clone for BlindedToken
impl Clone for BlindedToken
source§fn clone(&self) -> BlindedToken
fn clone(&self) -> BlindedToken
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 moresource§impl Debug for BlindedToken
impl Debug for BlindedToken
impl Copy for BlindedToken
Auto Trait Implementations§
impl RefUnwindSafe for BlindedToken
impl Send for BlindedToken
impl Sync for BlindedToken
impl Unpin for BlindedToken
impl UnwindSafe for BlindedToken
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