[−][src]Struct x448::PublicKey
A PublicKey is a point on Curve448.
Implementations
impl PublicKey
[src]
pub fn from_bytes(bytes: &[u8]) -> Option<PublicKey>
[src]
Converts a bytes slice into a Public key Returns None if:
- The length of the slice is not 56
- The point is a low order point
pub fn as_bytes(&self) -> &[u8; 56]
[src]
Converts a public key into a byte slice
Trait Implementations
impl<'_> From<&'_ Secret> for PublicKey
[src]
Given a Secret Key, compute the corresponding public key using the generator specified in RFC7748 XXX: Waiting for upstream PR to use pre-computation
impl From<[u8; 56]> for PublicKey
[src]
Convert a byte array of length 56 into a PublicKey
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,