secp256r1ScalarAdd
For the complete documentation index, see llms.txt
@midnight-ntwrk/compact-runtime v0.20.0
@midnight-ntwrk/compact-runtime / secp256r1ScalarAdd
Function: secp256r1ScalarAdd()
function secp256r1ScalarAdd(x, y): bigint;
Secp256r1 scalar field addition
This function returns x + y in the secp256r1 scalar field (modulo SECP256R1_SCALAR_MODULUS).
Parameters
x
bigint
y
bigint
Returns
bigint