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

pub trait RecoverableSignPrimitive<C> where
    C: Curve + ProjectiveArithmetic,
    FieldBytes<C>: From<Scalar<C>> + for<'r> From<&'r Scalar<C>>,
    Scalar<C>: PrimeField<Repr = FieldBytes<C>>,
    SignatureSize<C>: ArrayLength<u8>, 
{ pub 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), Error>; }
This is supported on crate features hazmat and arithmetic only.

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

Required methods

pub 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), Error>
[src]

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...