deneb

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "deneb"

Variables

This section is empty.

Functions

This section is empty.

Types

type BlobsBundle

type BlobsBundle struct {
	*deneb.BlobsBundle
	Source *api.BlobsBundleV1
}

func (*BlobsBundle) FromAPI

func (bb *BlobsBundle) FromAPI(spec *beacon.Spec, blobsBundle *api.BlobsBundleV1) error

func (*BlobsBundle) ToAPI

func (bb *BlobsBundle) ToAPI() (*api.BlobsBundleV1, error)

type BuilderBid

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

func (*BuilderBid) Build

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

func (*BuilderBid) FullBlobsBundle

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

func (*BuilderBid) FullPayload

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

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

func (b *BuilderBid) Version() string

type ExecutionPayload

type ExecutionPayload struct {
	*deneb.ExecutionPayload
	Source     *api.ExecutableData
	BeaconRoot *tree.Root
}

func (*ExecutionPayload) FromExecutableData

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

func (*ExecutionPayload) GetBlockHash

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

func (*ExecutionPayload) ToExecutableData

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

type SignedBeaconResponse added in v1.2.0

type SignedBeaconResponse deneb.SignedBlindedBeaconBlock

func (*SignedBeaconResponse) BlockSignature added in v1.2.0

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

func (*SignedBeaconResponse) ExecutionPayloadHash added in v1.2.0

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

func (*SignedBeaconResponse) ProposerIndex added in v1.2.0

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

func (*SignedBeaconResponse) Root added in v1.2.0

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

func (*SignedBeaconResponse) Slot added in v1.2.0

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

func (*SignedBeaconResponse) StateRoot added in v1.2.0

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

type UnblindedResponseData

type UnblindedResponseData struct {
	ExecutionPayload *deneb.ExecutionPayload `json:"execution_payload" yaml:"execution_payload"`
	BlobsBundle      *deneb.BlobsBundle      `json:"blobs_bundle" yaml:"blobs_bundle"`
}

Jump to

Keyboard shortcuts

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