[][src]Function secp256k1_abc_sys::secp256k1_ec_pubkey_tweak_add

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

Tweak a public key by adding tweak times the generator 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 public key would be invalid (only when the tweak is the complement of the corresponding private key). 1 otherwise. Args: ctx: pointer to a context object initialized for validation (cannot be NULL). In/Out: pubkey: pointer to a public key object. In: tweak: pointer to a 32-byte tweak.