pub unsafe extern "C" fn verify_ecdsa_secp256k1_signature(
    public_key: *const u8,
    signature: *const u8,
    message_hash: *const u8
) -> i32
Expand description

Verify an ecdsa over secp256k1 with bitcoin-core implementation. The public key is expected to be 33 bytes, the signature is expected to be 64 bytes (serialized in compressed format), and the message must be 32 bytes. We only allow checking signatures on 32-byte arrays which are expected to be message hashes.

The return value is 0 if verification fails, and 1 if it succeeds. No other return values are possible.