format

package
v4.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: GPL-3.0 Imports: 0 Imported by: 6

Documentation

Index

Constants

View Source
const InterchangeFormatVersion = "5"

InterchangeFormatVersion specified by https://eips.ethereum.org/EIPS/eip-3076. The version Prysm supports is version 5.

Variables

This section is empty.

Functions

This section is empty.

Types

type EIPSlashingProtectionFormat

type EIPSlashingProtectionFormat struct {
	Metadata struct {
		InterchangeFormatVersion string `json:"interchange_format_version"`
		GenesisValidatorsRoot    string `json:"genesis_validators_root"`
	} `json:"metadata"`
	Data []*ProtectionData `json:"data"`
}

EIPSlashingProtectionFormat string representation of a standard format for representing validator slashing protection db data.

type ProtectionData

type ProtectionData struct {
	Pubkey             string               `json:"pubkey"`
	SignedBlocks       []*SignedBlock       `json:"signed_blocks"`
	SignedAttestations []*SignedAttestation `json:"signed_attestations"`
}

ProtectionData field for the standard slashing protection format.

type SignedAttestation

type SignedAttestation struct {
	SourceEpoch string `json:"source_epoch"`
	TargetEpoch string `json:"target_epoch"`
	SigningRoot string `json:"signing_root,omitempty"`
}

SignedAttestation in the standard slashing protection format file, including a source epoch, target epoch, and an optional signing root.

type SignedBlock

type SignedBlock struct {
	Slot        string `json:"slot"`
	SigningRoot string `json:"signing_root,omitempty"`
}

SignedBlock in the standard slashing protection format, including a slot and an optional signing root.

Jump to

Keyboard shortcuts

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