Skip to main content

secp256r1BaseNeg

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.20.0


@midnight-ntwrk/compact-runtime / secp256r1BaseNeg

Function: secp256r1BaseNeg()

function secp256r1BaseNeg(x): bigint;

Secp256r1 base field negation

This function returns the negation of x in the secp256r1 base field. That is, a value y such that x + y = 0 (modulo SECP256R1_BASE_MODULUS). x is assumed to be in the range [0, SECP256R1_BASE_MODULUS).

Parameters​

x​

bigint

Returns​

bigint