relay

package
v0.0.0-...-c8bbbf3 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address [20]byte

func (Address) String

func (e Address) String() string

type BLSPubKey

type BLSPubKey [48]byte

func (BLSPubKey) String

func (h BLSPubKey) String() string

type BuilderBlockBid

type BuilderBlockBid struct {
	Pubkey phase0.BLSPubKey `json:"pubkey" ssz-size:"48"`

	Value *big.Int `json:"value"`

	ExecutionPayloadHeader *commonTypes.VersionedExecutionPayloadHeader `json:"header"`
}

BuilderBlockBid is a BuilderBlockBid similar to builder.BuilderBlockBid This is just leaner with only necessary fields passed to valiator proxy software

func (*BuilderBlockBid) GetTree

func (b *BuilderBlockBid) GetTree() (*ssz.Node, error)

GetTree ssz hashes the BuilderBid object

func (*BuilderBlockBid) HashTreeRoot

func (b *BuilderBlockBid) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the BuilderBid object

func (*BuilderBlockBid) HashTreeRootWith

func (b *BuilderBlockBid) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the BuilderBid object with a hasher

func (*BuilderBlockBid) MarshalJSON

func (b *BuilderBlockBid) MarshalJSON() ([]byte, error)

func (*BuilderBlockBid) MarshalSSZ

func (b *BuilderBlockBid) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the BuilderBid object

func (*BuilderBlockBid) MarshalSSZTo

func (b *BuilderBlockBid) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the BuilderBid object to a target array

func (*BuilderBlockBid) SizeSSZ

func (b *BuilderBlockBid) SizeSSZ() (size int)

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

func (*BuilderBlockBid) UnmarshalJSON

func (b *BuilderBlockBid) UnmarshalJSON(input []byte) error

func (*BuilderBlockBid) UnmarshalSSZ

func (b *BuilderBlockBid) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the BuilderBid object

type EcdsaAddress

type EcdsaAddress [20]byte

func (EcdsaAddress) String

func (e EcdsaAddress) String() string

type EcdsaSignature

type EcdsaSignature [65]byte

func (EcdsaSignature) String

func (e EcdsaSignature) String() string

type Hash

type Hash [32]byte

func (Hash) String

func (h Hash) String() string

type Signature

type Signature phase0.BLSSignature

type SignedBuilderBlockBid

type SignedBuilderBlockBid struct {
	Message   *BuilderBlockBid    `json:"message"`
	Signature phase0.BLSSignature `ssz-size:"96"`
}

SignedBuilderBlockBid is a signed BuilderBlockBid similar to builder.SignedBuilderBlockBid

type Transaction

type Transaction []byte

func (Transaction) String

func (t Transaction) String() string

type ValidatorIndexes

type ValidatorIndexes struct {
	Mu                   sync.Mutex
	ValidatorPubkeyIndex map[string]uint64
	ValidatorIndexPubkey map[uint64]string
}

Jump to

Keyboard shortcuts

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