[][src]Function secp256k1_abc_sys::secp256k1_ecdsa_sign

pub unsafe extern "C" fn secp256k1_ecdsa_sign(
    ctx: *const secp256k1_context,
    sig: *mut secp256k1_ecdsa_signature,
    msg32: *const c_uchar,
    seckey: *const c_uchar,
    noncefp: secp256k1_nonce_function,
    ndata: *const c_void
) -> c_int

Create an ECDSA signature.

Returns: 1: signature created 0: the nonce generation function failed, or the private key was invalid. Args: ctx: pointer to a context object, initialized for signing (cannot be NULL) Out: sig: pointer to an array where the signature will be placed (cannot be NULL) In: msg32: the 32-byte message hash being signed (cannot be NULL) seckey: pointer to a 32-byte secret key (cannot be NULL) noncefp:pointer to a nonce generation function. If NULL, secp256k1_nonce_function_default is used ndata: pointer to arbitrary data used by the nonce generation function (can be NULL)

The created signature is always in lower-S form. See secp256k1_ecdsa_signature_normalize for more details.