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

feat: Add proper felt division #50

Merged
merged 2 commits into from
Apr 29, 2024
Merged

feat: Add proper felt division #50

merged 2 commits into from
Apr 29, 2024

Conversation

zmalatrax
Copy link
Collaborator

Solves #49

Add Felt division (modular multiplicative inverse) based on the binary exponentiation.

Identified a bug in the test case "should deduce op1 for assert eq res logic add", using the oplogic "op0 * op1" instead of "op0 + op1". It confirms that string types are not suitable to perform this logic and should rather use enum/const objects, which will be addressed in another PR.

Haven't spotted this bug before, as div was an integer division 3n - 2n == 1n and 3n / 2n == 1n, test succeeding in both cases

@zmalatrax zmalatrax force-pushed the feat/felt-division branch from 467b7b5 to d371370 Compare April 29, 2024 11:48
@zmalatrax zmalatrax force-pushed the feat/felt-division branch from d371370 to cf42ab1 Compare April 29, 2024 12:00
@zmalatrax zmalatrax self-assigned this Apr 29, 2024
@zmalatrax zmalatrax merged commit 68b094f into main Apr 29, 2024
3 checks passed
@zmalatrax zmalatrax linked an issue Jun 6, 2024 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.

feat: implement proper felt division
2 participants