validator

package
v1.1.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DepositAmount = 16000000000 // gwei

Deposit settings

Variables

This section is empty.

Functions

func GetSignedExitMessage added in v0.0.6

func GetSignedExitMessage(validatorKey *eth2types.BLSPrivateKey, validatorIndex uint64, epoch uint64, signatureDomain []byte) (types.ValidatorSignature, error)

Get a voluntary exit message signature for a given validator key and index

Types

type DepositData

type DepositData struct {
	PublicKey             []byte `ssz-size:"48"`
	WithdrawalCredentials []byte `ssz-size:"32"`
	Amount                uint64
	Signature             []byte `ssz-size:"96"`
}

Deposit data

func GetDepositData

func GetDepositData(validatorKey *eth2types.BLSPrivateKey, withdrawalCredentials common.Hash, eth2Config beacon.Eth2Config) (DepositData, common.Hash, error)

Get deposit data & root for a given validator key and withdrawal credentials

type VoluntaryExit added in v0.0.6

type VoluntaryExit struct {
	Epoch          uint64
	ValidatorIndex uint64
}

Voluntary exit message

Jump to

Keyboard shortcuts

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