Skip to content

Commit

Permalink
Merge pull request #4067 from nflaig/electra-compute-blob-subnet
Browse files Browse the repository at this point in the history
Update blob sidecar subnet computation for EIP-7691
  • Loading branch information
jtraglia authored Jan 6, 2025
2 parents cefc838 + f17663f commit d85d36a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions specs/electra/validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
- [Deposits](#deposits)
- [Execution payload](#execution-payload)
- [Execution Requests](#execution-requests)
- [Constructing the `BlobSidecar`s](#constructing-the-blobsidecars)
- [Sidecar](#sidecar)
- [Attesting](#attesting)
- [Construct attestation](#construct-attestation)
- [Attestation aggregation](#attestation-aggregation)
Expand Down Expand Up @@ -240,6 +242,17 @@ def get_execution_requests(execution_requests_list: Sequence[bytes]) -> Executio
)
```

### Constructing the `BlobSidecar`s

#### Sidecar

*[Modified in Electra:EIP7691]*

```python
def compute_subnet_for_blob_sidecar(blob_index: BlobIndex) -> SubnetID:
return SubnetID(blob_index % BLOB_SIDECAR_SUBNET_COUNT_ELECTRA)
```

## Attesting

### Construct attestation
Expand Down

0 comments on commit d85d36a

Please sign in to comment.