[−][src]Trait solana_libra_nextgen_crypto::traits::SigningKey
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.
Required methods
fn sign_message(&self, message: &HashValue) -> Self::SignatureMaterial
Signs an input message.
Provided methods
fn verifying_key(&self) -> Self::VerifyingKeyMaterial
Returns the associated verifying key