Skip to main content

RecoverableSignPrimitive

Trait RecoverableSignPrimitive 

Source
pub trait RecoverableSignPrimitive<C>{
    // Required method
    fn try_sign_recoverable_prehashed<K: Borrow<Scalar<C>> + Invert<Output = Scalar<C>>>(
        &self,
        ephemeral_scalar: &K,
        hashed_msg: &Scalar<C>,
    ) -> Result<(Signature<C>, bool)>;
}
Expand description

SignPrimitive for signature implementations that can provide public key recovery implementation.

Required Methodsยง

Source

fn try_sign_recoverable_prehashed<K: Borrow<Scalar<C>> + Invert<Output = Scalar<C>>>( &self, ephemeral_scalar: &K, hashed_msg: &Scalar<C>, ) -> Result<(Signature<C>, bool)>

Try to sign the prehashed message.

Accepts the same arguments as SignPrimitive::try_sign_prehashed but returns a boolean flag which indicates whether or not the y-coordinate of the computed ๐‘ = ๐‘˜ร—๐‘ฎ point is odd, which can be incorporated into recoverable signatures.

Dyn Compatibilityยง

This trait is not dyn compatible.

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

Implementorsยง