-
Notifications
You must be signed in to change notification settings - Fork 221
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 blst with gnark-crypto, simplify builds #479
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #479 +/- ##
=======================================
Coverage 68.64% 68.64%
=======================================
Files 8 8
Lines 1263 1263
=======================================
Hits 867 867
Misses 346 346
Partials 50 50
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
83777c8
to
fb665c8
Compare
450c79f
to
a93b638
Compare
I pushed a few commits that explicitly disables cgo in more places (like tests). It needs to be enabled with the |
Nice commits, thanks @jtraglia! ⭐ Love how this simplifies the building significantly. |
Please wait to merge this until we fully consider the security/performance implications.
|
Thanks, good considerations! I like the PR flashbots/go-boost-utils#62 to replace it with /~https://github.com/ConsenSys/gnark-crypto -- seems like a great replacement, and should certainly be an improvement over /~https://github.com/supranational/blst
It's not, that was a responsibility solely on mev-boost side. |
@metachris Have you double-checked that the |
Updating The errors from previous version:
|
very cool! btw, added a commit to ignore |
created a release based on this branch and state, to test in testnets before merging:
|
Asked @parithosh to help test in some of the testnets |
Ah thank you, I didn't notice that the linter failed CI checks. I just made a change to your fix. Instead of disabling that linter check, add Also, I've checked out the release and it looks good! Running |
Sorry to flip-flop again, but I think we should be using the latest version of Updated this PR accordingly. |
Thanks for keeping an eye on the details! <3 |
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'm a bit biased, but LGTM 👍 I'm happy with this PR!
📝 Summary
Replacing blst with gnark-crypto, an audited, non-cgo BLS12-381 implementation.
Follow-up to initial work from @jtraglia at
No more portable/static builds needed either! Non-cgo builds are static by default.
✅ I have run these commands
make lint
make test-race
go mod tidy