Skip to main content

secp256r1BaseSub

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.20.0


@midnight-ntwrk/compact-runtime / secp256r1BaseSub

Function: secp256r1BaseSub()

function secp256r1BaseSub(x, y): bigint;

Secp256r1 base field subtraction

This function returns x - y in the secp256r1 base field (modulo SECP256R1_BASE_MODULUS).

Parameters​

x​

bigint

y​

bigint

Returns​

bigint