Generating Random Numbers - PrivateKeys

Hi,

How can I create a RandomKey of 32 bytes to use in an encryption algorithm in Noir?

Best,
Yash.

2 Likes

You can’t generate random numbers in a circuit, but you can pass it as a private input to the circuit.

2 Likes