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

Failing tests for dense modulus #104

Closed
kilic opened this issue Nov 20, 2021 · 2 comments
Closed

Failing tests for dense modulus #104

kilic opened this issue Nov 20, 2021 · 2 comments

Comments

@kilic
Copy link

kilic commented Nov 20, 2021

Some tests are failing for generated secp256k1 fields which has 256 bit dense modulus value. To regenerate in a clean directory:

goff -m 115792089237316195423570985008687907853269984665640564039457584007908834671663 -o . -p secp256k1_fp -e Element
go mod init tmp && go mod tidy
go test
@gbotrel gbotrel transferred this issue from Consensys/goff Nov 22, 2021
gbotrel added a commit that referenced this issue Nov 22, 2021
@gbotrel
Copy link
Collaborator

gbotrel commented Nov 22, 2021

@kilic thanks for raising this issue :)

The field arithmetic code generation for multiplication [saturated moduli only] was missing a carry propagation. Fixed, and goff is updated to latest gnark-crypto .

@gbotrel gbotrel closed this as completed Nov 22, 2021
@gbotrel
Copy link
Collaborator

gbotrel commented Nov 22, 2021

On a side note, we are also looking at secp256k1 fields (not the curve operations), and might end up re-working these type of moduli in the future, perf-wise.

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

No branches or pull requests

2 participants