capella

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BLSToExecutionChange

type BLSToExecutionChange struct {
	ValidatorIndex     uint64          `json:"validator_index,string"`
	FromBLSPubkey      types.PublicKey `json:"from_bls_pubkey" ssz-size:"48"`
	ToExecutionAddress types.Address   `json:"to_execution_address" ssz-size:"20"`
}

BLSToExecutionChange provides information about a change of withdrawal credentials.

func (*BLSToExecutionChange) GetTree

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

GetTree ssz hashes the BLSToExecutionChange object

func (*BLSToExecutionChange) HashTreeRoot

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

HashTreeRoot ssz hashes the BLSToExecutionChange object

func (*BLSToExecutionChange) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BLSToExecutionChange object with a hasher

func (*BLSToExecutionChange) MarshalSSZ added in v0.6.2

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

MarshalSSZ ssz marshals the BLSToExecutionChange object

func (*BLSToExecutionChange) MarshalSSZTo added in v0.6.2

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

MarshalSSZTo ssz marshals the BLSToExecutionChange object to a target array

func (*BLSToExecutionChange) SizeSSZ

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

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

type BeaconBlock

type BeaconBlock struct {
	Slot          uint64           `json:"slot,string"`
	ProposerIndex uint64           `json:"proposer_index,string"`
	ParentRoot    types.Root       `json:"parent_root" ssz-size:"32"`
	StateRoot     types.Root       `json:"state_root" ssz-size:"32"`
	Body          *BeaconBlockBody `json:"body"`
}

BeaconBlock https://github.com/ethereum/beacon-APIs/blob/master/types/bellatrix/block.yaml#L46

func (*BeaconBlock) MarshalSSZ added in v0.6.2

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

MarshalSSZ ssz marshals the BeaconBlock object

func (*BeaconBlock) MarshalSSZTo added in v0.6.2

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

MarshalSSZTo ssz marshals the BeaconBlock object to a target array

func (*BeaconBlock) SizeSSZ added in v0.6.2

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

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

type BeaconBlockBody

type BeaconBlockBody struct {
	BLSToExecutionChanges []*SignedBLSToExecutionChange `json:"bls_to_execution_changes" ssz-max:"16"`
	RandaoReveal          types.Signature               `json:"randao_reveal" ssz-size:"96"`
	Eth1Data              *types.Eth1Data               `json:"eth1_data"`
	Graffiti              types.Hash                    `json:"graffiti" ssz-size:"32"`
	ProposerSlashings     []*types.ProposerSlashing     `json:"proposer_slashings" ssz-max:"16"`
	AttesterSlashings     []*types.AttesterSlashing     `json:"attester_slashings" ssz-max:"2"`
	Attestations          []*types.Attestation          `json:"attestations" ssz-max:"128"`
	Deposits              []*types.Deposit              `json:"deposits" ssz-max:"16"`
	VoluntaryExits        []*types.SignedVoluntaryExit  `json:"voluntary_exits" ssz-max:"16"`
	SyncAggregate         *types.SyncAggregate          `json:"sync_aggregate"`
	ExecutionPayload      *ExecutionPayload             `json:"execution_payload"`
}

BeaconBlockBody https://github.com/ethereum/beacon-APIs/blob/master/types/bellatrix/block.yaml#L38

func (*BeaconBlockBody) MarshalSSZ added in v0.6.2

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

MarshalSSZ ssz marshals the BeaconBlockBody object

func (*BeaconBlockBody) MarshalSSZTo added in v0.6.2

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

MarshalSSZTo ssz marshals the BeaconBlockBody object to a target array

func (*BeaconBlockBody) SizeSSZ added in v0.6.2

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

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

type BidTrace added in v0.5.0

type BidTrace struct {
	Slot                 uint64          `json:"slot,string"`
	ParentHash           types.Hash      `json:"parent_hash" ssz-size:"32"`
	BlockHash            types.Hash      `json:"block_hash" ssz-size:"32"`
	BuilderPubkey        types.PublicKey `json:"builder_pubkey" ssz-size:"48"`
	ProposerPubkey       types.PublicKey `json:"proposer_pubkey" ssz-size:"48"`
	ProposerFeeRecipient types.Address   `json:"proposer_fee_recipient" ssz-size:"20"`
	GasLimit             uint64          `json:"gas_limit,string"`
	GasUsed              uint64          `json:"gas_used,string"`
	Value                types.U256Str   `json:"value" ssz-size:"32"`
}

func (*BidTrace) MarshalSSZ added in v0.5.0

func (bt *BidTrace) MarshalSSZ() ([]byte, error)

func (*BidTrace) MarshalSSZTo added in v0.5.0

func (bt *BidTrace) MarshalSSZTo(buf []byte) ([]byte, error)

MarshalSSZTo ssz marshals the BidTrace object to a target array

func (*BidTrace) SizeSSZ added in v0.5.0

func (bt *BidTrace) SizeSSZ() int

func (*BidTrace) UnmarshalSSZ added in v0.5.0

func (bt *BidTrace) UnmarshalSSZ(buf []byte) error

type BlindedBeaconBlock

type BlindedBeaconBlock struct {
	Slot          uint64                  `json:"slot,string"`
	ProposerIndex uint64                  `json:"proposer_index,string"`
	ParentRoot    types.Root              `json:"parent_root" ssz-size:"32"`
	StateRoot     types.Root              `json:"state_root" ssz-size:"32"`
	Body          *BlindedBeaconBlockBody `json:"body"`
}

BlindedBeaconBlock https://github.com/ethereum/beacon-APIs/blob/master/types/bellatrix/block.yaml#L74

func (*BlindedBeaconBlock) GetTree

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

GetTree ssz hashes the BlindedBeaconBlock object

func (*BlindedBeaconBlock) HashTreeRoot

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

HashTreeRoot ssz hashes the BlindedBeaconBlock object

func (*BlindedBeaconBlock) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BlindedBeaconBlock object with a hasher

type BlindedBeaconBlockBody

type BlindedBeaconBlockBody struct {
	forks.BlindedBeaconBlockBody

	ExecutionPayloadHeader *ExecutionPayloadHeader       `json:"execution_payload_header"`
	BLSToExecutionChanges  []*SignedBLSToExecutionChange `json:"bls_to_execution_changes" ssz-max:"16"`
}

func (*BlindedBeaconBlockBody) GetTree

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

GetTree ssz hashes the BlindedBeaconBlockBody object

func (*BlindedBeaconBlockBody) HashTreeRoot

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

HashTreeRoot ssz hashes the BlindedBeaconBlockBody object

func (*BlindedBeaconBlockBody) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BlindedBeaconBlockBody object with a hasher

type BlockAndTraceExtended added in v0.5.0

type BlockAndTraceExtended struct {
	CapellaPayload             GetPayloadResponse
	CapellaTrace               SignedBidTrace
	CapellaExecutionHeaderHash types.Hash `json:"execution_header_hash" ssz-size:"32"`
}

func (*BlockAndTraceExtended) BidValue added in v0.5.0

func (bbat *BlockAndTraceExtended) BidValue() types.U256Str

func (*BlockAndTraceExtended) BuilderPubkey added in v0.5.0

func (bbat *BlockAndTraceExtended) BuilderPubkey() (pub types.PublicKey)

func (*BlockAndTraceExtended) ExecutionHeaderHash added in v0.5.0

func (bbat *BlockAndTraceExtended) ExecutionHeaderHash() (types.Hash, error)

func (*BlockAndTraceExtended) ExecutionPayload added in v0.5.0

func (bbat *BlockAndTraceExtended) ExecutionPayload() structs.ExecutionPayload

func (*BlockAndTraceExtended) MarshalSSZ added in v0.5.0

func (bte *BlockAndTraceExtended) MarshalSSZ() ([]byte, error)

func (*BlockAndTraceExtended) MarshalSSZTo added in v0.5.0

func (bte *BlockAndTraceExtended) MarshalSSZTo(buf []byte) ([]byte, error)

MarshalSSZTo ssz marshals the BlockAndTraceExtended object to a target array

func (*BlockAndTraceExtended) Proposer added in v0.5.0

func (bbat *BlockAndTraceExtended) Proposer() types.PublicKey

func (*BlockAndTraceExtended) SizeSSZ added in v0.5.0

func (bte *BlockAndTraceExtended) SizeSSZ() (size int)

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

func (*BlockAndTraceExtended) Slot added in v0.5.0

func (bbat *BlockAndTraceExtended) Slot() uint64

func (*BlockAndTraceExtended) ToDeliveredTrace added in v0.5.0

func (bbat *BlockAndTraceExtended) ToDeliveredTrace(slot uint64) (dt structs.DeliveredTrace, err error)

func (*BlockAndTraceExtended) UnmarshalSSZ added in v0.5.0

