pub struct Ed25519PrivateKey { /* private fields */ }Implementations§
Source§impl Ed25519PrivateKey
impl Ed25519PrivateKey
pub fn from_bytes(seed: &[u8; 32]) -> Self
pub fn generate(rng: &mut dyn Rng) -> Self
pub fn private_bytes(&self) -> [u8; 32]
pub fn public_key(&self) -> Ed25519PublicKey
pub fn sign(&self, message: &[u8]) -> [u8; 64]
Auto Trait Implementations§
impl Freeze for Ed25519PrivateKey
impl RefUnwindSafe for Ed25519PrivateKey
impl Send for Ed25519PrivateKey
impl Sync for Ed25519PrivateKey
impl Unpin for Ed25519PrivateKey
impl UnsafeUnpin for Ed25519PrivateKey
impl UnwindSafe for Ed25519PrivateKey
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