[][src]Function secp256k1_abc_sys::secp256k1_ec_privkey_tweak_mul

pub unsafe extern "C" fn secp256k1_ec_privkey_tweak_mul(
    ctx: *const secp256k1_context,
    seckey: *mut c_uchar,
    tweak: *const c_uchar
) -> c_int

Tweak a private key by multiplying it by a tweak. Returns: 0 if the tweak was out of range (chance of around 1 in 2^128 for uniformly random 32-byte arrays, or equal to zero. 1 otherwise. Args: ctx: pointer to a context object (cannot be NULL). In/Out: seckey: pointer to a 32-byte private key. In: tweak: pointer to a 32-byte tweak.