Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove first nullifier emitted in txe #12360

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

sklppy88
Copy link
Contributor

@sklppy88 sklppy88 commented Feb 28, 2025

As @benesjan pointed out in #12215, the approach to use a deterministic nullifier emitted by the TXe was extremely brittle, and should be changed. I looked and found it was actually possible to emit an arbitrary nullifier (albeit through a bit obscure of an oracle), and have adapted the tests to use this oracle.

Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@sklppy88 sklppy88 changed the title init fix: remove first nullifier emitted in txe Feb 28, 2025
@sklppy88 sklppy88 force-pushed the ek/fix/12359/remove-first-nullifier-emitted-in-txe branch from 25884f1 to f087c4c Compare February 28, 2025 10:07
#[test]
unconstrained fn nullifier_inclusion() {
let (env) = test::create_note_and_nullify_it();
let mut env = TestEnvironment::new();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Realized I didn't need this setup

@sklppy88 sklppy88 marked this pull request as ready for review February 28, 2025 10:08
Copy link
Contributor

@Thunkar Thunkar left a comment

Choose a reason for hiding this comment

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

Even if the oracle is weird, the alternative was weirder. LGTM!

@sklppy88 sklppy88 merged commit 6da195f into master Feb 28, 2025
10 of 12 checks passed
@sklppy88 sklppy88 deleted the ek/fix/12359/remove-first-nullifier-emitted-in-txe branch February 28, 2025 11:29
@sklppy88 sklppy88 linked an issue Feb 28, 2025 that may be closed by this pull request
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.

fix: remove FIRST_NULLIFIER_EMITTED_IN_TXE
2 participants