-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Transfer curcuits in this repository do not update accounts in the new merkle leaves. Compare curcuit code from this repository:
// accounts updates
new_hash_from[i] = MultiMiMC7(4,91);
new_hash_from[i].in[0] <== pubkey[i][0];
new_hash_from[i].in[1] <== token_balance_from[i];
new_hash_from[i].in[2] <== nonce_from[i];
new_hash_from[i].in[3] <== token_type_from[i] ;
to code in the original circom tutorial with a single transfer:
// accounts updates
component new_hash_from = MultiMiMC7(4,91);
new_hash_from.in[0] <== pubkey_x;
new_hash_from.in[1] <== token_balance_from-amount;
new_hash_from.in[2] <== nonce_from+1;
new_hash_from.in[3] <== token_type_from;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels