pub struct Ed448PublicKey { /* private fields */ }Expand description
Holds a 57-byte Ed448 public verification key.
Implementations§
Source§impl Ed448PublicKey
impl Ed448PublicKey
Sourcepub fn from_bytes(bytes: &[u8; 57]) -> Result<Self>
pub fn from_bytes(bytes: &[u8; 57]) -> Result<Self>
Builds a public key from 57 raw little-endian coordinate bytes.
§Arguments
bytes: Compressed Ed448 public key encoding.
§Returns
Ok(Ed448PublicKey) when the encoding is canonically valid.
§Errors
Returns Error::CryptoFailure when the encoding is rejected as non-canonical (for example all-zero).
§Panics
This function does not panic.
Trait Implementations§
Source§impl Clone for Ed448PublicKey
impl Clone for Ed448PublicKey
Source§fn clone(&self) -> Ed448PublicKey
fn clone(&self) -> Ed448PublicKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Ed448PublicKey
impl Debug for Ed448PublicKey
Source§impl PartialEq for Ed448PublicKey
impl PartialEq for Ed448PublicKey
Source§fn eq(&self, other: &Ed448PublicKey) -> bool
fn eq(&self, other: &Ed448PublicKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for Ed448PublicKey
impl Eq for Ed448PublicKey
impl StructuralPartialEq for Ed448PublicKey
Auto Trait Implementations§
impl Freeze for Ed448PublicKey
impl RefUnwindSafe for Ed448PublicKey
impl Send for Ed448PublicKey
impl Sync for Ed448PublicKey
impl Unpin for Ed448PublicKey
impl UnsafeUnpin for Ed448PublicKey
impl UnwindSafe for Ed448PublicKey
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