-
Notifications
You must be signed in to change notification settings - Fork 0
feat: trait for signature and NCS impl over it #10
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
Conversation
7afa786 to
672e532
Compare
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
if using the BN254, P::G1 is equivalent to Bn254::G1Projective Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
use only first generator for signing and verifying messages, test with max_lanes amount of messages Signed-off-by: pedro bufulin <pedro@semiotic.ai>
… tags as ScalarField Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
672e532 to
d966c4b
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.
See comment, important that generators are actually generators and not random group elements.
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
a6fa8b0 to
b24557c
Compare
cbehn1
left a comment
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.
Everything currently looks good to me.
severiano-sisneros
left a comment
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. Couple changes I think would be good: update the h2s2 function signature to accept allocation_id as an input rather than calculate it and return it, and use the HashToCurve trait provided by ark-ec to when hashing messages to curve points, rather than implementing our own.
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
also refactor curve and hasher types in test Signed-off-by: pedro bufulin <pedro@semiotic.ai>
Signed-off-by: pedro bufulin <pedro@semiotic.ai>
No description provided.