35 uint64_t low_leaf_index,
42 uint64_t low_leaf_index,
Interface for a checkpoint notifiable.
void on_checkpoint_committed() override
Emits a checkpoint commit event, finalizing pending indexed tree changes.
void assert_read(const FF &value, std::optional< IndexedTreeSiloingParameters > siloing_params, bool exists, const IndexedTreeLeafData &low_leaf_preimage, uint64_t low_leaf_index, std::span< const FF > sibling_path, const AppendOnlyTreeSnapshot &snapshot) override
Performs a membership/non-membership read check on an indexed tree.
void on_checkpoint_created() override
Emits a checkpoint creation event for the indexed tree.
FieldGreaterThanInterface & field_gt
void validate_low_leaf(const FF &value, const IndexedTreeLeafData &low_leaf_preimage, bool exists)
Validates the low leaf preimage against the target value for membership/non-membership.
EventEmitterInterface< IndexedTreeCheckEvent > & events
void on_checkpoint_reverted() override
Emits a checkpoint revert event, rolling back pending indexed tree changes.
AppendOnlyTreeSnapshot write(const FF &value, std::optional< IndexedTreeSiloingParameters > siloing_params, std::optional< uint64_t > public_inputs_index, const IndexedTreeLeafData &low_leaf_preimage, uint64_t low_leaf_index, std::span< const FF > low_leaf_sibling_path, const AppendOnlyTreeSnapshot &prev_snapshot, std::optional< std::span< const FF > > insertion_sibling_path) override
Writes a value into an indexed tree, or validates it already exists.
IndexedTreeCheck(Poseidon2Interface &poseidon2, MerkleCheckInterface &merkle_check, FieldGreaterThanInterface &field_gt, EventEmitterInterface< IndexedTreeCheckEvent > &event_emitter)
FF silo(const FF &nullifier, IndexedTreeSiloingParameters siloing_params)
Computes the siloed value by hashing the separator, address, and value via Poseidon2.
Poseidon2Interface & poseidon2
MerkleCheckInterface & merkle_check
EventEmitter< DataCopyEvent > event_emitter
AVM range check gadget for witness generation.
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept