Skip to main content

addField

For the complete documentation index, see llms.txt

@midnight-ntwrk/compact-runtime v0.16.0-rc.0


@midnight-ntwrk/compact-runtime / addField

Function: addField()

function addField(x, y): bigint;

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

Parameters

x

bigint

y

bigint

Returns

bigint