-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attestation and Sync Committee aggregation selection (#224)
Co-authored-by: xenowits <[email protected]> Co-authored-by: Dhruv Bodani <[email protected]> Co-authored-by: Abhishek Kumar <[email protected]>
- Loading branch information
1 parent
4a2d70b
commit 3945797
Showing
7 changed files
with
154 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
.idea | ||
deploy | ||
node_modules |
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,43 @@ | ||
post: | ||
operationId: "submitBeaconCommitteeSelections" | ||
summary: Determine if a distributed validator has been selected to aggregate attestations | ||
description: | | ||
This endpoint should be used by a validator client running as part of a distributed validator cluster, and is | ||
implemented by a distributed validator middleware client. This endpoint is used to exchange partial | ||
selection proofs for combined/aggregated selection proofs to allow a validator client | ||
to correctly determine if one of its validators has been selected to perform an aggregation duty in this slot. | ||
Consensus clients need not support this endpoint and may return a 501. | ||
tags: | ||
- Validator | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
title: BeaconCommitteeSelectionRequest | ||
type: array | ||
items: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/BeaconCommitteeSelection' | ||
|
||
responses: | ||
"200": | ||
description: | | ||
Returns the threshold aggregated beacon committee selection proofs. | ||
content: | ||
application/json: | ||
schema: | ||
title: BeaconCommitteeSelectionResponse | ||
type: object | ||
properties: | ||
data: | ||
type: array | ||
items: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/BeaconCommitteeSelection' | ||
|
||
"400": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest' | ||
"500": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError' | ||
"501": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/NotImplementedError' | ||
"503": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/CurrentlySyncing' |
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,41 @@ | ||
post: | ||
operationId: "submitSyncCommitteeSelections" | ||
summary: Determine if a distributed validator has been selected to make a sync committee contribution | ||
description: | | ||
Submit sync committee selections to a DVT middleware client. It returns the threshold aggregated sync | ||
committee selection. This endpoint should be used by a validator client running as part of a distributed | ||
validator cluster, and is implemented by a distributed validator middleware client. This endpoint is | ||
used to exchange partial selection proof slot signatures for combined/aggregated selection proofs to | ||
allow a validator client to correctly determine if one of its validators has been selected to perform | ||
a sync committee contribution (sync aggregation) duty in this slot. Consensus clients need not support | ||
this endpoint and may return a 501. | ||
tags: | ||
- Validator | ||
requestBody: | ||
content: | ||
application/json: | ||
schema: | ||
title: SyncCommitteeSelectionRequest | ||
type: array | ||
items: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/SyncCommitteeSelection' | ||
responses: | ||
"200": | ||
description: | | ||
Returns the threshold aggregated sync committee selection proofs. | ||
content: | ||
application/json: | ||
schema: | ||
title: SyncCommitteeSelectionResponse | ||
type: object | ||
properties: | ||
data: | ||
type: array | ||
items: | ||
$ref: '../../beacon-node-oapi.yaml#/components/schemas/SyncCommitteeSelection' | ||
"400": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/InvalidRequest' | ||
"500": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/InternalError' | ||
"503": | ||
$ref: '../../beacon-node-oapi.yaml#/components/responses/CurrentlySyncing' |
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,35 @@ | ||
BeaconCommitteeSelection: | ||
type: object | ||
properties: | ||
validator_index: | ||
allOf: | ||
- $ref: './primitive.yaml#/Uint64' | ||
- description: "Index of the validator" | ||
slot: | ||
allOf: | ||
- $ref: './primitive.yaml#/Uint64' | ||
- description: "The slot at which a validator is assigned to attest" | ||
selection_proof: | ||
allOf: | ||
- $ref: './primitive.yaml#/Signature' | ||
- description: "The `slot_signature` calculated by the validator for the upcoming attestation slot" | ||
|
||
SyncCommitteeSelection: | ||
type: object | ||
properties: | ||
validator_index: | ||
allOf: | ||
- $ref: './primitive.yaml#/Uint64' | ||
- description: "Index of the validator" | ||
slot: | ||
allOf: | ||
- $ref: './primitive.yaml#/Uint64' | ||
- description: "The slot at which validator is assigned to produce a sync committee contribution" | ||
subcommittee_index: | ||
allOf: | ||
- $ref: './primitive.yaml#/Uint64' | ||
- description: "SubcommitteeIndex to which the validator is assigned" | ||
selection_proof: | ||
allOf: | ||
- $ref: './primitive.yaml#/Signature' | ||
- description: "The `slot_signature` calculated by the validator for the upcoming sync committee slot" |