contract/consensus: Add section comment for lottery part of the proposal zk proof

This commit is contained in:
parazyd
2023-06-11 20:40:04 +02:00
parent 80cf2eea5c
commit e22d4d422c

View File

@@ -124,6 +124,10 @@ circuit "ConsensusProposal_V1" {
);
constrain_instance(output_coin);
# ============================
# Constrain lottery parameters
# ============================
# Coin y, constructed with the old serial for seeding:
seed = poseidon_hash(SEED_PREFIX, input_serial);
y = poseidon_hash(seed, mu_y);