[−][src]Function secp256k1_abc_sys::secp256k1_ecdsa_recover
pub unsafe extern "C" fn secp256k1_ecdsa_recover(
ctx: *const secp256k1_context,
pubkey: *mut secp256k1_pubkey,
sig: *const secp256k1_ecdsa_recoverable_signature,
msg32: *const c_uchar
) -> c_int
Recover an ECDSA public key from a signature.
Returns: 1: public key successfully recovered (which guarantees a correct signature). 0: otherwise. Args: ctx: pointer to a context object, initialized for verification (cannot be NULL) Out: pubkey: pointer to the recovered public key (cannot be NULL) In: sig: pointer to initialized signature that supports pubkey recovery (cannot be NULL) msg32: the 32-byte message hash assumed to be signed (cannot be NULL)