pub struct Ed25519SecretKey { /* private fields */ }Implementations§
Source§impl Ed25519SecretKey
impl Ed25519SecretKey
Sourcepub fn generate() -> Ed25519SecretKey
pub fn generate() -> Ed25519SecretKey
Generates a random Ed25519SecretKey.
Sourcepub fn from_bytes(seed: &[u8; 32]) -> Result<Ed25519SecretKey, Error>
pub fn from_bytes(seed: &[u8; 32]) -> Result<Ed25519SecretKey, Error>
Imports the private key from a seed.
pub fn public_key(&self) -> Ed25519PublicKey
Trait Implementations§
Source§impl From<&Ed25519SecretKey> for Jwk
impl From<&Ed25519SecretKey> for Jwk
Source§fn from(key: &Ed25519SecretKey) -> Self
fn from(key: &Ed25519SecretKey) -> Self
Converts to this type from the input type.
Source§impl From<SecretKey> for Ed25519SecretKey
impl From<SecretKey> 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