armiarma

package
v0.0.146 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL