-
Notifications
You must be signed in to change notification settings - Fork 167
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
Bls12381 #505
Bls12381 #505
Conversation
Quality Gate failedFailed conditions |
I know this is a work in progress, but in general adding (a lot) more documentation would be helpful, as right now the code seems mostly undocumented. It would also seem that |
Yep, I'll add some more doc. This was put on hold as I'm waiting the drand fork to be merged before working and merging this PR, to avoid further conflicts |
more comments
* Add ByteOrder() function + constant from int.go * Update circl_bls12381 and edwards25519 scalars * Formatting * Fix typo * Add Order() to the scalar interface * Adapt IBE to make it general * Add doc * Fix dkg bug (#515) * BugFix: use array index instead of node index * Fix endianess bool * Add tests for endianess
Please retry analysis of this Pull-Request directly on SonarCloud |
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.
I think you just forgot to move the circl/suite_test.go
file to its new folder, no?
} | ||
|
||
func (s Suite) Write(w io.Writer, objs ...interface{}) error { | ||
panic("Suite.Write(): deprecated in drand") | ||
panic("Suite.Write(): deprecated in kyber") | ||
} |
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.
if Suite.Read
and Suite.Write
are both deprecated, V4 would be a good time to remove them in another PR.
pairing/circl_bls12381/suite_test.go
Outdated
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.
Why not move this to pairing/cirl/suite_test.go
instead of deleting it?
Looks like this file might have been "forgotten" behind, no?
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.
Oh no, all the methods contained in that file were transferred to general bls12381_test.go
, so there was no reason to keep the duplicated tests.
…st of our dependencies
Quality Gate passedIssues Measures |
1 similar comment
Quality Gate passedIssues Measures |
This PR introduces a different implementation of bls12381 (kilic) to kyber, which is faster than the actual circl implementation