Struct fwsig::types::PrivateKey
source · pub struct PrivateKey(_);
Expand description
PrivateKey object wrapping ed25519_dalek::SecretKey with encode/decode support
Implementations§
source§impl PrivateKey
impl PrivateKey
sourcepub fn generate<RNG: RngCore + CryptoRng>(rng: &mut RNG) -> Self
pub fn generate<RNG: RngCore + CryptoRng>(rng: &mut RNG) -> Self
Generate a new private key using the provided RNG
sourcepub fn inner(self) -> SecretKey
pub fn inner(self) -> SecretKey
Unwrap the PrivateKey object into it’s inner ed25519_dalek::SecretKey
Methods from Deref<Target = SecretKey>§
Trait Implementations§
source§impl Clone for PrivateKey
impl Clone for PrivateKey
source§impl Debug for PrivateKey
impl Debug for PrivateKey
source§impl Deref for PrivateKey
impl Deref for PrivateKey
Access the internal ed25519_dalek::SecretKey for cryptographic operations
source§impl Display for PrivateKey
impl Display for PrivateKey
source§impl From<&PrivateKey> for PublicKey
impl From<&PrivateKey> for PublicKey
source§fn from(value: &PrivateKey) -> Self
fn from(value: &PrivateKey) -> Self
Converts to this type from the input type.
source§impl From<SecretKey> for PrivateKey
impl From<SecretKey> for PrivateKey
Convert an ed25519_dalek::SecretKey into a PrivateKey object