We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently the README says:
`redc_param` is equal to `(1 << (2 * Params::modulus_bits())) / modulus` .
But in the code I see: https://github.com/noir-lang/noir-bignum-paramgen/blob/8c3cb00c8498aebae596feab9273c73471907d7a/src/lib.rs#L26-L28
let k = modulus.bits(); let multiplicand = BigUint::new([1].to_vec()) << (k as usize * 2 + BARRETT_REDUCTION_OVERFLOW_BITS); let barrett_reduction_parameter: BigUint = (multiplicand) / modulus;
Which one is correct? Is + BARRETT_REDUCTION_OVERFLOW_BITS needed or is it optional?
+ BARRETT_REDUCTION_OVERFLOW_BITS
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently the README says:
But in the code I see:
https://github.com/noir-lang/noir-bignum-paramgen/blob/8c3cb00c8498aebae596feab9273c73471907d7a/src/lib.rs#L26-L28
Which one is correct? Is
+ BARRETT_REDUCTION_OVERFLOW_BITS
needed or is it optional?The text was updated successfully, but these errors were encountered: