secp256k1ScalarInv
For the complete documentation index, see llms.txt
@midnight-ntwrk/compact-runtime v0.19.0
@midnight-ntwrk/compact-runtime / secp256k1ScalarInv
Function: secp256k1ScalarInv()
function secp256k1ScalarInv(x): bigint;
Secp256k1 scalar field inverse
This function returns the multiplicative inverse of x in the secp256k1 scalar field. That is, a value y such that x * y = 1 (modulo SECP256K1_SCALAR_MODULUS). x is assumed to be in the range (0, SECP256K1_SCALAR_MODULUS).
Parameters
x
bigint
Returns
bigint