-
Notifications
You must be signed in to change notification settings - Fork 12
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
blst
lagrange interpolation
#95
base: unstable
Are you sure you want to change the base?
Conversation
do you have a poc using blsful? Id almost say not having to use unsafe and roll some diy cryptography is worth more messy types but there are valid arguments for both libs. |
@Zacholme7 not yet, will do |
Added an impl for
(note that this uses some
The |
# Conflicts: # Cargo.lock # Cargo.toml
I should have read the benchmarking code closer... looks good!! |
Almost 2 seconds for 1000 iterations, so about 2ms for one. That's still a full second of CPU time if all 500 validators want to sign something, but a) that should be rare, and b) we have multiple cores available. So I think both variants are tolerable... ...but yeah, that almost 2x speedup is still tempting :P |
I've opened supranational/blst#248 to upstream the necessary changes to Until then, I propose merging this. I've set the safe-but-slower implementation as the default and added a big warning to the unsafe implementation. As I made sure both offer the same API, we can start working with this and postpone the final decision on what to use until after an internal review. This introduces two patched dependencies to the root edit: need to update the anchor branch first: sigp/lighthouse#6830 |
scratching my head at the CI failure. why does |
idk the root reason, but cargo update has fixed this in the past for me if you haven't done that yet. |
# Conflicts: # Cargo.toml
Proof of concept of using
blst
for signature recovery.We should discuss whether we want to use this or
blsful
.Arguments for this impl:
blsful
uses a whole stack of own types. Lighthouse instead uses their ownbls
crate that builds uponblst
)Arguments for
blsful
:unsafe
neededblst