@midnight/ledger v3.0.2 • Readme | API
@midnight/ledger v3.0.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