func (bte *BlockAndTraceExtended) UnmarshalSSZ(buf []byte) error

type BuilderBid

type BuilderBid struct {
	CapellaHeader *ExecutionPayloadHeader `json:"header"`
	CapellaValue  types.U256Str           `json:"value" ssz-size:"32"`
	CapellaPubkey types.PublicKey         `json:"pubkey" ssz-size:"48"`
}

BuilderBid https://github.com/ethereum/builder-specs/pull/2/files#diff-b37cbf48e8754483e30e7caaadc5defc8c3c6e1aaf3273ee188d787b7c75d993

func (*BuilderBid) GetTree

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

GetTree ssz hashes the BuilderBid object

func (*BuilderBid) HashTreeRoot

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

HashTreeRoot ssz hashes the BuilderBid object

func (*BuilderBid) HashTreeRootWith

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

HashTreeRootWith ssz hashes the BuilderBid object with a hasher

func (*BuilderBid) Header added in v0.5.0

func (*BuilderBid) MarshalSSZ added in v0.5.0

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

MarshalSSZ ssz marshals the BuilderBid object

func (*BuilderBid) MarshalSSZTo added in v0.5.0

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

MarshalSSZTo ssz marshals the BuilderBid object to a target array

func (*BuilderBid) Pubkey

func (b *BuilderBid) Pubkey() types.PublicKey

func (*BuilderBid) SizeSSZ added in v0.5.0

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

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

func (*BuilderBid) UnmarshalSSZ added in v0.5.0

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

UnmarshalSSZ ssz unmarshals the BuilderBid object

func (*BuilderBid) Value

func (b *BuilderBid) Value() types.U256Str

type BuilderBidExtended added in v0.5.0

type BuilderBidExtended struct {
	CapellaBuilderBid BuilderBid      `json:"bid"`
	CapellaProposer   types.PublicKey `json:"proposer"`
	CapellaSlot       uint64          `json:"slot"`
}

func (BuilderBidExtended) BuilderBid added in v0.5.0

func (b BuilderBidExtended) BuilderBid() structs.BuilderBid

func (*BuilderBidExtended) GetTree added in v0.5.0

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

GetTree ssz hashes the SignedBuilderBid object

func (*BuilderBidExtended) HashTreeRoot added in v0.5.0

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

HashTreeRoot ssz hashes the BuilderBid object

func (*BuilderBidExtended) HashTreeRootWith added in v0.5.0

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

HashTreeRootWith ssz hashes the BuilderBid object with a hasher

func (*BuilderBidExtended) MarshalSSZ added in v0.5.0

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

MarshalSSZ ssz marshals the BuilderBid object

func (*BuilderBidExtended) MarshalSSZTo added in v0.5.0

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

MarshalSSZTo ssz marshals the BuilderBid object to a target array

func (BuilderBidExtended) Proposer added in v0.5.0

func (b BuilderBidExtended) Proposer() types.PublicKey

func (*BuilderBidExtended) SizeSSZ added in v0.5.0

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

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

func (BuilderBidExtended) Slot added in v0.5.0

func (b BuilderBidExtended) Slot() uint64

func (*BuilderBidExtended) UnmarshalSSZ added in v0.5.0

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

UnmarshalSSZ ssz unmarshals the BuilderBid object

type ExecutionPayload

type ExecutionPayload struct {
	bellatrix.ExecutionPayload
	EpWithdrawals structs.Withdrawals `json:"withdrawals" ssz-max:"16"`
}

ExecutionPayload represents an execution layer payload.

func (*ExecutionPayload) GetTree added in v0.5.0

func (e *ExecutionPayload) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ExecutionPayload object

func (*ExecutionPayload) HashTreeRoot added in v0.5.0

func (e *ExecutionPayload) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ExecutionPayload object

func (*ExecutionPayload) HashTreeRootWith added in v0.5.0

func (e *ExecutionPayload) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ExecutionPayload object with a hasher

func (*ExecutionPayload) MarshalSSZ added in v0.5.0

func (e *ExecutionPayload) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ExecutionPayload object

func (*ExecutionPayload) MarshalSSZTo added in v0.5.0

func (e *ExecutionPayload) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ExecutionPayload object to a target array

func (*ExecutionPayload) SizeSSZ added in v0.4.21

func (e *ExecutionPayload) SizeSSZ() (size int)

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

func (*ExecutionPayload) UnmarshalSSZ added in v0.4.21

func (e *ExecutionPayload) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ExecutionPayload object

