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

Support modulo operator for u64. #166

Merged
merged 1 commit into from
Nov 5, 2022
Merged

Support modulo operator for u64. #166

merged 1 commit into from
Nov 5, 2022

Conversation

porcuquine
Copy link
Collaborator

Now that we have U64, supporting mod is easy. The implementation assumes that both args are U64 and returns a U64.

This PR also adds some missing tests showing that it is an error to apply a numeric operator to a non-numeric argument. These should be ported to the circuit, since explicit proof of error conditions needs to be tested.

@porcuquine porcuquine merged commit 288f440 into master Nov 5, 2022
@porcuquine porcuquine deleted the mod-u64 branch November 5, 2022 19:47
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Jan 23, 2023
This aligns the behavior of mod with that of div, see lurk-lab#166 for the original inclusion of mod.

Fixes lurk-lab#197
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Jan 23, 2023
This aligns the behavior of mod with that of div, see lurk-lab#166 for the original inclusion of mod.

Fixes lurk-lab#197
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Jan 23, 2023
This aligns the behavior of mod with that of div, see lurk-lab#166 for the original inclusion of mod.

Fixes lurk-lab#197
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Jan 24, 2023
This aligns the behavior of mod with that of div, see lurk-lab#166 for the original inclusion of mod.

Fixes lurk-lab#197
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Jan 24, 2023
This aligns the behavior of mod with that of div, see lurk-lab#166 for the original inclusion of mod.

Fixes lurk-lab#197
huitseeker added a commit to huitseeker/lurk-rs that referenced this pull request Jan 25, 2023
This aligns the behavior of mod with that of div, see lurk-lab#166 for the original inclusion of mod.

Fixes lurk-lab#197
huitseeker added a commit that referenced this pull request Jan 25, 2023
This aligns the behavior of mod with that of div, see #166 for the original inclusion of mod.

Fixes #197
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