Skip to main content

SigningKey

Trait SigningKey 

Source
pub trait SigningKey<VK: VerificationKey> {
    // Required method
    fn sign<R: SecureRng>(
        &self,
        plaintext: &VK::Plaintext,
        public_key: &VK,
        rng: &mut GeneralRng<R>,
    ) -> VK::Signature;
}
Expand description

The Signing key.

Required Methods§

Source

fn sign<R: SecureRng>( &self, plaintext: &VK::Plaintext, public_key: &VK, rng: &mut GeneralRng<R>, ) -> VK::Signature

Sign the plaintext message using the (secret) Signing key.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§