secp256k1_ec_seckey_tweak_mul

Tweak a secret key by multiplying it by a tweak.

extern (C)
int
secp256k1_ec_seckey_tweak_mul
(,
ubyte* seckey
,
const(ubyte)* tweak32
)

Return Value

Type: int

0 if the arguments are invalid. 1 otherwise. Args: ctx: pointer to a context object. In/Out: seckey: pointer to a 32-byte secret key. If the secret key is invalid according to secp256k1_ec_seckey_verify, this function returns 0. seckey will be set to some unspecified value if this function returns 0. In: tweak32: pointer to a 32-byte tweak. If the tweak is invalid according to secp256k1_ec_seckey_verify, this function returns 0. For uniformly random 32-byte arrays the chance of being invalid is negligible (around 1 in 2^128).

Meta