浏览代码

proof/*: removed coin_blind from hashes

aggstam 3 年之前
父节点
当前提交
8e4f93f4a9
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1 2
      proof/burn.zk
  2. 1 2
      proof/mint.zk

+ 1 - 2
proof/burn.zk

@@ -9,7 +9,6 @@ witness "Burn" {
 	Base serial,
 	Base value,
 	Base token,
-	Base coin_blind,
 	Scalar value_blind,
 	Scalar token_blind,
 	Uint32 leaf_pos,
@@ -48,7 +47,7 @@ circuit "Burn" {
 	pub = ec_mul_base(secret, NULLIFIER_K);
 	pub_x = ec_get_x(pub);
 	pub_y = ec_get_y(pub);
-	C = poseidon_hash(pub_x, pub_y, value, token, serial, coin_blind);
+	C = poseidon_hash(pub_x, pub_y, value, token, serial);
 
 	# Merkle root
 	root = merkle_root(leaf_pos, path, C);

+ 1 - 2
proof/mint.zk

@@ -10,14 +10,13 @@ witness "Mint" {
 	Base value,
 	Base token,
 	Base serial,
-	Base coin_blind,
 	Scalar value_blind,
 	Scalar token_blind,
 }
 
 circuit "Mint" {
 	# Poseidon hash of the coin
-	C = poseidon_hash(pub_x, pub_y, value, token, serial, coin_blind);
+	C = poseidon_hash(pub_x, pub_y, value, token, serial);
 	constrain_instance(C);
 
 	# Pedersen commitment for coin's value