Skip to main content

valueToBigInt

For the complete documentation index, see llms.txt

@midnight-ntwrk/onchain-runtime v3.0.0


@midnight-ntwrk/onchain-runtime / valueToBigInt

Function: valueToBigInt()

function valueToBigInt(x): bigint

Internal

Internal conversion between field-aligned binary values and bigints within the scalar field

Parameters

x

Value

Returns

bigint

Throws

If the value does not encode a field element