proof/*: removed coin_blind from hashes

This commit is contained in:
aggstam
2023-06-19 21:38:00 +03:00
parent 0e83156cdd
commit 8e4f93f4a9
2 changed files with 2 additions and 4 deletions

View File

@@ -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);

View File

@@ -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