Skip to content

feat: translator zk relation adjustments testing#12718

Merged
maramihali merged 17 commits intomasterfrom
mm/relation-adjustment
Mar 24, 2025
Merged

feat: translator zk relation adjustments testing#12718
maramihali merged 17 commits intomasterfrom
mm/relation-adjustment

Conversation

@maramihali
Copy link

@maramihali maramihali commented Mar 13, 2025

This PR changes DeltaRangeConstraint and Permutation relation in Translator to operate correctly in the presence of masking data at the end of the polynomials as well as unit tests to establish correctness of the changes given masking is not yet full enabled in Translator.

@maramihali maramihali force-pushed the mm/relation-adjustment branch from 10e59d3 to 98b1f7e Compare March 21, 2025 11:04
@maramihali maramihali marked this pull request as ready for review March 21, 2025 11:07
@maramihali maramihali self-assigned this Mar 21, 2025
@maramihali maramihali added the crypto cryptography label Mar 21, 2025
* the random values.
*/
void TranslatorProvingKey::compute_translator_range_constraint_ordered_polynomials()
void TranslatorProvingKey::compute_translator_range_constraint_ordered_polynomials(bool masking)
Copy link
Author

Choose a reason for hiding this comment

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

This bool masking will go away in the "end product", I wanted to be able to test what I'm doing and it felt like the most non-invasive approach since it doesn't interfere with the rest of the Translator computation normally

@maramihali maramihali requested a review from ledwards2225 March 21, 2025 11:44
Copy link
Contributor

@ledwards2225 ledwards2225 left a comment

Choose a reason for hiding this comment

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

Overall looks great. Nice job adding tests. Left one suggestion and some comments about comments.

auto lagrange_masking = View(in.lagrange_masking);
const auto& gamma = ParameterView(params.gamma);
const auto& beta = ParameterView(params.beta);
return (interleaved_range_constraints_0 + lagrange_masking * beta + gamma) *
Copy link
Contributor

Choose a reason for hiding this comment

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

this construction (in particular the + lagrange_masking * beta) feels like it deserves some comments, unless its explained elsewhere and I'm missing it. What are we establishing by adding an additional constant to the sum only at the masked indices?

Copy link
Author

@maramihali maramihali Mar 24, 2025

Choose a reason for hiding this comment

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

thanks, will add comments to the declaration of accumulate

@maramihali maramihali merged commit 33e528f into master Mar 24, 2025
7 checks passed
@maramihali maramihali deleted the mm/relation-adjustment branch March 24, 2025 12:35
PhilWindle pushed a commit that referenced this pull request Mar 24, 2025
🤖 I have created a new Aztec Packages release
---


##
[0.82.2](v0.82.1...v0.82.2)
(2025-03-24)


### Features

* optimize unconstrained `embedded_curve_add`
(noir-lang/noir#7751)
([1e796e2](1e796e2))
* translator zk relation adjustments testing
([#12718](#12718))
([33e528f](33e528f))


### Bug Fixes

* increased poseidon gates
([#12973](#12973))
([49d6bfa](49d6bfa))


### Miscellaneous

* bump bb to 0.82.0 (noir-lang/noir#7777)
([1e796e2](1e796e2))
* Fix for e2e gossip network test
([#12954](#12954))
([5a256c8](5a256c8))
* get logs from init containers
([#12974](#12974))
([28d1f3e](28d1f3e))
* remove duplication on library list files
(noir-lang/noir#7774)
([1e796e2](1e796e2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
DanielKotov pushed a commit that referenced this pull request Mar 27, 2025
This PR changes DeltaRangeConstraint and Permutation relation in
Translator to operate correctly in the presence of masking data at the
end of the polynomials as well as unit tests to establish correctness of
the changes given masking is not yet full enabled in Translator.
DanielKotov pushed a commit that referenced this pull request Mar 27, 2025
🤖 I have created a new Aztec Packages release
---


##
[0.82.2](v0.82.1...v0.82.2)
(2025-03-24)


### Features

* optimize unconstrained `embedded_curve_add`
(noir-lang/noir#7751)
([1e796e2](1e796e2))
* translator zk relation adjustments testing
([#12718](#12718))
([33e528f](33e528f))


### Bug Fixes

* increased poseidon gates
([#12973](#12973))
([49d6bfa](49d6bfa))


### Miscellaneous

* bump bb to 0.82.0 (noir-lang/noir#7777)
([1e796e2](1e796e2))
* Fix for e2e gossip network test
([#12954](#12954))
([5a256c8](5a256c8))
* get logs from init containers
([#12974](#12974))
([28d1f3e](28d1f3e))
* remove duplication on library list files
(noir-lang/noir#7774)
([1e796e2](1e796e2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
DanielKotov pushed a commit that referenced this pull request Mar 27, 2025
This PR changes DeltaRangeConstraint and Permutation relation in
Translator to operate correctly in the presence of masking data at the
end of the polynomials as well as unit tests to establish correctness of
the changes given masking is not yet full enabled in Translator.
DanielKotov pushed a commit that referenced this pull request Mar 27, 2025
🤖 I have created a new Aztec Packages release
---


##
[0.82.2](v0.82.1...v0.82.2)
(2025-03-24)


### Features

* optimize unconstrained `embedded_curve_add`
(noir-lang/noir#7751)
([1e796e2](1e796e2))
* translator zk relation adjustments testing
([#12718](#12718))
([33e528f](33e528f))


### Bug Fixes

* increased poseidon gates
([#12973](#12973))
([49d6bfa](49d6bfa))


### Miscellaneous

* bump bb to 0.82.0 (noir-lang/noir#7777)
([1e796e2](1e796e2))
* Fix for e2e gossip network test
([#12954](#12954))
([5a256c8](5a256c8))
* get logs from init containers
([#12974](#12974))
([28d1f3e](28d1f3e))
* remove duplication on library list files
(noir-lang/noir#7774)
([1e796e2](1e796e2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

crypto cryptography

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants