-
Notifications
You must be signed in to change notification settings - Fork 503
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
Replace BLS library with github.com/kilic/bn254 #978
Conversation
ddba74f
to
7d139ca
Compare
7d139ca
to
de8e9e6
Compare
Codecov Report
@@ Coverage Diff @@
## feature/v3-parity #978 +/- ##
====================================================
Coverage ? 55.28%
====================================================
Files ? 167
Lines ? 22357
Branches ? 0
====================================================
Hits ? 12361
Misses ? 9019
Partials ? 977 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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. Great job 💯
g2 = new(bn256.G2).Set(&zeroG2) | ||
} else { | ||
g2 = new(bn256.G2).Set(p.p) | ||
func (p *PublicKey) aggregate(next *PublicKey) *PublicKey { |
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.
As a separate task could we remove this code duplication(publicKey, signature)?
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.
At first glance it seemed like it can be unified into a single implementation, but eventually it cannot. The reason is because signature aggregation works with G1 point, whereas public key aggregates G2 points.
Description
Replace BLS library with github.com/kilic/bn254
Changes include
Checklist
Testing