[][src]Struct cryptouri::secret_key::Ed25519SecretKey

pub struct Ed25519SecretKey(_);

Ed25519 secret key (i.e. compressed Edwards-y coordinate)

Methods

impl Ed25519SecretKey[src]

pub fn new(bytes: [u8; 32]) -> Self[src]

Create a new Ed25519SecretKey object from the given byte array (containing a randomly chosen secret scalar

pub fn from_slice(slice: &[u8]) -> Result<Self, Error>[src]

Create a new Ed25519 secret key from a byte slice

Trait Implementations

impl Encodable for Ed25519SecretKey[src]

impl AsSecretSlice for Ed25519SecretKey[src]

impl Drop for Ed25519SecretKey[src]

impl Zeroize for Ed25519SecretKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self