Skip to content
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

Bump nim-blscurve #1491

Merged
merged 16 commits into from
Aug 15, 2020
Merged

Bump nim-blscurve #1491

merged 16 commits into from
Aug 15, 2020

Conversation

mratsim
Copy link
Contributor

@mratsim mratsim commented Aug 11, 2020

This bumps BLSCurve with the following PRs:

Benefits:

  • Up-to-date code for audit
  • Speed improvement.

Note that unlike the Rust and Go code for aggregate verification, multithreading was not added. See multithreading usage:

Yuriy's threadpool would be a simple, short and maintainable solution if we wanted to go that route https://github.com/yglukhov/threadpools

@mratsim
Copy link
Contributor Author

mratsim commented Aug 13, 2020

From supranational/blst#22, passing -Drestrict= also works around the miscompilations hence it might be due to GCC using very aggressive optimization when restrict is used and restrict being used in the wrong place.

@mratsim
Copy link
Contributor Author

mratsim commented Aug 13, 2020

Currently synced with Medalla head on this branch (2099:5 67173) (epoch:slot_at_epoch slots_since_genesis)

@mratsim
Copy link
Contributor Author

mratsim commented Aug 15, 2020

Jenkins with Milagro fallback test takes twice as long so I'm going to comment it out once this passes.

Windows 64-bit goes over the 90min timeout when testing state_sim and block_sim, I will comment them out as well.

@mratsim mratsim merged commit 454b9d0 into devel Aug 15, 2020
@mratsim mratsim deleted the switch-blst branch August 15, 2020 17:34
dryajov pushed a commit that referenced this pull request Aug 17, 2020
* Bump BLSCurve

* Use unified aggregation API

* use new blscurve with unified aggregate API

* bump

* fix toRaw

* replace state_sim combine with AggregateSignature

* Fix 32-bit

* Fix 32-bit for real and test deactivating ccache for fno-tree-lopp-vectorize flag

* change compilation switches to narrow down Linux issue

* Use -fno-tree-vectorize to disable both tree-loop-vectorize and tree-slp-vectorize

* blscurve now disables both Loop and SLP vectorization

* Add tests for the miracl/milagro fallback

* Travis has max log size of 4MB

* Test with Miracl in the finalization test

* fix state_sim log level

* Coment out the slow fallback tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant