-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat: add banderwagon #271
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good so far
d1e2a99
to
42c3e8e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, we only need tests now
Co-authored-by: Mamy Ratsimbazafy <[email protected]>
Co-authored-by: Mamy Ratsimbazafy <[email protected]>
@mratsim While reviewing please have a close look at the precompute for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent
P.y.neg() | ||
P.y += one | ||
|
||
# (1 - ax²) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a future TODO, a = 5 and we should shortcut when a <= 15 to use the addition chains here:
constantine/constantine/math/arithmetic/finite_fields.nim
Lines 475 to 479 in 7b64f85
elif b == 5: | |
var t {.noInit.}: typeof(a) | |
t.double(a) | |
t.double() | |
a += t |
Fixes #263
Adds all the features mentioned in the issue
Other than that, the following have been changed :
codecs_status_codes.nim
filetrySetFromCoordX
added to Twisted Edwards curve, both projective & affine