@lelantos-org/sdk / primitives / randomJubjubScalar
Function: randomJubjubScalar()
ts
function randomJubjubScalar(): bigint;Defined in: @lelantos-org/sdk/dist/core/random.d.ts:25
Uniform non-zero scalar mod the Baby-Jubjub subgroup order.
The mask bounds the draw by 2^251, under the same invariant as randomFr: it must stay >= BABYJUB_SUBGROUP_ORDER.
Returns
bigint