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

chore: clean up translator circuit builder function definitions #10944

Merged
merged 9 commits into from
Dec 24, 2024

Conversation

maramihali
Copy link
Contributor

@maramihali maramihali commented Dec 23, 2024

Some of the core functions in TranslatorCircuitBuilder were not actually defined as part of the class. This PR addresses it, which removes the need to resolve the scope of member variables in the class, when used in those functions, and constified / staticfied function signatures where appropriate

@maramihali maramihali changed the title chore: small translator circuit builder cleanup chore: translator circuit builder function definition cleanup Dec 23, 2024
@maramihali maramihali marked this pull request as ready for review December 23, 2024 20:58
@maramihali maramihali requested a review from Rumata888 December 23, 2024 21:06
@maramihali maramihali self-assigned this Dec 23, 2024
@maramihali maramihali changed the title chore: translator circuit builder function definition cleanup chore: clean up translator circuit builder function definitions Dec 23, 2024
@@ -58,12 +58,14 @@ TEST(TranslatorCircuitBuilder, CircuitBuilderBaseCase)

Fq previous_accumulator = Fq::random_element();

// Create a circuit builder
auto circuit_builder = TranslatorCircuitBuilder(v, x);
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the point in moving this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

none anymore as I made the functions below static

*
* @details Translator Circuit Builder builds a circuit the purpose of which is to calculate the batched
* @details Translator Circuit Builder builds a circuit whose purpose is to calculate the batched
Copy link
Contributor

Choose a reason for hiding this comment

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

Why?

@maramihali maramihali merged commit f6fef05 into master Dec 24, 2024
46 of 47 checks passed
@maramihali maramihali deleted the mm/translator-circuit-builder-cleanup branch December 24, 2024 15:26
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.

2 participants