Trait askar_crypto::repr::KeyGen [−][src]
pub trait KeyGen { fn generate() -> Result<Self, Error>
where
Self: Sized; fn from_seed(_seed: Seed<'_>) -> Result<Self, Error>
where
Self: Sized, { ... } }
Expand description
Key generation operations
Required methods
fn generate() -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
Expand description
Generate a new random key.
Provided methods
fn from_seed(_seed: Seed<'_>) -> Result<Self, Error> where
Self: Sized,
[src]
Self: Sized,
Expand description
Generate a new deterministic key.
Implementors
impl KeyGen for Ed25519KeyPair
[src]
impl KeyGen for Ed25519KeyPair
[src]This is supported on crate feature
ed25519
only.impl KeyGen for K256KeyPair
[src]
impl KeyGen for K256KeyPair
[src]This is supported on crate feature
k256
only.impl KeyGen for P256KeyPair
[src]
impl KeyGen for P256KeyPair
[src]This is supported on crate feature
p256
only.impl KeyGen for X25519KeyPair
[src]
impl KeyGen for X25519KeyPair
[src]This is supported on crate feature
ed25519
only.impl<Pk: BlsPublicKeyType> KeyGen for BlsKeyPair<Pk>
[src]
impl<Pk: BlsPublicKeyType> KeyGen for BlsKeyPair<Pk>
[src]This is supported on crate feature
bls
only.