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

add felt op #45

Merged
merged 2 commits into from
Jul 1, 2024
Merged

add felt op #45

merged 2 commits into from
Jul 1, 2024

Conversation

AntoineFONDEUR
Copy link
Collaborator

Add felt-compatible multiplication and addition

Time spent on this PR: 20 mins

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Resolves #41

What is the new behavior?

Implemented ADD_FELT and MUL_FELT functions from already existing modAdd and modMul.
On google sheets, ADD_FELT("3618502788666131213697322783095070105623107215331596699973092056135872020481";1) returns 0x1.
ADD and MUL are already used by google sheets for regular (non modular) operations.

Copy link
Owner

@ClementWalter ClementWalter left a comment

Choose a reason for hiding this comment

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

We then need to use these addMod and mulMod in the vm itself, in the res logic computations

@ClementWalter ClementWalter merged commit 3582292 into ClementWalter:main Jul 1, 2024
1 check passed
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.

feat: replace native ops by FELT, ADD and MUL
2 participants