pub struct Ed25519SecretKey { /* private fields */ }Expand description
Ed25519 secret seed, wiped on drop.
Implementations§
Source§impl Ed25519SecretKey
impl Ed25519SecretKey
Sourcepub fn from_seed(seed: &[u8; 32]) -> ApiResult<Self>
pub fn from_seed(seed: &[u8; 32]) -> ApiResult<Self>
Construct a secret key from the RFC 8032 32-byte seed.
pub fn seed(&self) -> &[u8; 32]
pub fn export_seed(&self) -> ZeroizingBytes
pub fn public_key(&self) -> ApiResult<Ed25519PublicKey>
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 (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 Ed25519SecretKey
impl Debug for Ed25519SecretKey
Source§impl Drop for Ed25519SecretKey
impl Drop for Ed25519SecretKey
impl ZeroizeOnDrop for Ed25519SecretKey
Auto 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