types

package
v0.0.0-...-ac47704 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: Apache-2.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 Proof

type Proof struct {
	// Value is the value we are attempting to prove.
	Value phase0.Root
	// Path are the bits stating which side of the hash each step falls on.
	Path uint64
	// Hashes are the intermediate hashes.
	Hashes []phase0.Root
}

Proof contains the elements of a proof.

type ValidatorProof

type ValidatorProof struct {
	Validator      *phase0.Validator
	ValidatorIndex phase0.ValidatorIndex
	Slot           phase0.Slot
	Version        spec.DataVersion
	Path           uint64
	Hashes         []phase0.Root
}

ValidatorProof holds a validator plus its proof at a given slot.

func (*ValidatorProof) MarshalJSON

func (v *ValidatorProof) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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