prysm-pulse/beacon-chain/rpc/eth/shared/structs.go
Radosław Kapka fc193b09bf
HTTP Beacon API: /eth/v1/validator/aggregate_attestation (#12643)
* initial implementation

* it works

* tests

* extracted helper functions

* fix code

---------

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
2023-07-24 22:16:45 +00:00

21 lines
548 B
Go

package shared
type Attestation struct {
AggregationBits string `json:"aggregation_bits"`
Data AttestationData `json:"data"`
Signature string `json:"signature"`
}
type AttestationData struct {
Slot string `json:"slot"`
CommitteeIndex string `json:"index"`
BeaconBlockRoot string `json:"beacon_block_root"`
Source Checkpoint `json:"source"`
Target Checkpoint `json:"target"`
}
type Checkpoint struct {
Epoch string `json:"epoch"`
Root string `json:"root"`
}