type ExecutionPayloadHeader

type ExecutionPayloadHeader struct {
	types.ExecutionPayloadHeader
	WithdrawalsRoot types.Root `json:"withdrawals_root,omitempty" ssz-size:"32"`
}

func PayloadToPayloadHeader

func PayloadToPayloadHeader(p *ExecutionPayload) (*ExecutionPayloadHeader, error)

func (*ExecutionPayloadHeader) GetBlockHash

func (eph *ExecutionPayloadHeader) GetBlockHash() types.Hash

func (*ExecutionPayloadHeader) GetBlockNumber

func (eph *ExecutionPayloadHeader) GetBlockNumber() uint64

func (*ExecutionPayloadHeader) GetParentHash

func (eph *ExecutionPayloadHeader) GetParentHash() types.Hash

func (*ExecutionPayloadHeader) GetTree

func (e *ExecutionPayloadHeader) GetTree() (*ssz.Node, error)

GetTree ssz hashes the ExecutionPayloadHeader object

func (*ExecutionPayloadHeader) HashTreeRoot

func (e *ExecutionPayloadHeader) HashTreeRoot() ([32]byte, error)

HashTreeRoot ssz hashes the ExecutionPayloadHeader object

func (*ExecutionPayloadHeader) HashTreeRootWith

func (e *ExecutionPayloadHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)

HashTreeRootWith ssz hashes the ExecutionPayloadHeader object with a hasher

func (*ExecutionPayloadHeader) MarshalSSZ

func (e *ExecutionPayloadHeader) MarshalSSZ() ([]byte, error)

MarshalSSZ ssz marshals the ExecutionPayloadHeader object

func (*ExecutionPayloadHeader) MarshalSSZTo

func (e *ExecutionPayloadHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)

MarshalSSZTo ssz marshals the ExecutionPayloadHeader object to a target array

func (*ExecutionPayloadHeader) SizeSSZ

func (e *ExecutionPayloadHeader) SizeSSZ() (size int)

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

func (*ExecutionPayloadHeader) UnmarshalSSZ

func (e *ExecutionPayloadHeader) UnmarshalSSZ(buf []byte) error

UnmarshalSSZ ssz unmarshals the ExecutionPayloadHeader object

type GetHeaderResponse

type GetHeaderResponse struct {
	CapellaVersion types.VersionString `json:"version"`
	CapellaData    SignedBuilderBid    `json:"data"`
}

GetHeaderResponse is the response payload from the getHeader request: https://github.com/ethereum/builder-specs/pull/2/files#diff-c80f52e38c99b1049252a99215450a29fd248d709ffd834a9480c98a233bf32c

func (*GetHeaderResponse) Data

func (*GetHeaderResponse) Version

func (g *GetHeaderResponse) Version() types.VersionString

type GetPayloadResponse

type GetPayloadResponse struct {
	CapellaVersion types.VersionString `json:"version"`
	CapellaData    ExecutionPayload    `json:"data"`
}

func (*GetPayloadResponse) Data

func (*GetPayloadResponse) MarshalSSZ added in v0.5.0

func (gpr *GetPayloadResponse) MarshalSSZ() ([]byte, error)

func (*GetPayloadResponse) MarshalSSZTo added in v0.5.0

func (gpr *GetPayloadResponse) MarshalSSZTo(buf []byte) ([]byte, error)

MarshalSSZTo ssz marshals the GetPayloadResponse object to a target array

func (*GetPayloadResponse) SizeSSZ added in v0.5.0

func (gpr *GetPayloadResponse) SizeSSZ() (size int)

func (*GetPayloadResponse) UnmarshalSSZ added in v0.5.0

func (gpr *GetPayloadResponse) UnmarshalSSZ(buf []byte) error

type SignedBLSToExecutionChange

type SignedBLSToExecutionChange struct {
	Message   *BLSToExecutionChange `json:"message"`
	Signature types.Signature       `json:"signature" ssz-size:"96"`
}

SignedBLSToExecutionChange provides information about a signed BLS to execution change.

func (*SignedBLSToExecutionChange) GetTree

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

GetTree ssz hashes the SignedBLSToExecutionChange object

func (*SignedBLSToExecutionChange) HashTreeRoot

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

HashTreeRoot ssz hashes the SignedBLSToExecutionChange object

func (*SignedBLSToExecutionChange) HashTreeRootWith

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

HashTreeRootWith ssz hashes the SignedBLSToExecutionChange object with a hasher

