Trait ddoresolver_rs::Generate[][src]

pub trait Generate: KeyMaterial {
    pub fn new() -> Self;
pub fn new_with_seed(seed: &[u8]) -> Self;
pub fn from_public_key(public_key: &[u8]) -> Self;
pub fn from_secret_key(private_key: &[u8]) -> Self; }

Collection of methods to initialize a key pair using random or deterministic manner

Required methods

pub fn new() -> Self[src]

Generate random key

pub fn new_with_seed(seed: &[u8]) -> Self[src]

Generate key deterministically using a given seed

pub fn from_public_key(public_key: &[u8]) -> Self[src]

Generate instance from existing public key

pub fn from_secret_key(private_key: &[u8]) -> Self[src]

Generate instance from existing secret key

Loading content...

Implementors

impl Generate for AsymmetricKey<VerifyKey<NistP256>, SigningKey<NistP256>>[src]

impl Generate for AsymmetricKey<PublicKey, StaticSecret>[src]

impl Generate for AsymmetricKey<CyclicGroup, SecretKey>[src]

impl Generate for AsymmetricKey<PublicKey, SecretKey>[src]

impl Generate for AsymmetricKey<PublicKey, SecretKey>[src]

Loading content...