-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Web3Signer: Object Mapper and Types #10061
Conversation
- Files Added: | ||
- validator/keymanager/remote-web3signer package | ||
|
||
- Files Modified: |
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.
this is actually part of the cli pr so please ignore this section, it was just to keep track of file changes as we might want to refactor this in the future
Deposits: make([]*Deposit, len(body.Deposits)), | ||
VoluntaryExits: make([]*SignedVoluntaryExit, len(body.VoluntaryExits)), | ||
SyncAggregate: &SyncAggregate{ | ||
SyncCommitteeBits: hexutil.Encode(body.SyncAggregate.SyncCommitteeBits), |
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.
I think SyncCommitteeBits being a special type, (Bitvector), not sure if the hexutil will directly represent it as we need. You might want to call the .Bytes() method of bitvectors and bitlists https://github.com/prysmaticlabs/go-bitfield/blob/385d8c5e3fb7f24c83e25f32dd9511f5462ea0b8/bitvector512.go#L73 before doing hexutil.Encode
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
What type of PR is this?
Feature
Part of #9994
What does this PR do? Why is it needed?
This adds the JSON object types for web3signer and the object mapper functions to map from Prysm Datatypes to Web3signer datatypes