pub struct Ed25519PrivateKey(/* private fields */);
Expand description
Ed25519 private key.
Implementations§
Source§impl Ed25519PrivateKey
impl Ed25519PrivateKey
Sourcepub fn random(rng: &mut impl CryptoRngCore) -> Self
Available on crate feature rand_core
only.
pub fn random(rng: &mut impl CryptoRngCore) -> Self
rand_core
only.Generate a random Ed25519 private key.
Sourcepub fn from_bytes(bytes: &[u8; 32]) -> Self
pub fn from_bytes(bytes: &[u8; 32]) -> Self
Parse Ed25519 private key from bytes.
Trait Implementations§
Source§impl Clone for Ed25519PrivateKey
impl Clone for Ed25519PrivateKey
Source§fn clone(&self) -> Ed25519PrivateKey
fn clone(&self) -> Ed25519PrivateKey
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 moreSource§impl ConstantTimeEq for Ed25519PrivateKey
impl ConstantTimeEq for Ed25519PrivateKey
Source§impl Debug for Ed25519PrivateKey
impl Debug for Ed25519PrivateKey
Source§impl Drop for Ed25519PrivateKey
impl Drop for Ed25519PrivateKey
Source§impl LowerHex for Ed25519PrivateKey
impl LowerHex for Ed25519PrivateKey
Source§impl PartialEq for Ed25519PrivateKey
impl PartialEq for Ed25519PrivateKey
Source§impl TryFrom<&[u8]> for Ed25519PrivateKey
impl TryFrom<&[u8]> for Ed25519PrivateKey
Source§impl UpperHex for Ed25519PrivateKey
impl UpperHex for Ed25519PrivateKey
impl Eq for Ed25519PrivateKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes