[WIP] SSZ-REST Engine API transport Big Secret#19551
Open
Giulio2002 wants to merge 2 commits intomainfrom
Open
[WIP] SSZ-REST Engine API transport Big Secret#19551Giulio2002 wants to merge 2 commits intomainfrom
Giulio2002 wants to merge 2 commits intomainfrom
Conversation
Implements the EL side of EIP-8161, adding an SSZ-REST HTTP server alongside the existing JSON-RPC Engine API. All engine_* methods are mapped to REST endpoints with SSZ-encoded request/response bodies, cutting payload sizes ~50% and eliminating JSON encode/decode overhead. - New SSZ-REST HTTP server with JWT auth (same secret as JSON-RPC) - SSZ encode/decode for all Engine API types (PayloadStatus, ForkchoiceUpdatedResponse, NewPayloadRequest, GetPayloadResponse, GetBlobs, ExchangeCapabilities, ClientVersion, CommunicationChannels) - CLI flags: --authrpc.ssz-rest, --authrpc.ssz-rest-port - EIP-8160 integration: advertises ssz_rest channel via engine_getClientCommunicationChannelsV1 - Handles V4 (Electra) and V5 (Fulu) with correct fork version mapping - Proper SSZ Union types for optional fields (latest_valid_hash, payload_id) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Implements the updated EIP-8160 spec where communication channels are returned as part of engine_exchangeCapabilitiesV2 instead of a separate engine_getClientCommunicationChannelsV1 method. The V2 response includes both capabilities and supportedProtocols fields. The old GetClientCommunicationChannelsV1 method is kept for backward compatibility but now delegates to the shared getSupportedProtocols(). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
engine_*methods mapped to REST endpoints with SSZ-encoded request/response bodies--authrpc.ssz-rest,--authrpc.ssz-rest-port(default 6767)ssz_restchannel viaengine_getClientCommunicationChannelsV1Key files
execution/engineapi/engine_ssz_rest_server.go— HTTP server + handlersexecution/engineapi/engine_types/ssz.go— SSZ encode/decode for all Engine API typescmd/utils/flags.go/node/cli/flags.go— CLI flag wiringTest plan
🤖 Generated with Claude Code