Trait dco3_crypto::PrivateKey

source ·
pub trait PrivateKey {
    // Required method
    fn get_private_key(&self) -> &PrivateKeyContainer;
}
Expand description

Trait to get only the private key container of either a private key or a user keypair container

Required Methods§

Implementors§

source§

impl PrivateKey for PlainUserKeyPairContainer

Returns the private key of a user keypair container as reference

source§

impl PrivateKey for PrivateKeyContainer

Returns the private key of a private key container as reference