Struct challenge_bypass_ristretto::voprf::PublicKey
source · #[repr(C)]pub struct PublicKey(pub(crate) CompressedRistretto);
Expand description
A PublicKey
is a committment by the server to a particular SigningKey
.
\(Y = X^k\)
Tuple Fields§
§0: CompressedRistretto
Implementations§
source§impl PublicKey
impl PublicKey
fn bytes_length_error() -> TokenError
sourcepub fn from_bytes(bytes: &[u8]) -> Result<PublicKey, TokenError>
pub fn from_bytes(bytes: &[u8]) -> Result<PublicKey, TokenError>
Construct a PublicKey
from a slice of bytes.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
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