forked from ethereum/beacon-APIs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add blob signing endpoints (ethereum#302)
Co-authored-by: 0xGabi <gabrielpk.18@gmail.com> Co-authored-by: Paul Harris <paul.harris@consensys.net> Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>
- Loading branch information
1 parent
6ed3820
commit f0ffbb8
Showing
9 changed files
with
168 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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,90 @@ | ||
Deneb: | ||
BlobSidecars: | ||
type: array | ||
items: | ||
$ref: '#/Deneb/BlobSidecar' | ||
minItems: 0 | ||
maxItems: 4 | ||
|
||
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: 4 | ||
|
||
SignedBlobSidecar: | ||
type: object | ||
description: "The `SignedBlobSidecar` object envelope from the CL Deneb spec." | ||
properties: | ||
message: | ||
$ref: "#/Deneb/BlobSidecar" | ||
signature: | ||
$ref: "../primitive.yaml#/Signature" | ||
|
||
BlindedBlobSidecars: | ||
type: array | ||
items: | ||
$ref: '#/Deneb/BlindedBlobSidecar' | ||
minItems: 0 | ||
maxItems: 4 | ||
|
||
BlindedBlobSidecar: | ||
type: object | ||
description: "A blob sidecar with the SSZ root of the blob rather than the full blob." | ||
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_root: | ||
$ref: "../primitive.yaml#/Root" | ||
kzg_commitment: | ||
$ref: '../primitive.yaml#/KZGCommitment' | ||
kzg_proof: | ||
$ref: '../primitive.yaml#/KZGProof' | ||
|
||
SignedBlindedBlobSidecars: | ||
type: array | ||
items: | ||
$ref: '#/Deneb/SignedBlindedBlobSidecar' | ||
minItems: 0 | ||
maxItems: 4 | ||
|
||
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" | ||
|
||
|
This file contains 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,37 @@ | ||
Deneb: | ||
BlockContents: | ||
type: object | ||
description: "The required object for block production according to the Deneb CL spec." | ||
properties: | ||
block: | ||
$ref: "./block.yaml#/Deneb/BeaconBlock" | ||
blob_sidecars: | ||
$ref: "./blob_sidecar.yaml#/Deneb/BlobSidecars" | ||
|
||
BlindedBlockContents: | ||
type: object | ||
description: "The required object for blinded block production according to the Deneb CL spec." | ||
properties: | ||
blinded_block: | ||
$ref: "./block.yaml#/Deneb/BlindedBeaconBlock" | ||
blinded_blob_sidecars: | ||
$ref: "./blob_sidecar.yaml#/Deneb/BlindedBlobSidecars" | ||
|
||
SignedBlockContents: | ||
type: object | ||
description: "The required signed components of block production according to the Deneb CL spec." | ||
properties: | ||
signed_block: | ||
$ref: "./block.yaml#/Deneb/SignedBeaconBlock" | ||
signed_blob_sidecars: | ||
$ref: "./blob_sidecar.yaml#/Deneb/SignedBlobSidecars" | ||
|
||
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" | ||
|
This file contains 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