mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-10 03:31:20 +00:00
fc193b09bf
* initial implementation * it works * tests * extracted helper functions * fix code --------- Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
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"`
|
|
}
|