-
Notifications
You must be signed in to change notification settings - Fork 63
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
clarify builder signing domain #39
Conversation
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.
@terencechain raised the same issue so if this is not clear then I'm happy to update
the idea is that this follows the semantics of the spec which inherits the python handling of "default" arguments
if we want to make it explicit then I'd suggest specifying the arguments inline like:
compute_domain(DOMAIN_APPLICATION_BUILDER, fork_version=None, genesis_validators_root=None)
what do y'all think?
I generally don't want to stray too far from the pyspec style as I would like to retain the option to write more elaborate specs here in that style where we can, for example, generate conformance tests in a pretty straightforward way
This spec is not, however, written in Python pseudocode. Even after reading that's the intent, it's not something that I'd read into the actual prose. Nothing about
suggests Python semantics on the level of default arguments are more than accidental. |
I think this makes it clear, but like I said I'm open to clarifying further. Do you like the way I wrote it above or would you rather spell out the data like you did here? |
I do like your suggested approach: 8f68a98 |
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!
No description provided.