Trait SecretKeyTrait

Source
pub trait SecretKeyTrait: KeyDetails + Debug {
    // Required methods
    fn create_signature(
        &self,
        key_pw: &Password,
        hash: HashAlgorithm,
        data: &[u8],
    ) -> Result<SignatureBytes>;
    fn hash_alg(&self) -> HashAlgorithm;
}

Required Methods§

Source

fn create_signature( &self, key_pw: &Password, hash: HashAlgorithm, data: &[u8], ) -> Result<SignatureBytes>

Source

fn hash_alg(&self) -> HashAlgorithm

The recommended hash algorithm to calculate the signature hash digest with, when using this as a signer

Trait Implementations§

Source§

impl KeyDetails for Box<&dyn SecretKeyTrait>

Source§

impl SecretKeyTrait for Box<&dyn SecretKeyTrait>

Source§

fn create_signature( &self, key_pw: &Password, hash: HashAlgorithm, data: &[u8], ) -> Result<SignatureBytes>

Source§

fn hash_alg(&self) -> HashAlgorithm

The recommended hash algorithm to calculate the signature hash digest with, when using this as a signer

Implementations on Foreign Types§

Source§

impl SecretKeyTrait for Box<&dyn SecretKeyTrait>

Implementors§