Reference
Constants
Fixed values in the contracts and the circuit.
Copy Markdown
| Name | Value | Where |
|---|---|---|
ASSET_ID | 1 ($OPA) | OpaquePool |
| Maximum note amount | 2^120 - 1 | OpaquePool, circuit |
| Tree depth | 24 | MerkleTree |
| Root history | 64 roots | MerkleTree |
| Empty leaf | keccak256("opaque") reduced to the field | MerkleTree |
| Share offset | 1e6 | OpaquePool |
| Public inputs per proof | 8 | OpaquePool, circuit |
| Field | BN254 scalar field | everywhere |
| Hash | Poseidon2, state width 4, 8 full and 56 partial rounds | Poseidon2Hasher, circuit |
| Proof system | UltraHonk (Barretenberg) | circuit |
| Compiler | Solidity 0.8.26, Cancun | contracts |