capella

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "capella"

Variables

This section is empty.

Functions

This section is empty.

Types

type BuilderBid

type BuilderBid struct {
	Payload                  *ExecutionPayload               `json:"-" yaml:"-"`
	Header                   *capella.ExecutionPayloadHeader `json:"header" yaml:"header"`
	Value                    view.Uint256View                `json:"value"  yaml:"value"`
	PubKey                   beacon.BLSPubkey                `json:"pubkey" yaml:"pubkey"`
	common.BuilderBidContext `json:"-" yaml:"-"`
}

func (*BuilderBid) Build added in v1.1.0

func (b *BuilderBid) Build(
	spec *beacon.Spec,
	ed *api.ExecutableData,
	_ *api.BlobsBundleV1,
	parentBlockRoot tree.Root,
	slot beacon.Slot,
	proposerIndex beacon.ValidatorIndex,
) error

func (*BuilderBid) FullBlobsBundle added in v1.1.0

func (b *BuilderBid) FullBlobsBundle() common.BlobsBundle

func (*BuilderBid) FullPayload added in v1.1.0

func (b *BuilderBid) FullPayload() common.ExecutionPayload

func (*BuilderBid) HashTreeRoot

func (b *BuilderBid) HashTreeRoot(spec *beacon.Spec, hFn tree.HashFn) tree.Root

func (*BuilderBid) SetPubKey

func (b *BuilderBid) SetPubKey(pk beacon.BLSPubkey)

func (*BuilderBid) SetValue

func (b *BuilderBid) SetValue(value *big.Int)

func (*BuilderBid) Sign

func (b *BuilderBid) Sign(
	spec *beacon.Spec,
	domain beacon.BLSDomain,
	sk *blsu.SecretKey,
	pk *blsu.Pubkey,
) (*common.SignedBuilderBid, error)

func (*BuilderBid) ValidateReveal added in v1.1.0

func (b *BuilderBid) ValidateReveal(
	publicKey *blsu.Pubkey,
	signedBeaconResponse common.SignedBeaconResponse,
	spec *beacon.Spec,
	slot beacon.Slot,
	genesisValidatorsRoot *tree.Root,
) (*common.UnblindedResponse, error)

func (*BuilderBid) Version added in v1.1.0

func (b *BuilderBid) Version() string

type ExecutionPayload

type ExecutionPayload struct {
	*capella.ExecutionPayload
	Source *api.ExecutableData
}

func (*ExecutionPayload) FromExecutableData

func (p *ExecutionPayload) FromExecutableData(ed *api.ExecutableData, _ *tree.Root) error

func (*ExecutionPayload) GetBlockHash

func (p *ExecutionPayload) GetBlockHash() tree.Root

func (*ExecutionPayload) ToExecutableData added in v1.1.0

func (p *ExecutionPayload) ToExecutableData() (*api.ExecutableData, *el_common.Hash, error)

type SignedBeaconResponse added in v1.1.0

type SignedBeaconResponse capella.SignedBlindedBeaconBlock

func (*SignedBeaconResponse) BlockSignature added in v1.1.0

func (s *SignedBeaconResponse) BlockSignature() *beacon.BLSSignature

func (*SignedBeaconResponse) ExecutionPayloadHash added in v1.1.0

func (s *SignedBeaconResponse) ExecutionPayloadHash() el_common.Hash

func (*SignedBeaconResponse) ProposerIndex added in v1.1.0

func (s *SignedBeaconResponse) ProposerIndex() beacon.ValidatorIndex

func (*SignedBeaconResponse) Root added in v1.1.0

func (s *SignedBeaconResponse) Root(spec *beacon.Spec) tree.Root

func (*SignedBeaconResponse) Slot added in v1.1.0

func (s *SignedBeaconResponse) Slot() beacon.Slot

func (*SignedBeaconResponse) StateRoot added in v1.1.0

func (s *SignedBeaconResponse) StateRoot() tree.Root

Jump to

Keyboard shortcuts

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