-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Finite field computation for moduli of special form #11
Labels
Comments
Merged
9 tasks
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The library currently implements generic routine for odd field moduli.
Routines for special field modulus form:
exist and can be implemented with compile-time specialization.
In particular, the field modulus for secp256k1 used in Bitcoin and Ethereum 1 is
2^256 - 2^32 - 2^9 - 2^8 - 2^7 - 2^6 - 2^4 - 1
or2^256 - 0x1000003D1
which is a pseudo-Mersenne prime.The text was updated successfully, but these errors were encountered: