[−][src]Function secp256k1_abc_sys::secp256k1_ec_privkey_tweak_add
pub unsafe extern "C" fn secp256k1_ec_privkey_tweak_add(
ctx: *const secp256k1_context,
seckey: *mut c_uchar,
tweak: *const c_uchar
) -> c_int
Tweak a private key by adding tweak to it. Returns: 0 if the tweak was out of range (chance of around 1 in 2^128 for uniformly random 32-byte arrays, or if the resulting private key would be invalid (only when the tweak is the complement of the private key). 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.