eth2

package
v1.13.7 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Code generated by fastssz. DO NOT EDIT. Hash: de1de6c602b97e33f12faec5f30221b3b10016d756604ad75f71674ad81d10d0 Version: 0.1.2

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepositData

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

Deposit data (including signature)

func (*DepositData) GetTree added in v1.7.0

func (d *DepositData) GetTree() (*ssz.Node, error)

GetTree ssz hashes the DepositData object

func (*DepositData) HashTreeRoot

func (d *DepositData) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the DepositData object

func (*DepositData) HashTreeRootWith

func (d *DepositData) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the DepositData object with a hasher

func (*DepositData) MarshalSSZ

func (d *DepositData) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the DepositData object

func (*DepositData) MarshalSSZTo

func (d *DepositData) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the DepositData object to a target array

func (*DepositData) SizeSSZ

func (d *DepositData) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the DepositData object

func (*DepositData) UnmarshalSSZ

func (d *DepositData) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the DepositData object

type DepositDataNoSignature

type DepositDataNoSignature struct {
	PublicKey             []byte `json:"pubkey" ssz-size:"48"`
	WithdrawalCredentials []byte `json:"withdrawal_credentials" ssz-size:"32"`
	Amount                uint64 `json:"amount"`
}

Deposit data (with no signature field)

func (*DepositDataNoSignature) GetTree added in v1.7.0

func (d *DepositDataNoSignature) GetTree() (*ssz.Node, error)

GetTree ssz hashes the DepositDataNoSignature object

func (*DepositDataNoSignature) HashTreeRoot

func (d *DepositDataNoSignature) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the DepositDataNoSignature object

func (*DepositDataNoSignature) HashTreeRootWith

func (d *DepositDataNoSignature) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the DepositDataNoSignature object with a hasher

func (*DepositDataNoSignature) MarshalSSZ

func (d *DepositDataNoSignature) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the DepositDataNoSignature object

func (*DepositDataNoSignature) MarshalSSZTo

func (d *DepositDataNoSignature) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the DepositDataNoSignature object to a target array

func (*DepositDataNoSignature) SizeSSZ

func (d *DepositDataNoSignature) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the DepositDataNoSignature object

func (*DepositDataNoSignature) UnmarshalSSZ

func (d *DepositDataNoSignature) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the DepositDataNoSignature object

type SigningRoot

type SigningRoot struct {
	ObjectRoot []byte `json:"object_root" ssz-size:"32"`
	Domain     []byte `json:"domain" ssz-size:"32"`
}

BLS signing root with domain

func (*SigningRoot) GetTree added in v1.7.0

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

GetTree ssz hashes the SigningRoot object

func (*SigningRoot) HashTreeRoot

func (s *SigningRoot) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the SigningRoot object

func (*SigningRoot) HashTreeRootWith

func (s *SigningRoot) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the SigningRoot object with a hasher

func (*SigningRoot) MarshalSSZ

func (s *SigningRoot) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the SigningRoot object

func (*SigningRoot) MarshalSSZTo

func (s *SigningRoot) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the SigningRoot object to a target array

func (*SigningRoot) SizeSSZ

func (s *SigningRoot) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the SigningRoot object

func (*SigningRoot) UnmarshalSSZ

func (s *SigningRoot) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the SigningRoot object

type VoluntaryExit

type VoluntaryExit struct {
	Epoch          uint64 `json:"epoch"`
	ValidatorIndex uint64 `json:"validator_index"`
}

Voluntary exit transaction

func (*VoluntaryExit) GetTree added in v1.7.0

func (v *VoluntaryExit) GetTree() (*ssz.Node, error)

GetTree ssz hashes the VoluntaryExit object

func (*VoluntaryExit) HashTreeRoot

func (v *VoluntaryExit) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the VoluntaryExit object

func (*VoluntaryExit) HashTreeRootWith

func (v *VoluntaryExit) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the VoluntaryExit object with a hasher

func (*VoluntaryExit) MarshalSSZ

func (v *VoluntaryExit) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the VoluntaryExit object

func (*VoluntaryExit) MarshalSSZTo

func (v *VoluntaryExit) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the VoluntaryExit object to a target array

func (*VoluntaryExit) SizeSSZ

func (v *VoluntaryExit) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the VoluntaryExit object

func (*VoluntaryExit) UnmarshalSSZ

func (v *VoluntaryExit) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the VoluntaryExit object

type WithdrawalCredentialsChange added in v1.9.0

type WithdrawalCredentialsChange struct {
	ValidatorIndex     uint64   `json:"validator_index"`
	FromBLSPubkey      [48]byte `json:"from_bls_pubkey" ssz-size:"48"`
	ToExecutionAddress [20]byte `json:"to_execution_address" ssz-size:"20"`
}

Withdrawal creds change message

func (*WithdrawalCredentialsChange) GetTree added in v1.9.0

func (w *WithdrawalCredentialsChange) GetTree() (*ssz.Node, error)

GetTree ssz hashes the WithdrawalCredentialsChange object

func (*WithdrawalCredentialsChange) HashTreeRoot added in v1.9.0

func (w *WithdrawalCredentialsChange) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the WithdrawalCredentialsChange object

func (*WithdrawalCredentialsChange) HashTreeRootWith added in v1.9.0

func (w *WithdrawalCredentialsChange) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the WithdrawalCredentialsChange object with a hasher

func (*WithdrawalCredentialsChange) MarshalSSZ added in v1.9.0

func (w *WithdrawalCredentialsChange) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the WithdrawalCredentialsChange object

func (*WithdrawalCredentialsChange) MarshalSSZTo added in v1.9.0

func (w *WithdrawalCredentialsChange) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the WithdrawalCredentialsChange object to a target array

func (*WithdrawalCredentialsChange) SizeSSZ added in v1.9.0

func (w *WithdrawalCredentialsChange) SizeSSZ() (size int)

SizeSSZ returns the ssz encoded size in bytes for the WithdrawalCredentialsChange object

func (*WithdrawalCredentialsChange) UnmarshalSSZ added in v1.9.0

func (w *WithdrawalCredentialsChange) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the WithdrawalCredentialsChange object

Jump to

Keyboard shortcuts

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