23 uint64_t note_hash_counter,
27 uint64_t note_hash_counter,
31 uint64_t note_hash_counter,
57 uint64_t note_hash_counter,
61 uint64_t note_hash_counter,
65 uint64_t note_hash_counter,
79 bool should_make_unique,
80 uint64_t note_hash_counter,
void on_checkpoint_created() override
AppendOnlyTreeSnapshot append_siloed_note_hash(const FF &siloed_note_hash, uint64_t note_hash_counter, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot) override
EventEmitterInterface< NoteHashTreeCheckEvent > & events
AppendOnlyTreeSnapshot append_note_hash(const FF ¬e_hash, AztecAddress contract_address, uint64_t note_hash_counter, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot) override
NoteHashTreeCheck(const FF &first_nullifier, Poseidon2Interface &poseidon2, MerkleCheckInterface &merkle_check, EventEmitterInterface< NoteHashTreeCheckEvent > &event_emitter)
FF make_nonce(uint64_t note_hash_counter) const
FF make_unique(const FF &siloed_note_hash, const FF &nonce) const
MerkleCheckInterface & merkle_check
FF make_siloed(AztecAddress contract_address, const FF ¬e_hash) const
FF get_first_nullifier() const override
void on_checkpoint_committed() override
void on_checkpoint_reverted() override
Poseidon2Interface & poseidon2
AppendOnlyTreeSnapshot append_note_hash_internal(FF note_hash, std::optional< AztecAddress > contract_address, bool should_make_unique, uint64_t note_hash_counter, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot)
bool note_hash_exists(const FF &unique_note_hash, const FF &leaf_value, uint64_t leaf_index, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &snapshot) override
AppendOnlyTreeSnapshot append_unique_note_hash(const FF &unique_note_hash, uint64_t note_hash_counter, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot) override
virtual bool note_hash_exists(const FF &unique_note_hash, const FF &leaf_value, uint64_t leaf_index, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &snapshot)=0
virtual AppendOnlyTreeSnapshot append_unique_note_hash(const FF &unique_note_hash, uint64_t note_hash_counter, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot)=0
virtual ~NoteHashTreeCheckInterface()=default
virtual AppendOnlyTreeSnapshot append_note_hash(const FF ¬e_hash, AztecAddress contract_address, uint64_t note_hash_counter, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot)=0
virtual AppendOnlyTreeSnapshot append_siloed_note_hash(const FF &siloed_note_hash, uint64_t note_hash_counter, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot)=0
virtual FF get_first_nullifier() const =0
EventEmitter< DataCopyEvent > event_emitter
AztecAddress contract_address
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept