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 copy 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 From<&Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature ed25519
only.
impl From<&Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature
ed25519
only.source§fn from(private: &Ed25519PrivateKey) -> Ed25519PublicKey
fn from(private: &Ed25519PrivateKey) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<&Ed25519PrivateKey> for SigningKey
Available on crate feature ed25519
only.
impl From<&Ed25519PrivateKey> for SigningKey
Available on crate feature
ed25519
only.source§fn from(key: &Ed25519PrivateKey) -> SigningKey
fn from(key: &Ed25519PrivateKey) -> SigningKey
Converts to this type from the input type.
source§impl From<&SigningKey> for Ed25519PrivateKey
Available on crate feature ed25519
only.
impl From<&SigningKey> for Ed25519PrivateKey
Available on crate feature
ed25519
only.source§fn from(key: &SigningKey) -> Ed25519PrivateKey
fn from(key: &SigningKey) -> Ed25519PrivateKey
Converts to this type from the input type.
source§impl From<Ed25519PrivateKey> for Ed25519Keypair
Available on crate feature ed25519
only.
impl From<Ed25519PrivateKey> for Ed25519Keypair
Available on crate feature
ed25519
only.source§fn from(private: Ed25519PrivateKey) -> Ed25519Keypair
fn from(private: Ed25519PrivateKey) -> Ed25519Keypair
Converts to this type from the input type.
source§impl From<Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature ed25519
only.
impl From<Ed25519PrivateKey> for Ed25519PublicKey
Available on crate feature
ed25519
only.source§fn from(private: Ed25519PrivateKey) -> Ed25519PublicKey
fn from(private: Ed25519PrivateKey) -> Ed25519PublicKey
Converts to this type from the input type.
source§impl From<Ed25519PrivateKey> for SigningKey
Available on crate feature ed25519
only.
impl From<Ed25519PrivateKey> for SigningKey
Available on crate feature
ed25519
only.source§fn from(key: Ed25519PrivateKey) -> SigningKey
fn from(key: Ed25519PrivateKey) -> SigningKey
Converts to this type from the input type.
source§impl From<SigningKey> for Ed25519PrivateKey
Available on crate feature ed25519
only.
impl From<SigningKey> for Ed25519PrivateKey
Available on crate feature
ed25519
only.source§fn from(key: SigningKey) -> Ed25519PrivateKey
fn from(key: SigningKey) -> Ed25519PrivateKey
Converts to this type from the input type.
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)