[][src]Function secp256k1_abc_sys::secp256k1_schnorr_sign

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

Create a signature using a custom EC-Schnorr-SHA256 construction. It produces non-malleable 64-byte signatures which support batch validation, and multiparty signing. 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: sig64: pointer to a 64-byte 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)