[−][src]Struct cryptouri::secret_key::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]
fn to_uri_string(&self) -> String
[src]
fn to_dasherized_string(&self) -> String
[src]
impl AsSecretSlice for Ed25519SecretKey
[src]
fn as_secret_slice(&self) -> &[u8]
[src]
impl Drop for Ed25519SecretKey
[src]
impl Zeroize for Ed25519SecretKey
[src]
Auto Trait Implementations
impl Send for Ed25519SecretKey
impl Sync for Ed25519SecretKey
Blanket Implementations
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes,
[src]
Z: DefaultIsZeroes,
impl<T> Same<T> for T
type Output = T
Should always be Self