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

refactor: emulated clean up fixes #448 #449

Merged
merged 10 commits into from
Jan 27, 2023
Merged

refactor: emulated clean up fixes #448 #449

merged 10 commits into from
Jan 27, 2023

Conversation

gbotrel
Copy link
Collaborator

@gbotrel gbotrel commented Jan 26, 2023

  • refactor: step 1 clean up api and builder wrapper
  • refactor: PackElementLimbs PackFull -> packLimbs
  • refactor: added field.NewElement
  • refactor: remove deadcode from builder stuff, update stats with constraining inputs

@gbotrel gbotrel requested a review from ivokub January 26, 2023 21:12
Copy link
Collaborator

@ivokub ivokub left a comment

Choose a reason for hiding this comment

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

In general looks good. I think we do not need GnarkInitHook anymore though?

And now there is only a single use of Field.NewElement. In some tests we use emulated.ValueOf where we actually initialise constant in-circuit and then it would be better to use Field.NewElement to set internal=true

std/math/emulated/field.go Outdated Show resolved Hide resolved
std/math/emulated/element_test.go Outdated Show resolved Hide resolved
std/math/emulated/element.go Show resolved Hide resolved
Copy link
Collaborator

@ivokub ivokub left a comment

Choose a reason for hiding this comment

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

🚀

@gbotrel gbotrel merged commit 3f4cefa into develop Jan 27, 2023
@gbotrel gbotrel deleted the refactor/emulated branch January 27, 2023 15:21
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.

None yet

2 participants