Bladeren bron

messgae constraint

narodnik 4 jaren geleden
bovenliggende
commit
76488e64a6
1 gewijzigde bestanden met toevoegingen van 1 en 0 verwijderingen
  1. 1 0
      bin/daod/proof/dao-exec.zk

+ 1 - 0
bin/daod/proof/dao-exec.zk

@@ -45,6 +45,7 @@ circuit "DaoExec" {
     # instr = OPCODE, u, P
     # instr = OPCODE, u, P
     message = poseidon_hash(instr_value, instr_key_x, instr_key_y,
     message = poseidon_hash(instr_value, instr_key_x, instr_key_y,
                             instr_token_id, message_blind);
                             instr_token_id, message_blind);
+    constrain_instance(message);
 
 
 	# Vote commitment
 	# Vote commitment
 	vote_cv = ec_mul_short(vote_value, VALUE_COMMIT_VALUE);
 	vote_cv = ec_mul_short(vote_value, VALUE_COMMIT_VALUE);