-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add iso-Pallas, SWU hash-to-curve, and Sinsemilla #17
Conversation
Co-authored-by: Kris Nuttycombe <kris.nuttycombe@gmail.com>
I tried reducing the duplication between Pallas and iso-Pallas using inheritance or ownership but it turned out to be too error-prone, i.e. hard to be sure that neither curve wasn't accidentally using the operations of the other, so I left the duplication in. |
…nsemilla.py executable. Signed-off-by: Daira Hopwood <daira@jacaranda.org>
…aHash. Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Can we use |
utACK @daira's changes aside from the Fp.ZERO suggested change |
Replace 0 with Fp.ZERO in `extract`. Co-authored-by: Taylor Hornby <taylor@defuse.ca>
Agreed; we shouldn't be doing any non-trivial assertions in |
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.
ACK
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.
Reviewed with @therealyingtong.
Dismissing my review while I check against @str4d's comments.
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.
Confirmed @str4d's comments.
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.
utACK once the bug below is fixed.
Co-authored-by: str4d <jack@z.cash>
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.
utACK
…mple_swu. Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
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.
utACK with minor comments.
I added three commits for direct testing of map_to_curve_simple_swu
; these should also be reviewed.
The test vector generators in this repository are meant to output data that can be copy-pasted or piped to a file. Generating multiple sets of test vectors from a single file interferes with this.
0db93ee
to
10bdd6c
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.
utACK with comments.
Existing test vector generators are adjusted to use Rand.i8() so they generate the same test vectors. We should evaluate these later to determine whether they should actually use Rand.u8() (and update the test vectors across the ecosystem).
f2438e6
to
9cb9e0f
Compare
Comments and a minor refactor for consistency.
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.
ACK f8008a0
I'm happy that the few remaining open comment threads have resolutions. |
No description provided.