mirror of
https://github.com/logos-blockchain/logos-blockchain-pocs.git
synced 2026-01-05 22:53:10 +00:00
Update poq.circom
This commit is contained in:
parent
01e02e4e7e
commit
f1cb69601e
@ -15,7 +15,7 @@ include "../Mantle/pol.circom"; // defines proof_of_leadership
|
|||||||
* - bitsQuota : bit-width for the index comparator
|
* - bitsQuota : bit-width for the index comparator
|
||||||
* - zoneTreeDepth : depth of the zone’s aged notes Merkle tree (32)
|
* - zoneTreeDepth : depth of the zone’s aged notes Merkle tree (32)
|
||||||
*/
|
*/
|
||||||
template ProofOfQuota(nLevelsPK, nLevelsPol, bitsQuota) {
|
template ProofOfQuota(nLevelsPK, nLevelsPol, bitsQuota, zoneTreeDepth) {
|
||||||
// Public Inputs
|
// Public Inputs
|
||||||
signal input session; // session s
|
signal input session; // session s
|
||||||
signal input Qc; // core quota Q_C
|
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
|
// 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 ] }
|
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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user