Skip to content

feat(avm)!: Unify nullifier, written slots and retrieved bytecodes tree traces#20949

Open
sirasistant wants to merge 5 commits intoarv/pre_audit_nullifier_tree_checkfrom
arv/unify_generic_indexed_tree_checks
Open

feat(avm)!: Unify nullifier, written slots and retrieved bytecodes tree traces#20949
sirasistant wants to merge 5 commits intoarv/pre_audit_nullifier_tree_checkfrom
arv/unify_generic_indexed_tree_checks

Conversation

@sirasistant
Copy link
Contributor

Nullifier tree check was a superset of written slots and retrieved bytecodes tree check. Unify all three into the nullifier tree check implementation generalized as "indexed tree check"

@@ -0,0 +1,282 @@
include "merkle_check.pil";
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the old nullifier check, renamed, with renaming of nullifier => value, leaf_not_exists renamed to not_exists, parametrized tree height and siloing separator, and exposing tree_size_after_write.

@@ -0,0 +1,398 @@
#include <gmock/gmock.h>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the old nullifier tree check test

@@ -0,0 +1,233 @@
#include "barretenberg/vm2/simulation/gadgets/indexed_tree_check.hpp"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's the nullifier tree check renamed and with updated comments and minor changes. Diff it manually.

@@ -0,0 +1,404 @@
#include "barretenberg/vm2/simulation/gadgets/indexed_tree_check.hpp"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the old nullifier gadget test renamed :/

#include "barretenberg/vm2/tracegen/lib/discard_reconstruction.hpp"

namespace bb::avm2::tracegen {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the nullifier one renamed with minor changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant