Skip to content
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

validator REST: attestation v2 #14633

Open
wants to merge 16 commits into
base: develop
Choose a base branch
from

Conversation

james-prysm
Copy link
Contributor

@james-prysm james-prysm commented Nov 7, 2024

What type of PR is this?

Feature

What does this PR do? Why is it needed?

added the use of the following endpoints for validator rest mode to support the Electra hardfork

  • /eth/v2/beacon/pool/attestations POST
  • /eth/v2/validator/aggregate_and_proofs POST
  • /eth/v2/validator/aggregate_attestation GET

Which issues(s) does this PR fix?

Fixes #

Other notes for review

Acknowledgements

  • I have read CONTRIBUTING.md.
  • I have made an appropriate entry to CHANGELOG.md.
  • I have added a description to this PR with sufficient context for reviewers to understand this PR.

@james-prysm james-prysm added API Api related tasks Electra electra hardfork labels Nov 7, 2024
return nil, errors.Wrap(err, "failed to get attestation data")
}

signature, err := hexutil.Decode(jsonAttestation.Signature)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we be checking for lengths?

@james-prysm james-prysm marked this pull request as ready for review November 8, 2024 21:47
@james-prysm james-prysm requested a review from a team as a code owner November 8, 2024 21:47
@james-prysm james-prysm marked this pull request as draft November 8, 2024 21:47
@james-prysm james-prysm marked this pull request as ready for review November 13, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Api related tasks Electra electra hardfork
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants