#[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: CompressedRistrettoImplementations§
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 Freeze for PublicKey
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