[][src]Trait solana_libra_nextgen_crypto::traits::SigningKey

pub trait SigningKey: PrivateKey<PublicKeyMaterial = Self::VerifyingKeyMaterial> + ValidKey {
    type VerifyingKeyMaterial: VerifyingKey<SigningKeyMaterial = Self>;
    type SignatureMaterial: Signature<SigningKeyMaterial = Self>;
    fn sign_message(&self, message: &HashValue) -> Self::SignatureMaterial;

    fn verifying_key(&self) -> Self::VerifyingKeyMaterial { ... }
}

A type family of valid keys that know how to sign.

A trait for a ValidKey which knows how to sign a message, and return an associated Signature type.

Associated Types

type VerifyingKeyMaterial: VerifyingKey<SigningKeyMaterial = Self>

The associated verifying key type for this signing key.

type SignatureMaterial: Signature<SigningKeyMaterial = Self>

The associated signature type for this signing key.

Loading content...

Required methods

fn sign_message(&self, message: &HashValue) -> Self::SignatureMaterial

Signs an input message.

Loading content...

Provided methods

fn verifying_key(&self) -> Self::VerifyingKeyMaterial

Returns the associated verifying key

Loading content...

Implementors

Loading content...