SigningKey

Trait SigningKey 

Source
pub trait SigningKey {
    // Required methods
    fn sign(&self, message: &[u8]) -> Vec<u8> ;
    fn from_pkcs8_der(der: &[u8]) -> Option<Self>
       where Self: Sized;
    fn verifying_key(&self) -> Box<dyn VerifyingKey>;
}
Expand description

A singing key using EdDSA

Required Methods§

Source

fn sign(&self, message: &[u8]) -> Vec<u8>

Sign the message using this key.

Source

fn from_pkcs8_der(der: &[u8]) -> Option<Self>
where Self: Sized,

Create a new key from a PKCS8 DER.

Source

fn verifying_key(&self) -> Box<dyn VerifyingKey>

Create a verifying key from this key.

Implementors§