pub struct Ed25519SecretKey(pub [u8; 32]);Expand description
Ed25519 secret key (the original 32-byte seed).
Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl Ed25519SecretKey
impl Ed25519SecretKey
Sourcepub fn to_pkcs8_der(&self) -> Vec<u8> ⓘ
pub fn to_pkcs8_der(&self) -> Vec<u8> ⓘ
Encode as PKCS#8 DER (RFC 8037).
Sourcepub fn from_pkcs8_der(der: &[u8]) -> Option<Self>
pub fn from_pkcs8_der(der: &[u8]) -> Option<Self>
Parse from PKCS#8 DER.
Sourcepub fn to_pkcs8_pem(&self) -> String
pub fn to_pkcs8_pem(&self) -> String
Encode as PKCS#8 PEM.
Sourcepub fn from_pkcs8_pem(pem: &str) -> Option<Self>
pub fn from_pkcs8_pem(pem: &str) -> Option<Self>
Parse from PKCS#8 PEM.
Trait Implementations§
Source§impl Clone for Ed25519SecretKey
impl Clone for Ed25519SecretKey
Source§fn clone(&self) -> Ed25519SecretKey
fn clone(&self) -> Ed25519SecretKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Ed25519SecretKey
impl RefUnwindSafe for Ed25519SecretKey
impl Send for Ed25519SecretKey
impl Sync for Ed25519SecretKey
impl Unpin for Ed25519SecretKey
impl UnsafeUnpin for Ed25519SecretKey
impl UnwindSafe for Ed25519SecretKey
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