-
Notifications
You must be signed in to change notification settings - Fork 276
Add beacon api postStateValidatorIdentities #7223
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
base: unstable
Are you sure you want to change the base?
Conversation
@@ -223,6 +223,11 @@ type | |||
status*: string | |||
validator*: Validator | |||
|
|||
RestValidatorIdentity* = object | |||
index*: ValidatorIndex | |||
pubkeyData*{.serializedFieldName: "pubkey".}: HashedValidatorPubKey |
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.
why can't this field just be called pubkey
?
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.
Yeah both work for me. I think it mainly helps the naming consistency as other types using HashedValidatorPubKey
are pubkeyData
.
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.
There is no reason to call it pubkeyData
, to keep naming consistency rename it please to pubkey
. Even if some types internally using pubkeyData
all the REST types using pubkey
.
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.
Also i have not seen HashedValidatorPubKey
serialization/deserialization procedure, so it will not working because its impossible to automatically decode this type, so i think proper type for this object would be ValidatorPubKey
.
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.
What does it mean? Serialization is working fine for Validator
in the response of other APIs.
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.
It means that it could provide whatever json-serialization
will prefer, which probably could be totally incompatible with what specification means.
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.
There is no reason to call it
pubkeyData
, to keep naming consistency rename it please topubkey
. Even if some types internally usingpubkeyData
all the REST types usingpubkey
.
This change require implementation of additional tests in |
|
postStateValidatorIdentities
in Beacon-APIs #7151