[][src]Function secp256k1_abc_sys::secp256k1_ec_pubkey_tweak_mul

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

Tweak a public key by multiplying it by a tweak value. 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 initialized for validation (cannot be NULL). In/Out: pubkey: pointer to a public key obkect. In: tweak: pointer to a 32-byte tweak.