pub trait EncryptedSign {
    // Required method
    fn encrypted_sign(
        &self,
        signing_keypair: &KeyPair<EvenY>,
        encryption_key: &Point<Normal, impl Secrecy>,
        message: Message<'_, impl Secrecy>
    ) -> EncryptedSignature;
}
Expand description

Extension trait for Schnorr to add the encrypted signing algorithm.

Required Methods§

source

fn encrypted_sign( &self, signing_keypair: &KeyPair<EvenY>, encryption_key: &Point<Normal, impl Secrecy>, message: Message<'_, impl Secrecy> ) -> EncryptedSignature

Create a signature on a message encrypted under encryption_key.

See the synopsis for usage.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<NG, CH> EncryptedSign for Schnorr<CH, NG>
where CH: Digest<OutputSize = U32> + Clone, NG: NonceGen,