pub struct Ed25519PrivateKey(/* private fields */);
Implementations§
Source§impl Ed25519PrivateKey
impl Ed25519PrivateKey
pub const LENGTH: usize = 32usize
pub fn public_key(&self) -> Ed25519PublicKey
pub fn sign(&self, msg: impl AsRef<[u8]>) -> Ed25519Signature
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn from_bytes(slice: &[u8]) -> Result<Self, ()>
pub fn from_u64(n: u64) -> Result<Self, ()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ed25519PrivateKey
impl RefUnwindSafe for Ed25519PrivateKey
impl Send for Ed25519PrivateKey
impl Sync for Ed25519PrivateKey
impl Unpin 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