eth2util

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package eth2util contains packages and logic relating to eth2 functionality. Note these packages may not import other business logic packages like dkg, core, cluster.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignedEpoch added in v0.10.0

type SignedEpoch struct {
	Epoch     eth2p0.Epoch
	Signature eth2p0.BLSSignature
}

SignedEpoch represents signature of corresponding epoch.

func (SignedEpoch) GetTree added in v0.10.0

func (s SignedEpoch) GetTree() (*ssz.Node, error)

GetTree ssz hashes the SignedEpoch object.

func (SignedEpoch) HashTreeRoot added in v0.10.0

func (s SignedEpoch) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SignedEpoch object.

func (SignedEpoch) HashTreeRootWith added in v0.10.0

func (s SignedEpoch) HashTreeRootWith(hh ssz.HashWalker) error

HashTreeRootWith ssz hashes the epoch from SignedEpoch.

func (SignedEpoch) MarshalJSON added in v0.10.0

func (s SignedEpoch) MarshalJSON() ([]byte, error)

func (*SignedEpoch) UnmarshalJSON added in v0.10.0

func (s *SignedEpoch) UnmarshalJSON(b []byte) error

Directories

Path Synopsis
Package deposit provides functions to create deposit data files.
Package deposit provides functions to create deposit data files.
Package keystore provides functions to store and load private keys to/from EIP 2335 (https://eips.ethereum.org/EIPS/eip-2335) compatible keystore files.
Package keystore provides functions to store and load private keys to/from EIP 2335 (https://eips.ethereum.org/EIPS/eip-2335) compatible keystore files.

Jump to

Keyboard shortcuts

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