Skip to content

Commit

Permalink
fix action proof bench
Browse files Browse the repository at this point in the history
  • Loading branch information
XuyangSong committed Oct 10, 2023
1 parent d149cda commit fc5d2c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions taiga_halo2/benches/action_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use taiga_halo2::{
ACTION_CIRCUIT_PARAMS_SIZE, ACTION_PROVING_KEY, ACTION_VERIFYING_KEY, SETUP_PARAMS_MAP,
TAIGA_COMMITMENT_TREE_DEPTH,
},
merkle_tree::{Anchor, MerklePath},
merkle_tree::{MerklePath, Node},
note::{Note, NoteType, RandomSeed},
nullifier::{Nullifier, NullifierKeyContainer},
};
Expand Down Expand Up @@ -66,7 +66,10 @@ fn bench_action_proof(name: &str, c: &mut Criterion) {
}
};
let input_merkle_path = MerklePath::random(&mut rng, TAIGA_COMMITMENT_TREE_DEPTH);
let anchor = Anchor::from(pallas::Base::random(&mut rng));
let anchor = {
let cm_note = Node::from(&input_note);
input_merkle_path.root(cm_note)
};
let rseed = RandomSeed::random(&mut rng);
ActionInfo::new(input_note, input_merkle_path, anchor, output_note, rseed)
};
Expand Down

0 comments on commit fc5d2c8

Please sign in to comment.