-
Notifications
You must be signed in to change notification settings - Fork 998
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
Possible aesthetic rework to get_domain #865
Conversation
In general I dislike how domains, which should be an unobtrusive out-of-the-way thing that we don't think about much, are taking up so much space in code to express, to the point of them being the single thing preventing `bls_verify` from being expressed in one line of code. Here I reorder arguments and add a default, and make `bls_verify` a one-liner. Not necessarily convinced that exactly this approach is the way to go, but IMO it's worth considering.
All instances of |
This looks fine to me. Justin are you suggesting making a
This seems reasonable. It doesn't allow you to fully abstract away the pattern because some objects are verified against the fork epoch |
Making a |
I would say altering |
Agreed that we do not want to mix layers :) On that note, it has been bothering me that the current My suggestion would be to have cleanly separated functions. First, a "pure" |
Any verdict on this PR? |
Very much pro :) Further changes I'd like to see:
|
okay. I'll fix merge conflict and merge |
In general I dislike how domains, which should be an unobtrusive out-of-the-way thing that we don't think about much, are taking up so much space in code to express, to the point of them being the single thing preventing
bls_verify
from being expressed in one line of code. Here I reorder arguments and add a default, and makebls_verify
a one-liner.Not necessarily convinced that exactly this approach is the way to go, but IMO it's worth considering.