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

Ensure light_client/updates endpoint returns spec compliant SSZ data #7230

Open
wants to merge 6 commits into
base: release-v7.0.0
Choose a base branch
from

Conversation

eserilev
Copy link
Collaborator

Issue Addressed

Closes #7167

Proposed Changes

  • Ensure the fork digest is generated from ther light client updates attested header and not the signature slot
  • Ensure the format of the SSZ response is spec compliant

@eserilev eserilev added bug Something isn't working HTTP-API light-client labels Mar 31, 2025
@eserilev eserilev changed the base branch from stable to release-v7.0.0 March 31, 2025 16:17
@eserilev eserilev added the work-in-progress PR is a work-in-progress label Mar 31, 2025
@michaelsproul michaelsproul added the v7.0.0 New release c. Q1 2025 label Apr 9, 2025
@michaelsproul michaelsproul mentioned this pull request Apr 9, 2025
@eserilev eserilev changed the title [WIP] Ensure light_client/updates endpoint returns spec compliant SSZ data Ensure light_client/updates endpoint returns spec compliant SSZ data Apr 9, 2025
@eserilev eserilev added ready-for-review The code is ready for review and removed work-in-progress PR is a work-in-progress labels Apr 9, 2025
pub response_chunk_len: Vec<u8>,
pub response_chunk: Vec<u8>,
pub struct LightClientUpdateResponseChunk {
pub response_chunk_len: u8,
Copy link
Member

Choose a reason for hiding this comment

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

This is meant to be a u64 I think?

The spec says:

(
  response_chunk_len: Little-endian Uint64 byte length of `response_chunk`
  response_chunk: (
    context: 4 byte `ForkDigest`
    payload: SSZ serialized payload bytes
  )
)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

thanks for catching that

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@michaelsproul michaelsproul added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Apr 10, 2025
@eserilev eserilev added ready-for-review The code is ready for review and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working HTTP-API light-client ready-for-review The code is ready for review v7.0.0 New release c. Q1 2025
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Light Client Update SSZ Responses based on Attested Header Slot and not Signature Slot
2 participants