Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttestationExtraData ¶
type AttestationExtraData struct { //nolint:tagliatelle // Defined by API. ArrivedAt time.Time `json:"arrived_at"` //nolint:tagliatelle // Defined by API. P2PMsgID string `json:"peer_msg_id"` Subnet int `json:"subnet"` //nolint:tagliatelle // Defined by API. TimeInSlot time.Duration `json:"time_in_slot"` }
AttestationExtraData contains extra data for an attestation
type PeerInfo ¶
type PeerInfo struct { ID string `json:"id"` IP string `json:"ip"` Port int `json:"port"` //nolint:tagliatelle // Defined by API. UserAgent string `json:"user_agent"` Latency time.Duration `json:"latency"` Protocols []string `json:"protocols"` //nolint:tagliatelle // Defined by API. ProtocolVersion string `json:"protocol_version"` }
PeerInfo contains information about a peer
type TimedEthereumAttestation ¶
type TimedEthereumAttestation struct { Attestation *phase0.Attestation `json:"attestation"` //nolint:tagliatelle // Defined by API. AttestationExtraData *AttestationExtraData `json:"attestation_extra_data"` //nolint:tagliatelle // Defined by API. PeerInfo *PeerInfo `json:"peer_info"` }
TimedEthereumAttestation contains the data for an Ethereum Attestation that was received along with extra data such as when it arrived and who sent it
func (*TimedEthereumAttestation) AttestationHash ¶
func (a *TimedEthereumAttestation) AttestationHash() (string, error)
Click to show internal directories.
Click to hide internal directories.