secp256k1_ecdsa_recover

Recover an ECDSA public key from a signature.

extern (C) pure nothrow @nogc @safe
int
secp256k1_ecdsa_recover

Return Value

Type: int

1: public key successfully recovered (which guarantees a correct signature). 0: otherwise. Args: ctx: pointer to a context object, initialized for verification. Out: pubkey: pointer to the recovered public key. In: sig: pointer to initialized signature that supports pubkey recovery. msghash32: the 32-byte message hash assumed to be signed.

Meta