Minimal Anti Collusion Infrastructure (MACI) / formatPrivateKeyForBabyJub
Function: formatPrivateKeyForBabyJub()
formatPrivateKeyForBabyJub(
privateKey):bigint
Defined in: keys.ts:33
An internal function which formats a random private key to be compatible with the BabyJub curve. This is the format which should be passed into the PublicKey and other circuits.
Parameters
privateKey
SnarkBigNumber
A private key generated using generatePrivateKey()
Returns
bigint
A BabyJub-compatible private key.