pub trait SecretKey: Clone + Send + Sync + 'static {
    type Signature: Send + Sync + Clone + Codec;
    type PublicKey: PublicKey<Signature = Self::Signature>;

    // Required methods
    fn sign(&self, message: &[u8]) -> Self::Signature;
    fn public_key(&self) -> Self::PublicKey;
}
Expand description

Secret key for signing messages, with an associated public key.

Required Associated Types§

source

type Signature: Send + Sync + Clone + Codec

source

type PublicKey: PublicKey<Signature = Self::Signature>

Required Methods§

source

fn sign(&self, message: &[u8]) -> Self::Signature

Produce a signature for the provided message.

source

fn public_key(&self) -> Self::PublicKey

Return the associated public key.

Object Safety§

This trait is not object safe.

Implementors§