func (*SignedBLSToExecutionChange) MarshalSSZ added in v0.6.2

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

MarshalSSZ ssz marshals the SignedBLSToExecutionChange object

func (*SignedBLSToExecutionChange) MarshalSSZTo added in v0.6.2

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

MarshalSSZTo ssz marshals the SignedBLSToExecutionChange object to a target array

func (*SignedBLSToExecutionChange) SizeSSZ

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

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

type SignedBeaconBlock

type SignedBeaconBlock struct {
	CapellaMessage   *BeaconBlock    `json:"message"`
	CapellaSignature types.Signature `json:"signature" ssz-size:"96"`
}

SignedBeaconBlock https://github.com/ethereum/beacon-APIs/blob/master/types/bellatrix/block.yaml#L55

func (*SignedBeaconBlock) ConsensusVersion added in v0.6.2

func (s *SignedBeaconBlock) ConsensusVersion() string

func (*SignedBeaconBlock) MarshalSSZ added in v0.6.2

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

func (*SignedBeaconBlock) MarshalSSZTo added in v0.6.2

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

func (*SignedBeaconBlock) Signature

func (s *SignedBeaconBlock) Signature() types.Signature

func (*SignedBeaconBlock) SizeSSZ added in v0.6.2

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

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

type SignedBidTrace added in v0.5.0

type SignedBidTrace struct {
	Signature types.Signature `json:"signature" ssz-size:"96"`
	Message   BidTrace        `json:"message"`
}

SignedBidTrace is a BidTrace with a signature

func (*SignedBidTrace) MarshalSSZ added in v0.5.0

func (sbt *SignedBidTrace) MarshalSSZ() ([]byte, error)

func (*SignedBidTrace) MarshalSSZTo added in v0.5.0

func (sbt *SignedBidTrace) MarshalSSZTo(buf []byte) ([]byte, error)

MarshalSSZTo ssz marshals the SignedBidTrace object to a target array

func (*SignedBidTrace) SizeSSZ added in v0.5.0

func (sbt *SignedBidTrace) SizeSSZ() int

func (*SignedBidTrace) UnmarshalSSZ added in v0.5.0

func (sbt *SignedBidTrace) UnmarshalSSZ(buf []byte) error

type SignedBlindedBeaconBlock

type SignedBlindedBeaconBlock struct {
	SRaw       []byte             `json:"-"`
	SMessage   BlindedBeaconBlock `json:"message"`
	SSignature types.Signature    `json:"signature" ssz-size:"96"`
}

SignedBlindedBeaconBlock https://github.com/ethereum/beacon-APIs/blob/master/types/bellatrix/block.yaml#L83

func (*SignedBlindedBeaconBlock) BlockHash

func (s *SignedBlindedBeaconBlock) BlockHash() types.Hash

func (*SignedBlindedBeaconBlock) BlockNumber

func (s *SignedBlindedBeaconBlock) BlockNumber() uint64

func (*SignedBlindedBeaconBlock) ComputeSigningRoot

func (b *SignedBlindedBeaconBlock) ComputeSigningRoot(d types.Domain) ([32]byte, error)

func (*SignedBlindedBeaconBlock) ExecutionHeaderHash added in v0.4.11

func (s *SignedBlindedBeaconBlock) ExecutionHeaderHash() (types.Hash, error)

func (*SignedBlindedBeaconBlock) Loggable added in v0.4.16

func (b *SignedBlindedBeaconBlock) Loggable() map[string]any

func (*SignedBlindedBeaconBlock) ParentRoot

func (s *SignedBlindedBeaconBlock) ParentRoot() types.Root

func (*SignedBlindedBeaconBlock) ProposerIndex

func (s *SignedBlindedBeaconBlock) ProposerIndex() uint64

func (*SignedBlindedBeaconBlock) Raw added in v0.4.17

func (b *SignedBlindedBeaconBlock) Raw() []byte

func (*SignedBlindedBeaconBlock) Signature

func (s *SignedBlindedBeaconBlock) Signature() types.Signature

func (*SignedBlindedBeaconBlock) Slot

func (s *SignedBlindedBeaconBlock) Slot() uint64

func (*SignedBlindedBeaconBlock) StateRoot

func (s *SignedBlindedBeaconBlock) StateRoot() types.Root

func (*SignedBlindedBeaconBlock) ToBeaconBlock

func (s *SignedBlindedBeaconBlock) ToBeaconBlock(executionPayload structs.ExecutionPayload) (structs.SignedBeaconBlock, error)

