-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update attestation APIs to support EIP-7549
- Loading branch information
1 parent
3132da1
commit 5d1e59e
Showing
8 changed files
with
90 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
AttestationData: | ||
type: object | ||
description: "The [`AttestationData`](https://github.com/ethereum/consensus-specs/blob/v1.3.0/specs/phase0/beacon-chain.md#attestationdata) object from the CL spec." | ||
required: [slot, index, beacon_block_root, source, target] | ||
properties: | ||
slot: | ||
$ref: "./primitive.yaml#/Uint64" | ||
index: | ||
$ref: "./primitive.yaml#/Uint64" | ||
beacon_block_root: | ||
$ref: './primitive.yaml#/Root' | ||
description: "LMD GHOST vote." | ||
source: | ||
$ref: "./misc.yaml#/Checkpoint" | ||
target: | ||
$ref: "./misc.yaml#/Checkpoint" |
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,33 @@ | ||
Electra: | ||
IndexedAttestation: | ||
type: object | ||
description: "The [`IndexedAttestation`](https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/beacon-chain.md#indexedattestation) object from the CL spec." | ||
properties: | ||
attesting_indices: | ||
type: array | ||
maxItems: 131072 | ||
description: "Attesting validator indices" | ||
items: | ||
$ref: "../primitive.yaml#/Uint64" | ||
signature: | ||
$ref: '../primitive.yaml#/Signature' | ||
description: "The BLS signature of the `IndexedAttestation`, created by the validator of the attestation." | ||
data: | ||
$ref: '../attestation_data.yaml#/AttestationData' | ||
|
||
Attestation: | ||
type: object | ||
description: "The [`Attestation`](https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/beacon-chain.md#attestation) object from the CL spec." | ||
required: [aggregation_bits, signature, data] | ||
properties: | ||
aggregation_bits: | ||
$ref: "../primitive.yaml#/BitList" | ||
description: "Attester aggregation bits." | ||
data: | ||
$ref: '../attestation_data.yaml#/AttestationData' | ||
committee_bits: | ||
$ref: "../primitive.yaml#/Bitvector" | ||
description: "Attester aggregation bits." | ||
signature: | ||
$ref: '../primitive.yaml#/Signature' | ||
description: "BLS aggregate 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,10 @@ | ||
Electra: | ||
AttesterSlashing: | ||
type: object | ||
description: "The [`AttesterSlashing`](https://github.com/ethereum/consensus-specs/blob/dev/specs/electra/beacon-chain.md#attesterslashing) object from the CL spec." | ||
required: [attestation_1, attestation_2] | ||
properties: | ||
attestation_1: | ||
$ref: './attestation.yaml#/Electra/IndexedAttestation' | ||
attestation_2: | ||
$ref: './attestation.yaml#/Electra/IndexedAttestation' |