mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-09 22:57:59 -05:00
proof/*: removed coin_blind from hashes
This commit is contained in:
@@ -9,7 +9,6 @@ witness "Burn" {
|
|||||||
Base serial,
|
Base serial,
|
||||||
Base value,
|
Base value,
|
||||||
Base token,
|
Base token,
|
||||||
Base coin_blind,
|
|
||||||
Scalar value_blind,
|
Scalar value_blind,
|
||||||
Scalar token_blind,
|
Scalar token_blind,
|
||||||
Uint32 leaf_pos,
|
Uint32 leaf_pos,
|
||||||
@@ -48,7 +47,7 @@ circuit "Burn" {
|
|||||||
pub = ec_mul_base(secret, NULLIFIER_K);
|
pub = ec_mul_base(secret, NULLIFIER_K);
|
||||||
pub_x = ec_get_x(pub);
|
pub_x = ec_get_x(pub);
|
||||||
pub_y = ec_get_y(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
|
# Merkle root
|
||||||
root = merkle_root(leaf_pos, path, C);
|
root = merkle_root(leaf_pos, path, C);
|
||||||
|
|||||||
@@ -10,14 +10,13 @@ witness "Mint" {
|
|||||||
Base value,
|
Base value,
|
||||||
Base token,
|
Base token,
|
||||||
Base serial,
|
Base serial,
|
||||||
Base coin_blind,
|
|
||||||
Scalar value_blind,
|
Scalar value_blind,
|
||||||
Scalar token_blind,
|
Scalar token_blind,
|
||||||
}
|
}
|
||||||
|
|
||||||
circuit "Mint" {
|
circuit "Mint" {
|
||||||
# Poseidon hash of the coin
|
# 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);
|
constrain_instance(C);
|
||||||
|
|
||||||
# Pedersen commitment for coin's value
|
# Pedersen commitment for coin's value
|
||||||
|
|||||||
Reference in New Issue
Block a user