added derived lead coin, and removed derived coin nonce from public inputs

This commit is contained in:
mohab metwally
2022-11-19 21:02:47 +02:00
parent 5be1bcf5c8
commit 856ebd9c4a
2 changed files with 91 additions and 29 deletions

View File

@@ -35,7 +35,6 @@ circuit "Lead" {
constrain_instance(pk);
# coin (2) rho/nonce
c2_rho = poseidon_hash(PREFIX_EVL, c1_sk_root, c1_rho, ZERO);
constrain_instance(c2_rho);
# coin (1) cm/commitment
c1_cm_msg = poseidon_hash(PREFIX_CM, pk, value, c1_rho);
c1_cm_v = ec_mul_base(c1_cm_msg, NULLIFIER_K);