Update poq.circom

This commit is contained in:
megonen 2025-06-11 17:12:52 +03:00 committed by GitHub
parent 01e02e4e7e
commit f1cb69601e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ include "../Mantle/pol.circom"; // defines proof_of_leadership
* - bitsQuota : bit-width for the index comparator
* - zoneTreeDepth : depth of the zones aged notes Merkle tree (32)
*/
template ProofOfQuota(nLevelsPK, nLevelsPol, bitsQuota) {
template ProofOfQuota(nLevelsPK, nLevelsPol, bitsQuota, zoneTreeDepth) {
// Public Inputs
signal input session; // session s
signal input Qc; // core quota Q_C
@ -128,4 +128,4 @@ template ProofOfQuota(nLevelsPK, nLevelsPol, bitsQuota) {
// Instantiate with chosen depths: 20 for core PK tree, 25 for PoL slot tree
component main { public [ session, Qc, Ql, pk_root, aged_root, slot, epoch_nonce, t0, t1, K ] }
= ProofOfQuota(20, 25, 20, 32);
= ProofOfQuota(20, 25, 20, 32);