-
Notifications
You must be signed in to change notification settings - Fork 75
add initial electra spec #101
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
e0e1eca
add initial electra spec
jacobkaufmann bf904fc
move indirectly updated types into note
jacobkaufmann ec66864
adjust for move of exec reqs from exec payload to beacon block
jacobkaufmann 19f0bce
use electra constants for max lengths of attester slasings & attestat…
jacobkaufmann f249dfd
replace execution requests with corresponding root
jacobkaufmann b27bee0
add ExecutionBundle and extend BuilderBid
jacobkaufmann 0e4b975
clean up execution bundle
jacobkaufmann affc315
add notes to accompany type changes
jacobkaufmann 8e8da63
fix broken link
jacobkaufmann 9f7b1e8
replace exec reqs root with exec reqs
jacobkaufmann bf60a87
remove execution bundle container
jacobkaufmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # Electra -- Builder Specification | ||
|
|
||
| ## Introduction | ||
|
|
||
| This is the modification of the builder specification accompanying the Electra upgrade. | ||
|
|
||
| The behavior defined by the specification is consistent with previous forks except for the changes to the types given below. | ||
|
|
||
| ## Containers | ||
|
|
||
| ### New containers | ||
|
|
||
| #### `ExecutionBundle` | ||
|
|
||
jacobkaufmann marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| The `ExecutionBundle` supersedes the [`ExecutionPayloadAndBlobsBundle`][execution-payload-and-blobs-bundle-deneb]. | ||
|
|
||
| ```python | ||
| class ExecutionBundle(Container): | ||
| execution_payload: ExecutionPayload | ||
| blobs_bundle: BlobsBundle | ||
| execution_requests: ExecutionRequests | ||
ralexstokes marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
jacobkaufmann marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| ``` | ||
|
|
||
| ### Extended containers | ||
|
|
||
| #### `BuilderBid` | ||
|
|
||
| Note: `SignedBuilderBid` is updated indirectly. | ||
|
|
||
| ```python | ||
| class BuilderBid(Container): | ||
| header: ExecutionPayloadHeader | ||
| blob_kzg_commitments: List[KZGCommitment, MAX_BLOB_COMMITMENTS_PER_BLOCK] | ||
| execution_requests_root: Root # [New in Electra] | ||
jacobkaufmann marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| value: uint256 | ||
| pubkey: BLSPubkey | ||
| ``` | ||
|
|
||
| #### `BlindedBeaconBlockBody` | ||
|
|
||
| Note: `BlindedBeaconBlock` and `SignedBlindedBeaconBlock` types are updated indirectly. | ||
|
|
||
| ```python | ||
| class BlindedBeaconBlockBody(Container): | ||
| randao_reveal: BLSSignature | ||
| eth1_data: Eth1Data | ||
| graffiti: Bytes32 | ||
| proposer_slashings: List[ProposerSlashing, MAX_PROPOSER_SLASHINGS] | ||
| attester_slashings: List[AttesterSlashing, MAX_ATTESTER_SLASHINGS_ELECTRA] # [Modified in Electra:EIP7549] | ||
| attestations: List[Attestation, MAX_ATTESTATIONS_ELECTRA] # [Modified in Electra:EIP7549] | ||
| deposits: List[Deposit, MAX_DEPOSITS] | ||
| voluntary_exits: List[SignedVoluntaryExit, MAX_VOLUNTARY_EXITS] | ||
| sync_aggregate: SyncAggregate | ||
| execution_payload_header: ExecutionPayloadHeader | ||
| bls_to_execution_changes: List[SignedBLSToExecutionChange, MAX_BLS_TO_EXECUTION_CHANGES] | ||
| blob_kzg_commitments: List[KZGCommitment, MAX_BLOB_COMMITMENTS_PER_BLOCK] | ||
| execution_requests_root: Root # [New in Electra] | ||
| ``` | ||
|
|
||
| [execution-payload-and-blobs-bundle-deneb]: ../deneb/builder.md#executionpayloadandblobsbundle | ||
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.
Uh oh!
There was an error while loading. Please reload this page.