Skip to main content

subField

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.15.0


@midnight-ntwrk/compact-runtime / subField

Function: subField()

function subField(x, y): bigint;

Field subtraction returns the result of subtracting y from x, wrapping if necessary x and y are assumed to be values in the range [0, FIELD_MODULUS)

Parameters

x

bigint

y

bigint

Returns

bigint