mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +00:00
Add SSZ-REST as an alternative Engine API transport alongside JSON-RPC. When enabled via --authrpc.ssz-rest (alias: --rest), Geth starts an additional HTTP server that accepts SSZ-encoded payloads over REST, cutting wire size ~50% and eliminating JSON encode/decode overhead. New files: - beacon/engine/ssz.go: SSZ encoding/decoding for all Engine API types - beacon/engine/ssz_test.go: round-trip tests for SSZ codecs - eth/catalyst/ssz_rest.go: SSZ-REST HTTP server with JWT auth - eth/catalyst/ssz_rest_test.go: server unit tests Modified files: - beacon/engine/types.go: CommunicationChannel, ExchangeCapabilitiesV2Response - eth/catalyst/api.go: ExchangeCapabilitiesV2, getSupportedProtocols, server wiring - node/config.go, defaults.go: SszRestEnabled, SszRestPort config - node/jwt_handler.go: exported NewJWTHandler for reuse - cmd/utils/flags.go, cmd/geth/main.go: CLI flags Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| catalyst | ||
| downloader | ||
| ethconfig | ||
| fetcher | ||
| filters | ||
| gasestimator | ||
| gasprice | ||
| protocols | ||
| syncer | ||
| tracers | ||
| api_admin.go | ||
| api_backend.go | ||
| api_backend_test.go | ||
| api_debug.go | ||
| api_debug_test.go | ||
| api_miner.go | ||
| backend.go | ||
| dropper.go | ||
| handler.go | ||
| handler_eth.go | ||
| handler_eth_test.go | ||
| handler_snap.go | ||
| handler_test.go | ||
| peer.go | ||
| peerset.go | ||
| state_accessor.go | ||
| sync.go | ||
| sync_test.go | ||