@midnight-ntwrk/onchain-runtime v0.2.2 • Readme | API
@midnight-ntwrk/onchain-runtime v0.2.2 / valueToBigInt
Function: valueToBigInt()
Internal
valueToBigInt(x): bigint
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