mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 11:41:21 +00:00
21 lines
548 B
Go
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"`
|
||
|
}
|