[][src]Trait ecdsa::hazmat::RecoverableSignPrimitive

pub trait RecoverableSignPrimitive<C> where
    C: Curve + Arithmetic,
    SignatureSize<C>: ArrayLength<u8>, 
{ type RecoverableSignature: Signature + Into<Signature<C>>; fn try_sign_recoverable_prehashed<K: Borrow<C::Scalar> + Invert<Output = C::Scalar>>(
        &self,
        ephemeral_scalar: &K,
        hashed_msg: &ElementBytes<C>
    ) -> Result<Self::RecoverableSignature, Error>; }
This is supported on feature="hazmat" only.

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

Associated Types

type RecoverableSignature: Signature + Into<Signature<C>>

This is supported on feature="hazmat" only.

Type for recoverable signatures

Loading content...

Required methods

fn try_sign_recoverable_prehashed<K: Borrow<C::Scalar> + Invert<Output = C::Scalar>>(
    &self,
    ephemeral_scalar: &K,
    hashed_msg: &ElementBytes<C>
) -> Result<Self::RecoverableSignature, Error>

This is supported on feature="hazmat" only.

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.

Loading content...

Implementors

Loading content...