common

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlindedBlobsBundle added in v1.1.0

type BlindedBlobsBundle interface {
	GetCommitments() *beacon.KZGCommitments
	GetProofs() *beacon.KZGProofs
	GetBlobRoots() *deneb.BlobRoots
}

type BlobsBundle added in v1.1.0

type BlobsBundle interface {
	FromAPI(*beacon.Spec, *api.BlobsBundleV1) error
	ToAPI() (*api.BlobsBundleV1, error)
	GetCommitments() *beacon.KZGCommitments
	GetProofs() *beacon.KZGProofs
	GetBlobs() *deneb.Blobs
}

type BuilderBid

type BuilderBid interface {
	Build(spec *beacon.Spec, payload *api.ExecutableData, blobsBundle *api.BlobsBundleV1, parentBlockRoot tree.Root, slot beacon.Slot, proposerIndex beacon.ValidatorIndex) error
	FullPayload() ExecutionPayload
	FullBlobsBundle() BlobsBundle
	SetValue(*big.Int)
	SetPubKey(beacon.BLSPubkey)
	HashTreeRoot(spec *beacon.Spec, hFn tree.HashFn) tree.Root
	Sign(spec *beacon.Spec, domain beacon.BLSDomain,
		sk *blsu.SecretKey,
		pk *blsu.Pubkey) (*SignedBuilderBid, error)
	ValidateReveal(publicKey *blsu.Pubkey, signedBeaconResponse SignedBeaconResponse, spec *beacon.Spec, slot beacon.Slot, genesisValidatorsRoot *tree.Root) (*UnblindedResponse, error)
	Version() string
}

type BuilderBidContext added in v1.1.0

type BuilderBidContext struct {
	ParentBlockRoot tree.Root
	Slot            beacon.Slot
	ProposerIndex   beacon.ValidatorIndex
}

type ExecutionPayload

type ExecutionPayload interface {
	FromExecutableData(executableData *api.ExecutableData, beaconRoot *tree.Root) error
	ToExecutableData() (executableData *api.ExecutableData, beaconRoot *el_common.Hash, err error)
	GetBlockHash() tree.Root
}

type SignedBeaconResponse added in v1.1.0

type SignedBeaconResponse interface {
	ExecutionPayloadHash() el_common.Hash
	Root(*beacon.Spec) tree.Root
	StateRoot() tree.Root
	Slot() beacon.Slot
	ProposerIndex() beacon.ValidatorIndex
	BlockSignature() *common.BLSSignature
}

type SignedBuilderBid

type SignedBuilderBid struct {
	Message   BuilderBid          `json:"message"   yaml:"message"`
	Signature common.BLSSignature `json:"signature" yaml:"signature"`
}

func (*SignedBuilderBid) Versioned

type SignedValidatorRegistrationV1

type SignedValidatorRegistrationV1 struct {
	Message   ValidatorRegistrationV1 `json:"message"   yaml:"message"`
	Signature common.BLSSignature     `json:"signature" yaml:"signature"`
}

type UnblindedResponse added in v1.1.0

type UnblindedResponse struct {
	Version string      `json:"version" yaml:"version"`
	Data    interface{} `json:"data"    yaml:"data"`
}

type ValidatorRegistrationV1

type ValidatorRegistrationV1 struct {
	FeeRecipient common.Eth1Address `json:"fee_recipient" yaml:"fee_recipient"`
	GasLimit     view.Uint64View    `json:"gas_limit"     yaml:"gas_limit"`
	Timestamp    view.Uint64View    `json:"timestamp"     yaml:"timestamp"`
	PubKey       common.BLSPubkey   `json:"pubkey"        yaml:"pubkey"`
}

func (*ValidatorRegistrationV1) HashTreeRoot

func (vr *ValidatorRegistrationV1) HashTreeRoot(hFn tree.HashFn) tree.Root

type VersionedSignedBuilderBid

type VersionedSignedBuilderBid struct {
	Version string            `json:"version" yaml:"version"`
	Data    *SignedBuilderBid `json:"data"    yaml:"data"`
}

Jump to

Keyboard shortcuts

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