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

[EIP-7732] ExecutionPayloadEnvelopesByRange RPC #4120

Merged
merged 7 commits into from
Feb 18, 2025
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 45 additions & 9 deletions specs/_features/eip7732/p2p-interface.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
- [`execution_payload_header`](#execution_payload_header)
- [The Req/Resp domain](#the-reqresp-domain)
- [Messages](#messages)
- [BeaconBlocksByRange v3](#beaconblocksbyrange-v3)
- [BeaconBlocksByRoot v3](#beaconblocksbyroot-v3)
- [BlobSidecarsByRoot v2](#blobsidecarsbyroot-v2)
- [BeaconBlocksByRange v2](#beaconblocksbyrange-v2)
- [ExecutionPayloadEnvelopesByRange v1](#executionpayloadenvelopesbyrange-v1)
- [BeaconBlocksByRoot v2](#beaconblocksbyroot-v2)
- [BlobSidecarsByRoot v1](#blobsidecarsbyroot-v1)
- [ExecutionPayloadEnvelopesByRoot v1](#executionpayloadenvelopesbyroot-v1)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->
Expand Down Expand Up @@ -200,9 +201,9 @@ _ _[IGNORE]_ `header.parent_block_root` is the hash tree root of a known beacon

#### Messages

##### BeaconBlocksByRange v3
##### BeaconBlocksByRange v2

**Protocol ID:** `/eth2/beacon_chain/req/beacon_blocks_by_range/3/`
**Protocol ID:** `/eth2/beacon_chain/req/beacon_blocks_by_range/2/`

[0]: # (eth2spec: skip)

Expand All @@ -215,9 +216,44 @@ _ _[IGNORE]_ `header.parent_block_root` is the hash tree root of a known beacon
| `DENEB_FORK_VERSION` | `deneb.SignedBeaconBlock` |
| `EIP7732_FORK_VERSION` | `eip7732.SignedBeaconBlock` |

##### BeaconBlocksByRoot v3
##### ExecutionPayloadEnvelopesByRange v1

**Protocol ID:** `/eth2/beacon_chain/req/beacon_blocks_by_root/3/`
**Protocol ID:** `/eth2/beacon_chain/req/execution_payload_envelopes_by_range/1/`

*[New in EIP-7732]*

Request Content:

```
(
start_slot: Slot
count: uint64
)
```

Response Content:

```
(
List[SignedExecutionPayloadEnvelope, MAX_REQUEST_BLOCKS_DENEB]
)
```

Specifications of req\response method are equivalent to [BeaconBlocksByRoot v2](#beaconblocksbyroot-v2), with the only difference that response content.

For each `response_chunk`, a `ForkDigest`-context based on `compute_fork_version(compute_epoch_at_slot(signed_execution_payload_envelop.message.slot))` is used to select the fork namespace of the Response type.

Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:

[0]: # (eth2spec: skip)

| `fork_version` | Chunk SSZ type |
|------------------------|------------------------------------------|
| `EIP7732_FORK_VERSION` and later | `eip7732.SignedExecutionPayloadEnvelope` |

##### BeaconBlocksByRoot v2

**Protocol ID:** `/eth2/beacon_chain/req/beacon_blocks_by_root/2/`

Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:

Expand All @@ -232,9 +268,9 @@ Per `context = compute_fork_digest(fork_version, genesis_validators_root)`:
| `DENEB_FORK_VERSION` | `deneb.SignedBeaconBlock` |
| `EIP7732_FORK_VERSION` | `eip7732.SignedBeaconBlock` |

##### BlobSidecarsByRoot v2
##### BlobSidecarsByRoot v1

**Protocol ID:** `/eth2/beacon_chain/req/blob_sidecars_by_root/2/`
**Protocol ID:** `/eth2/beacon_chain/req/blob_sidecars_by_root/1/`

[1]: # (eth2spec: skip)

Expand Down