func (*SignedBlindedBeaconBlock) ToPayloadKey

func (s *SignedBlindedBeaconBlock) ToPayloadKey(pk types.PublicKey) (payK structs.PayloadKey, err error)

func (*SignedBlindedBeaconBlock) Validate

func (b *SignedBlindedBeaconBlock) Validate() bool

type SignedBuilderBid

type SignedBuilderBid struct {
	CapellaMessage   BuilderBid      `json:"message"`
	CapellaSignature types.Signature `json:"signature" ssz-size:"96"`
}

func (*SignedBuilderBid) GetTree

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

GetTree ssz hashes the SignedBuilderBid object

func (*SignedBuilderBid) HashTreeRoot

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

HashTreeRoot ssz hashes the SignedBuilderBid object

func (*SignedBuilderBid) HashTreeRootWith

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

HashTreeRootWith ssz hashes the SignedBuilderBid object with a hasher

func (*SignedBuilderBid) Signature

func (s *SignedBuilderBid) Signature() types.Signature

func (*SignedBuilderBid) Validate

func (b *SignedBuilderBid) Validate() bool

func (*SignedBuilderBid) Value

func (s *SignedBuilderBid) Value() types.U256Str

type SubmitBlockRequest

type SubmitBlockRequest struct {
	CapellaRaw              []byte           `json:"-"`
	CapellaMessage          types.BidTrace   `json:"message"`
	CapellaExecutionPayload ExecutionPayload `json:"execution_payload"`
	CapellaSignature        types.Signature  `json:"signature" ssz-size:"96"`
}

func (*SubmitBlockRequest) BlockHash

func (b *SubmitBlockRequest) BlockHash() types.Hash

func (*SubmitBlockRequest) BuilderPubkey

func (b *SubmitBlockRequest) BuilderPubkey() types.PublicKey

func (*SubmitBlockRequest) ComputeSigningRoot

func (b *SubmitBlockRequest) ComputeSigningRoot(d types.Domain) ([32]byte, error)

func (*SubmitBlockRequest) NumTx

func (b *SubmitBlockRequest) NumTx() uint64

func (*SubmitBlockRequest) ParentHash added in v0.4.3

func (b *SubmitBlockRequest) ParentHash() types.Hash

func (*SubmitBlockRequest) PreparePayloadContents

func (s *SubmitBlockRequest) PreparePayloadContents(sk *bls.SecretKey, pubkey *types.PublicKey, domain types.Domain) (cbs structs.CompleteBlockstruct, err error)

func (*SubmitBlockRequest) ProposerFeeRecipient

func (b *SubmitBlockRequest) ProposerFeeRecipient() types.Address

func (*SubmitBlockRequest) ProposerPubkey

func (b *SubmitBlockRequest) ProposerPubkey() types.PublicKey

func (*SubmitBlockRequest) Random

func (b *SubmitBlockRequest) Random() types.Hash

func (*SubmitBlockRequest) Raw added in v0.4.17

func (b *SubmitBlockRequest) Raw() []byte

func (*SubmitBlockRequest) Signature

func (b *SubmitBlockRequest) Signature() types.Signature

func (*SubmitBlockRequest) SizeSSZ added in v0.4.21

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

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

func (*SubmitBlockRequest) Slot

func (b *SubmitBlockRequest) Slot() uint64

func (*SubmitBlockRequest) Timestamp

func (b *SubmitBlockRequest) Timestamp() uint64

func (*SubmitBlockRequest) ToPayloadKey

func (s *SubmitBlockRequest) ToPayloadKey() structs.PayloadKey

func (*SubmitBlockRequest) TraceBlockHash added in v0.4.3

func (b *SubmitBlockRequest) TraceBlockHash() types.Hash

func (*SubmitBlockRequest) TraceParentHash added in v0.4.3

func (b *SubmitBlockRequest) TraceParentHash() types.Hash

func (*SubmitBlockRequest) UnmarshalSSZ added in v0.4.21

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

UnmarshalSSZ ssz unmarshals the SubmitBlockRequest object

func (*SubmitBlockRequest) Validate

func (b *SubmitBlockRequest) Validate() bool

func (*SubmitBlockRequest) Value

func (b *SubmitBlockRequest) Value() types.U256Str

func (*SubmitBlockRequest) Withdrawals

func (b *SubmitBlockRequest) Withdrawals() structs.Withdrawals

Jump to

Keyboard shortcuts

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