include.secp256k1_recovery

Undocumented in source.

Members

Functions

secp256k1_ecdsa_recover
int secp256k1_ecdsa_recover(const(secp256k1_context)* ctx, secp256k1_pubkey* pubkey, const(secp256k1_ecdsa_recoverable_signature)* sig, const(ubyte)* msghash32)

Recover an ECDSA public key from a signature.

secp256k1_ecdsa_recoverable_signature_convert
int secp256k1_ecdsa_recoverable_signature_convert(const(secp256k1_context)* ctx, secp256k1_ecdsa_signature* sig, const(secp256k1_ecdsa_recoverable_signature)* sigin)

Convert a recoverable signature into a normal signature.

secp256k1_ecdsa_recoverable_signature_parse_compact
int secp256k1_ecdsa_recoverable_signature_parse_compact(const(secp256k1_context)* ctx, secp256k1_ecdsa_recoverable_signature* sig, const(ubyte)* input64, int recid)

Parse a compact ECDSA signature (64 bytes + recovery id).

secp256k1_ecdsa_recoverable_signature_serialize_compact
int secp256k1_ecdsa_recoverable_signature_serialize_compact(const(secp256k1_context)* ctx, ubyte* output64, int* recid, const(secp256k1_ecdsa_recoverable_signature)* sig)

Serialize an ECDSA signature in compact format (64 bytes + recovery id).

secp256k1_ecdsa_sign_recoverable
int secp256k1_ecdsa_sign_recoverable(const(secp256k1_context)* ctx, secp256k1_ecdsa_recoverable_signature* sig, const(ubyte)* msghash32, const(ubyte)* seckey, secp256k1_nonce_function noncefp, const(void)* ndata)

Create a recoverable ECDSA signature.

Structs

secp256k1_ecdsa_recoverable_signature
struct secp256k1_ecdsa_recoverable_signature

Opaque data structured that holds a parsed ECDSA signature, supporting pubkey recovery.

Meta