Skip to content

Commit

Permalink
Update Deneb for v1.4.0-beta.4
Browse files Browse the repository at this point in the history
`BlobSidecar` are no longer signed, but instead are linked with the
signed block via merkle proof. Also renamed `signed_blob_sidecars`
and `signed_blinded_blob_sidecars` in `BlockContents` envelopes to
match the new types (without signature).

- ethereum/consensus-specs#3531
  • Loading branch information
etan-status committed Nov 3, 2023
1 parent 197ecff commit 0eaba26
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 49 deletions.
4 changes: 0 additions & 4 deletions beacon-node-oapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,8 @@ components:
$ref: './types/primitive.yaml#/Blob'
Deneb.BlobSidecars:
$ref: './types/deneb/blob_sidecar.yaml#/Deneb/BlobSidecars'
Deneb.SignedBlobSidecar:
$ref: './types/deneb/blob_sidecar.yaml#/Deneb/SignedBlobSidecar'
Deneb.BlindedBlobSidecar:
$ref: './types/deneb/blob_sidecar.yaml#/Deneb/BlindedBlobSidecar'
Deneb.SignedBlindedBlobSidecar:
$ref: './types/deneb/blob_sidecar.yaml#/Deneb/SignedBlindedBlobSidecar'
Node:
$ref: './types/fork_choice.yaml#/Node'
ExtraData:
Expand Down
52 changes: 12 additions & 40 deletions types/deneb/blob_sidecar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,30 @@ Deneb:
minItems: 0
maxItems: 6

KzgCommitmentInclusionProof:
type: array
items:
$ref: '../primitive.yaml#/Root'
description: "Merkle proof consisting of [`KZG_COMMITMENT_INCLUSION_PROOF_DEPTH`](https://github.com/ethereum/consensus-specs/blob/v1.4.0-beta.4/specs/deneb/p2p-interface.md#preset) roots"
minItems: 17
maxItems: 17

BlobSidecar:
type: object
description: "A blob sidecar as defined in the Deneb consensus spec."
properties:
block_root:
$ref: "../primitive.yaml#/Root"
index:
$ref: "../primitive.yaml#/Uint64"
slot:
$ref: "../primitive.yaml#/Uint64"
block_parent_root:
$ref: "../primitive.yaml#/Root"
proposer_index:
$ref: "../primitive.yaml#/Uint64"
blob:
$ref: "../primitive.yaml#/Blob"
kzg_commitment:
$ref: '../primitive.yaml#/KZGCommitment'
kzg_proof:
$ref: '../primitive.yaml#/KZGProof'

SignedBlobSidecars:
type: array
items:
$ref: '#/Deneb/SignedBlobSidecar'
minItems: 0
maxItems: 6

SignedBlobSidecar:
type: object
description: "The `SignedBlobSidecar` object envelope from the CL Deneb spec."
properties:
message:
$ref: "#/Deneb/BlobSidecar"
signature:
$ref: "../primitive.yaml#/Signature"
signed_block_header:
$ref: '../block.yaml#/SignedBeaconBlockHeader'
kzg_commitment_inclusion_proof:
$ref: '#/Deneb/KzgCommitmentInclusionProof'

BlindedBlobSidecars:
type: array
Expand Down Expand Up @@ -70,19 +58,3 @@ Deneb:
$ref: '../primitive.yaml#/KZGCommitment'
kzg_proof:
$ref: '../primitive.yaml#/KZGProof'

SignedBlindedBlobSidecars:
type: array
items:
$ref: '#/Deneb/SignedBlindedBlobSidecar'
minItems: 0
maxItems: 6

SignedBlindedBlobSidecar:
type: object
description: "A variant of the `SignedBlobSidecar` object envelope from the CL Deneb spec, which contains a `BlindedBlobSidecar` rather than a `BlobSidecar`."
properties:
message:
$ref: "#/Deneb/BlindedBlobSidecar"
signature:
$ref: "../primitive.yaml#/Signature"
9 changes: 4 additions & 5 deletions types/deneb/block_contents.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,14 @@ Deneb:
properties:
signed_block:
$ref: "./block.yaml#/Deneb/SignedBeaconBlock"
signed_blob_sidecars:
$ref: "./blob_sidecar.yaml#/Deneb/SignedBlobSidecars"
blob_sidecars:
$ref: "./blob_sidecar.yaml#/Deneb/BlobSidecars"

SignedBlindedBlockContents:
type: object
description: "The required signed components of block production according to the Deneb CL spec."
properties:
signed_blinded_block:
$ref: "./block.yaml#/Deneb/SignedBlindedBeaconBlock"
signed_blinded_blob_sidecars:
$ref: "./blob_sidecar.yaml#/Deneb/SignedBlindedBlobSidecars"

blinded_blob_sidecars:
$ref: "./blob_sidecar.yaml#/Deneb/BlindedBlobSidecars"

0 comments on commit 0eaba26

Please sign in to comment.