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

rewrite float division circuit #523

Merged
merged 3 commits into from
Oct 1, 2022

Conversation

chaosma
Copy link
Contributor

@chaosma chaosma commented Sep 21, 2022

  • use a similar algorithm which has more relax condition for inputs
  • check divisor not equal zero
  • check inputs not overflow for float division and representation
  • check multiplication a*b not overflow
  • to avoid subsidy formula overflow, add comments on voice credit contracts

use a similar but require less constraint for IntegerDivision
add a*b overflow check in float.circom
… constants

(1) M in subsidy calculation (2) hard cap of voice credit
@chaosma chaosma merged commit ee466b7 into privacy-scaling-explorations:v1 Oct 1, 2022
@chaosma chaosma deleted the audix-fix-1 branch October 1, 2022 14:57
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.

1 participant