-
Notifications
You must be signed in to change notification settings - Fork 160
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3574 +/- ##
==========================================
+ Coverage 87.02% 87.23% +0.20%
==========================================
Files 353 353
Lines 48666 48667 +1
==========================================
+ Hits 42354 42457 +103
+ Misses 4769 4672 -97
+ Partials 1543 1538 -5
|
@sudeshrshetty : as discussed last week, here's the PR and here's the associated proposal. |
0ac2a13
to
2e29fdb
Compare
Hi @sudeshrshetty , we would really appreciate your feedback on the PR. We think it can bring good value to the project overall. Please, let us know :) |
@DRK3 @fqutishat @Moopli please review this PR and provide your feedback. Let us know if it is going to impact anything we have implemented in TrustBloc. |
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 to me, I would suggest having @Moopli take a look before merging :)
@ale-linux can you please squash your commits & re-push |
2466526
to
d0a0a80
Compare
Done - all tests run successfully on my node - unclear why they fail here.. maybe a flaky test? |
Any news? |
@sudeshrshetty I think @ale-linux is right, it's a flaky test issue. @Moopli is probably a bit more familiar with the tests, do you recognize those failures? If it's an ongoing flaky test issue, I think this PR is good to merge :) |
@sudeshrshetty: I'm happy to discuss any further open points/necessary changes, but if you think it is ready, would you mind merging? Otherwise I need to keep rebasing/fixing conflicts with upstream... |
...and the flaky test also passed, I think it's a sign that it's time to merge 😉 |
another rebase and now the flakes strike again... 😢 |
Sorry, I am re-triggering these failed tests to make succeed CI, so that I can merge it. |
Thanks much, @sudeshrshetty |
This PR switches the dependency used for elliptic curve operations from kilic to mathlib. Signed-off-by: Alessandro Sorniotti <[email protected]>
@sudeshrshetty : All tests have passed now - thx! |
Could we please merge now gents? @sudeshrshetty @fqutishat |
Title:
Use mathlib as the implementation for elliptic curve operations.
Description:
This PR is an implementation of this proposal.
Summary:
This PR changes the dependency used to handle the operations on elliptic curves needed by the BBS+ implementation. Instead of directly using the kilic implementation. we recommend switching to mathlib: mathlib is a module that exposes a common set of API backed by a number of different libraries (amcl, ConsenSys/gnark-crypto and kilic). It currently supports the following curves: FP256BN, BN254, BLS12_377 and BLS12_381 (the latter in two different variants, standard and BBS compliant). mathlib is already being used by fabric, the idemix implementation used by fabric, the fabric token sdk and the fabric smart client.