use ;
use keccak256;
/// An element of the BN254 scalar field Fr.
///
/// Represented as a big-endian byte vector without Montgomery reduction.
// TODO: Make sure value is always reduced.
pub type Field = U256;
// See <https://docs.rs/ark-bn254/latest/ark_bn254>
pub const MODULUS: Field =
uint!;
/// Hash arbitrary data to a field element.
///
/// This is used to create `signal_hash` and `external_nullifier_hash`.