Documentation ¶
Index ¶
- Variables
- func ComputeTransactionsRoot(t []bellatrix.Transaction) (phase0.Root, error)
- func ComputeWithdrawalsRoot(w []*capella.Withdrawal) (phase0.Root, error)
- type Address
- type BaseBeaconBlock
- type BaseBeaconBlockBody
- type BaseBlindedBeaconBlock
- type BaseBlindedBeaconBlockBody
- type BaseExecutionPayload
- type BaseExecutionPayloadHeader
- type BaseSignedBeaconBlock
- type BaseSignedBlindedBeaconBlock
- type EcdsaSignature
- type Hash
- type PublicKey
- type Root
- type Signature
- type VersionedBeaconBlock
- func (v *VersionedBeaconBlock) GetTree() (*ssz.Node, error)
- func (v *VersionedBeaconBlock) HashTreeRoot() ([32]byte, error)
- func (v *VersionedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *VersionedBeaconBlock) MarshalJSON() ([]byte, error)
- func (v *VersionedBeaconBlock) MarshalSSZ() ([]byte, error)
- func (v *VersionedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *VersionedBeaconBlock) MarshalYAML() ([]byte, error)
- func (v *VersionedBeaconBlock) SizeSSZ() (size int)
- func (v *VersionedBeaconBlock) String() string
- func (b *VersionedBeaconBlock) ToBaseBeaconBlock() (BaseBeaconBlock, error)
- func (b *VersionedBeaconBlock) ToVersionedBlindedBeaconBlock() (VersionedBlindedBeaconBlock, error)
- func (v *VersionedBeaconBlock) UnmarshalJSON(input []byte) error
- func (v *VersionedBeaconBlock) UnmarshalSSZ(buf []byte) error
- func (v *VersionedBeaconBlock) UnmarshalYAML(input []byte) error
- func (b *VersionedBeaconBlock) Version() (string, error)
- type VersionedBlindedBeaconBlock
- func (v *VersionedBlindedBeaconBlock) GetTree() (*ssz.Node, error)
- func (v *VersionedBlindedBeaconBlock) HashTreeRoot() ([32]byte, error)
- func (v *VersionedBlindedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *VersionedBlindedBeaconBlock) MarshalJSON() ([]byte, error)
- func (v *VersionedBlindedBeaconBlock) MarshalSSZ() ([]byte, error)
- func (v *VersionedBlindedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *VersionedBlindedBeaconBlock) MarshalYAML() ([]byte, error)
- func (v *VersionedBlindedBeaconBlock) SizeSSZ() (size int)
- func (v *VersionedBlindedBeaconBlock) String() string
- func (b *VersionedBlindedBeaconBlock) ToBaseBlindedBeaconBlock() (BaseBlindedBeaconBlock, error)
- func (b *VersionedBlindedBeaconBlock) ToVersionedBeaconBlock() (VersionedBeaconBlock, error)
- func (v *VersionedBlindedBeaconBlock) UnmarshalJSON(input []byte) error
- func (v *VersionedBlindedBeaconBlock) UnmarshalSSZ(buf []byte) error
- func (v *VersionedBlindedBeaconBlock) UnmarshalYAML(input []byte) error
- func (b *VersionedBlindedBeaconBlock) Version() (string, error)
- type VersionedExecutionPayload
- func (v *VersionedExecutionPayload) GetTree() (*ssz.Node, error)
- func (v *VersionedExecutionPayload) HashTreeRoot() ([32]byte, error)
- func (v *VersionedExecutionPayload) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *VersionedExecutionPayload) MarshalJSON() ([]byte, error)
- func (v *VersionedExecutionPayload) MarshalSSZ() ([]byte, error)
- func (v *VersionedExecutionPayload) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *VersionedExecutionPayload) MarshalYAML() ([]byte, error)
- func (v *VersionedExecutionPayload) SizeSSZ() (size int)
- func (v *VersionedExecutionPayload) String() string
- func (v *VersionedExecutionPayload) ToBaseExecutionPayload() (BaseExecutionPayload, error)
- func (v *VersionedExecutionPayload) ToVersionedExecutionPayloadHeader() (VersionedExecutionPayloadHeader, error)
- func (v *VersionedExecutionPayload) UnmarshalJSON(input []byte) error
- func (v *VersionedExecutionPayload) UnmarshalSSZ(buf []byte) error
- func (v *VersionedExecutionPayload) UnmarshalYAML(input []byte) error
- func (v *VersionedExecutionPayload) Version() (string, error)
- type VersionedExecutionPayloadHeader
- func (v *VersionedExecutionPayloadHeader) GetTree() (*ssz.Node, error)
- func (v *VersionedExecutionPayloadHeader) HashTreeRoot() ([32]byte, error)
- func (v *VersionedExecutionPayloadHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *VersionedExecutionPayloadHeader) MarshalJSON() ([]byte, error)
- func (v *VersionedExecutionPayloadHeader) MarshalSSZ() ([]byte, error)
- func (v *VersionedExecutionPayloadHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *VersionedExecutionPayloadHeader) MarshalYAML() ([]byte, error)
- func (v *VersionedExecutionPayloadHeader) SizeSSZ() (size int)
- func (v *VersionedExecutionPayloadHeader) String() string
- func (v *VersionedExecutionPayloadHeader) ToBaseExecutionPayloadHeader() (BaseExecutionPayloadHeader, error)
- func (v *VersionedExecutionPayloadHeader) ToVersionedExecutionPayload() (VersionedExecutionPayload, error)
- func (v *VersionedExecutionPayloadHeader) UnmarshalJSON(input []byte) error
- func (v *VersionedExecutionPayloadHeader) UnmarshalSSZ(buf []byte) error
- func (v *VersionedExecutionPayloadHeader) UnmarshalYAML(input []byte) error
- func (v *VersionedExecutionPayloadHeader) Version() (string, error)
- type VersionedSignedBeaconBlock
- func (v *VersionedSignedBeaconBlock) GetTree() (*ssz.Node, error)
- func (v *VersionedSignedBeaconBlock) HashTreeRoot() ([32]byte, error)
- func (v *VersionedSignedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *VersionedSignedBeaconBlock) MarshalJSON() ([]byte, error)
- func (v *VersionedSignedBeaconBlock) MarshalSSZ() ([]byte, error)
- func (v *VersionedSignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *VersionedSignedBeaconBlock) MarshalYAML() ([]byte, error)
- func (v *VersionedSignedBeaconBlock) SizeSSZ() (size int)
- func (v *VersionedSignedBeaconBlock) String() string
- func (b *VersionedSignedBeaconBlock) ToBaseSignedBeaconBlock() (BaseSignedBeaconBlock, error)
- func (v *VersionedSignedBeaconBlock) UnmarshalJSON(input []byte) error
- func (v *VersionedSignedBeaconBlock) UnmarshalSSZ(buf []byte) error
- func (v *VersionedSignedBeaconBlock) UnmarshalYAML(input []byte) error
- func (b *VersionedSignedBeaconBlock) Version() (string, error)
- type VersionedSignedBlindedBeaconBlock
- func (v *VersionedSignedBlindedBeaconBlock) GetTree() (*ssz.Node, error)
- func (v *VersionedSignedBlindedBeaconBlock) HashTreeRoot() ([32]byte, error)
- func (v *VersionedSignedBlindedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
- func (v *VersionedSignedBlindedBeaconBlock) MarshalJSON() ([]byte, error)
- func (v *VersionedSignedBlindedBeaconBlock) MarshalSSZ() ([]byte, error)
- func (v *VersionedSignedBlindedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (v *VersionedSignedBlindedBeaconBlock) MarshalYAML() ([]byte, error)
- func (v *VersionedSignedBlindedBeaconBlock) SizeSSZ() (size int)
- func (v *VersionedSignedBlindedBeaconBlock) String() string
- func (b *VersionedSignedBlindedBeaconBlock) ToBaseSignedBlindedBeaconBlock() (BaseSignedBlindedBeaconBlock, error)
- func (b *VersionedSignedBlindedBeaconBlock) ToVersionedSignedBeaconBlock() (VersionedSignedBeaconBlock, error)
- func (v *VersionedSignedBlindedBeaconBlock) UnmarshalJSON(input []byte) error
- func (v *VersionedSignedBlindedBeaconBlock) UnmarshalSSZ(buf []byte) error
- func (v *VersionedSignedBlindedBeaconBlock) UnmarshalYAML(input []byte) error
- func (b *VersionedSignedBlindedBeaconBlock) Version() (string, error)
Constants ¶
This section is empty.
Variables ¶
var (
EmptyWithdrawalMerkleRoot = "0x792930bbd5baac43bcc798ee49aa8185ef76bb3b44ba62b91d86ae569e4bb535"
)
var ErrLength = fmt.Errorf("incorrect byte length")
Functions ¶
func ComputeTransactionsRoot ¶
func ComputeTransactionsRoot(t []bellatrix.Transaction) (phase0.Root, error)
func ComputeWithdrawalsRoot ¶
func ComputeWithdrawalsRoot(w []*capella.Withdrawal) (phase0.Root, error)
Types ¶
type Address ¶
type Address [20]byte
Address types and methods
func (Address) MarshalText ¶
func (*Address) UnmarshalJSON ¶
func (*Address) UnmarshalText ¶
type BaseBeaconBlock ¶
type BaseBeaconBlock struct { Slot phase0.Slot ProposerIndex phase0.ValidatorIndex ParentRoot phase0.Root `ssz-size:"32"` StateRoot phase0.Root `ssz-size:"32"` Body *BaseBeaconBlockBody }
Always ensure that the execution payload header contains all the fields from all the fork versions, as they can be used or omitted
type BaseBeaconBlockBody ¶
type BaseBeaconBlockBody struct { RANDAOReveal phase0.BLSSignature `ssz-size:"96"` ETH1Data *phase0.ETH1Data Graffiti [32]byte `ssz-size:"32"` ProposerSlashings []*phase0.ProposerSlashing `ssz-max:"16"` AttesterSlashings []*phase0.AttesterSlashing `ssz-max:"2"` Attestations []*phase0.Attestation `ssz-max:"128"` Deposits []*phase0.Deposit `ssz-max:"16"` VoluntaryExits []*phase0.SignedVoluntaryExit `ssz-max:"16"` SyncAggregate *altair.SyncAggregate ExecutionPayload *BaseExecutionPayload BLSToExecutionChanges []*capella.SignedBLSToExecutionChange `ssz-max:"16"` BlobKzgCommitments []deneb.KzgCommitment `ssz-max:"4096" ssz-size:"?,48"` }
type BaseBlindedBeaconBlock ¶
type BaseBlindedBeaconBlock struct { Slot phase0.Slot ProposerIndex phase0.ValidatorIndex ParentRoot phase0.Root `ssz-size:"32"` StateRoot phase0.Root `ssz-size:"32"` Body *BaseBlindedBeaconBlockBody }
Always ensure that the execution payload header contains all the fields from all the fork versions, as they can be used or omitted
type BaseBlindedBeaconBlockBody ¶
type BaseBlindedBeaconBlockBody struct { RANDAOReveal phase0.BLSSignature `ssz-size:"96"` ETH1Data *phase0.ETH1Data Graffiti [32]byte `ssz-size:"32"` ProposerSlashings []*phase0.ProposerSlashing `ssz-max:"16"` AttesterSlashings []*phase0.AttesterSlashing `ssz-max:"2"` Attestations []*phase0.Attestation `ssz-max:"128"` Deposits []*phase0.Deposit `ssz-max:"16"` VoluntaryExits []*phase0.SignedVoluntaryExit `ssz-max:"16"` SyncAggregate *altair.SyncAggregate ExecutionPayloadHeader *BaseExecutionPayloadHeader BLSToExecutionChanges []*capella.SignedBLSToExecutionChange `ssz-max:"16"` BlobKzgCommitments []deneb.KzgCommitment `ssz-max:"4096" ssz-size:"?,48"` }
type BaseExecutionPayload ¶
type BaseExecutionPayload struct { ParentHash phase0.Hash32 `ssz-size:"32"` FeeRecipient bellatrix.ExecutionAddress `ssz-size:"20"` StateRoot phase0.Root `ssz-size:"32"` ReceiptsRoot phase0.Root `ssz-size:"32"` LogsBloom [256]byte `ssz-size:"256"` PrevRandao [32]byte `ssz-size:"32"` BlockNumber uint64 GasLimit uint64 GasUsed uint64 Timestamp uint64 ExtraData []byte `ssz-max:"32"` BaseFeePerGas *uint256.Int `ssz-size:"32"` BlockHash phase0.Hash32 `ssz-size:"32"` Transactions []bellatrix.Transaction `ssz-max:"1048576,1073741824" ssz-size:"?,?"` Withdrawals []*capella.Withdrawal `ssz-max:"16"` BlobGasUsed uint64 ExcessBlobGas uint64 }
Always ensure that the execution payload header contains all the fields from all the fork versions, as they can be used or omitted
type BaseExecutionPayloadHeader ¶
type BaseExecutionPayloadHeader struct { ParentHash phase0.Hash32 `ssz-size:"32"` FeeRecipient bellatrix.ExecutionAddress `ssz-size:"20"` StateRoot phase0.Root `ssz-size:"32"` ReceiptsRoot phase0.Root `ssz-size:"32"` LogsBloom [256]byte `ssz-size:"256"` PrevRandao [32]byte `ssz-size:"32"` BlockNumber uint64 GasLimit uint64 GasUsed uint64 Timestamp uint64 ExtraData []byte `ssz-max:"32"` BaseFeePerGas *uint256.Int `ssz-size:"32"` BlockHash phase0.Hash32 `ssz-size:"32"` TransactionsRoot phase0.Root `ssz-size:"32"` WithdrawalsRoot phase0.Root `ssz-size:"32"` BlobGasUsed uint64 ExcessBlobGas uint64 }
Always ensure that the execution payload header contains all the fields from all the fork versions, as they can be used or omitted
type BaseSignedBeaconBlock ¶
type BaseSignedBeaconBlock struct { Message *BaseBeaconBlock Signature phase0.BLSSignature `ssz-size:"96"` }
Always ensure that the execution payload header contains all the fields from all the fork versions, as they can be used or omitted
type BaseSignedBlindedBeaconBlock ¶
type BaseSignedBlindedBeaconBlock struct { Message *BaseBlindedBeaconBlock Signature phase0.BLSSignature `ssz-size:"96"` }
Always ensure that the execution payload header contains all the fields from all the fork versions, as they can be used or omitted
type EcdsaSignature ¶
type EcdsaSignature [65]byte
ECDSA Signature types and methods
func (*EcdsaSignature) FromSlice ¶
func (s *EcdsaSignature) FromSlice(x []byte) error
func (EcdsaSignature) MarshalText ¶
func (s EcdsaSignature) MarshalText() ([]byte, error)
func (EcdsaSignature) String ¶
func (s EcdsaSignature) String() string
func (*EcdsaSignature) UnmarshalJSON ¶
func (s *EcdsaSignature) UnmarshalJSON(input []byte) error
func (*EcdsaSignature) UnmarshalText ¶
func (s *EcdsaSignature) UnmarshalText(input []byte) error
type Hash ¶
type Hash [32]byte
Hash types and methods
func (Hash) MarshalText ¶
func (*Hash) UnmarshalJSON ¶
func (*Hash) UnmarshalText ¶
type PublicKey ¶
type PublicKey [48]byte
Public key types and methods
func HexToPubkey ¶
func (PublicKey) MarshalText ¶
func (*PublicKey) UnmarshalJSON ¶
func (*PublicKey) UnmarshalText ¶
type Signature ¶
type Signature [96]byte
Signature types and methods
func (Signature) MarshalText ¶
func (*Signature) UnmarshalJSON ¶
func (*Signature) UnmarshalText ¶
type VersionedBeaconBlock ¶
type VersionedBeaconBlock struct { Bellatrix *bellatrix.BeaconBlock `json:"bellatrix,omitempty"` Capella *capella.BeaconBlock `json:"capella,omitempty"` Deneb *deneb.BeaconBlock `json:"deneb,omitempty"` }
func ConstructBeaconBlock ¶
func ConstructBeaconBlock( forkVersion string, beaconBlock BaseBeaconBlock, ) (VersionedBeaconBlock, error)
func (*VersionedBeaconBlock) HashTreeRoot ¶
func (v *VersionedBeaconBlock) HashTreeRoot() ([32]byte, error)
func (*VersionedBeaconBlock) HashTreeRootWith ¶
func (v *VersionedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
func (*VersionedBeaconBlock) MarshalJSON ¶
func (v *VersionedBeaconBlock) MarshalJSON() ([]byte, error)
func (*VersionedBeaconBlock) MarshalSSZ ¶
func (v *VersionedBeaconBlock) MarshalSSZ() ([]byte, error)
func (*VersionedBeaconBlock) MarshalSSZTo ¶
func (v *VersionedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
func (*VersionedBeaconBlock) MarshalYAML ¶
func (v *VersionedBeaconBlock) MarshalYAML() ([]byte, error)
func (*VersionedBeaconBlock) SizeSSZ ¶
func (v *VersionedBeaconBlock) SizeSSZ() (size int)
func (*VersionedBeaconBlock) String ¶
func (v *VersionedBeaconBlock) String() string
func (*VersionedBeaconBlock) ToBaseBeaconBlock ¶
func (b *VersionedBeaconBlock) ToBaseBeaconBlock() (BaseBeaconBlock, error)
func (*VersionedBeaconBlock) ToVersionedBlindedBeaconBlock ¶
func (b *VersionedBeaconBlock) ToVersionedBlindedBeaconBlock() (VersionedBlindedBeaconBlock, error)
Converts the VersionedBeaconBlock to a VersionedBlindedBeaconBlock, hasihing the transactions and withdrawals
func (*VersionedBeaconBlock) UnmarshalJSON ¶
func (v *VersionedBeaconBlock) UnmarshalJSON(input []byte) error
func (*VersionedBeaconBlock) UnmarshalSSZ ¶
func (v *VersionedBeaconBlock) UnmarshalSSZ(buf []byte) error
func (*VersionedBeaconBlock) UnmarshalYAML ¶
func (v *VersionedBeaconBlock) UnmarshalYAML(input []byte) error
func (*VersionedBeaconBlock) Version ¶
func (b *VersionedBeaconBlock) Version() (string, error)
type VersionedBlindedBeaconBlock ¶
type VersionedBlindedBeaconBlock struct { Bellatrix *bellatrix.BlindedBeaconBlock `json:"bellatrix,omitempty"` Capella *capella.BlindedBeaconBlock `json:"capella,omitempty"` Deneb *deneb.BlindedBeaconBlock `json:"deneb,omitempty"` }
func ConstructBlindedBeaconBlock ¶
func ConstructBlindedBeaconBlock( forkVersion string, blindedBeaconBlock BaseBlindedBeaconBlock, ) (VersionedBlindedBeaconBlock, error)
func (*VersionedBlindedBeaconBlock) GetTree ¶
func (v *VersionedBlindedBeaconBlock) GetTree() (*ssz.Node, error)
func (*VersionedBlindedBeaconBlock) HashTreeRoot ¶
func (v *VersionedBlindedBeaconBlock) HashTreeRoot() ([32]byte, error)
func (*VersionedBlindedBeaconBlock) HashTreeRootWith ¶
func (v *VersionedBlindedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
func (*VersionedBlindedBeaconBlock) MarshalJSON ¶
func (v *VersionedBlindedBeaconBlock) MarshalJSON() ([]byte, error)
func (*VersionedBlindedBeaconBlock) MarshalSSZ ¶
func (v *VersionedBlindedBeaconBlock) MarshalSSZ() ([]byte, error)
func (*VersionedBlindedBeaconBlock) MarshalSSZTo ¶
func (v *VersionedBlindedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
func (*VersionedBlindedBeaconBlock) MarshalYAML ¶
func (v *VersionedBlindedBeaconBlock) MarshalYAML() ([]byte, error)
func (*VersionedBlindedBeaconBlock) SizeSSZ ¶
func (v *VersionedBlindedBeaconBlock) SizeSSZ() (size int)
func (*VersionedBlindedBeaconBlock) String ¶
func (v *VersionedBlindedBeaconBlock) String() string
func (*VersionedBlindedBeaconBlock) ToBaseBlindedBeaconBlock ¶
func (b *VersionedBlindedBeaconBlock) ToBaseBlindedBeaconBlock() (BaseBlindedBeaconBlock, error)
func (*VersionedBlindedBeaconBlock) ToVersionedBeaconBlock ¶
func (b *VersionedBlindedBeaconBlock) ToVersionedBeaconBlock() (VersionedBeaconBlock, error)
Converts the VersionedBlindedBeaconBlock to a VersionedBeaconBlock without the transactions and withdrawals as those cannot be derived
func (*VersionedBlindedBeaconBlock) UnmarshalJSON ¶
func (v *VersionedBlindedBeaconBlock) UnmarshalJSON(input []byte) error
func (*VersionedBlindedBeaconBlock) UnmarshalSSZ ¶
func (v *VersionedBlindedBeaconBlock) UnmarshalSSZ(buf []byte) error
func (*VersionedBlindedBeaconBlock) UnmarshalYAML ¶
func (v *VersionedBlindedBeaconBlock) UnmarshalYAML(input []byte) error
func (*VersionedBlindedBeaconBlock) Version ¶
func (b *VersionedBlindedBeaconBlock) Version() (string, error)
type VersionedExecutionPayload ¶
type VersionedExecutionPayload struct { Bellatrix *bellatrix.ExecutionPayload `json:"bellatrix,omitempty"` Capella *capella.ExecutionPayload `json:"capella,omitempty"` Deneb *deneb.ExecutionPayload `json:"deneb,omitempty"` }
func ConstructExecutionPayload ¶
func ConstructExecutionPayload( forkVersion string, executionPayload BaseExecutionPayload, ) (VersionedExecutionPayload, error)
func (*VersionedExecutionPayload) GetTree ¶
func (v *VersionedExecutionPayload) GetTree() (*ssz.Node, error)
func (*VersionedExecutionPayload) HashTreeRoot ¶
func (v *VersionedExecutionPayload) HashTreeRoot() ([32]byte, error)
func (*VersionedExecutionPayload) HashTreeRootWith ¶
func (v *VersionedExecutionPayload) HashTreeRootWith(hh ssz.HashWalker) (err error)
func (*VersionedExecutionPayload) MarshalJSON ¶
func (v *VersionedExecutionPayload) MarshalJSON() ([]byte, error)
func (*VersionedExecutionPayload) MarshalSSZ ¶
func (v *VersionedExecutionPayload) MarshalSSZ() ([]byte, error)
func (*VersionedExecutionPayload) MarshalSSZTo ¶
func (v *VersionedExecutionPayload) MarshalSSZTo(buf []byte) (dst []byte, err error)
func (*VersionedExecutionPayload) MarshalYAML ¶
func (v *VersionedExecutionPayload) MarshalYAML() ([]byte, error)
func (*VersionedExecutionPayload) SizeSSZ ¶
func (v *VersionedExecutionPayload) SizeSSZ() (size int)
func (*VersionedExecutionPayload) String ¶
func (v *VersionedExecutionPayload) String() string
func (*VersionedExecutionPayload) ToBaseExecutionPayload ¶
func (v *VersionedExecutionPayload) ToBaseExecutionPayload() (BaseExecutionPayload, error)
func (*VersionedExecutionPayload) ToVersionedExecutionPayloadHeader ¶
func (v *VersionedExecutionPayload) ToVersionedExecutionPayloadHeader() (VersionedExecutionPayloadHeader, error)
Converts the VersionedExecutionPayload to a VersionedExecutionPayloadHeader
func (*VersionedExecutionPayload) UnmarshalJSON ¶
func (v *VersionedExecutionPayload) UnmarshalJSON(input []byte) error
func (*VersionedExecutionPayload) UnmarshalSSZ ¶
func (v *VersionedExecutionPayload) UnmarshalSSZ(buf []byte) error
func (*VersionedExecutionPayload) UnmarshalYAML ¶
func (v *VersionedExecutionPayload) UnmarshalYAML(input []byte) error
func (*VersionedExecutionPayload) Version ¶
func (v *VersionedExecutionPayload) Version() (string, error)
type VersionedExecutionPayloadHeader ¶
type VersionedExecutionPayloadHeader struct { Bellatrix *bellatrix.ExecutionPayloadHeader `json:"bellatrix,omitempty"` Capella *capella.ExecutionPayloadHeader `json:"capella,omitempty"` Deneb *deneb.ExecutionPayloadHeader `json:"deneb,omitempty"` }
func ConstructExecutionPayloadHeader ¶
func ConstructExecutionPayloadHeader( forkVersion string, executionPayloadHeader BaseExecutionPayloadHeader, ) (VersionedExecutionPayloadHeader, error)
func (*VersionedExecutionPayloadHeader) GetTree ¶
func (v *VersionedExecutionPayloadHeader) GetTree() (*ssz.Node, error)
func (*VersionedExecutionPayloadHeader) HashTreeRoot ¶
func (v *VersionedExecutionPayloadHeader) HashTreeRoot() ([32]byte, error)
func (*VersionedExecutionPayloadHeader) HashTreeRootWith ¶
func (v *VersionedExecutionPayloadHeader) HashTreeRootWith(hh ssz.HashWalker) (err error)
func (*VersionedExecutionPayloadHeader) MarshalJSON ¶
func (v *VersionedExecutionPayloadHeader) MarshalJSON() ([]byte, error)
func (*VersionedExecutionPayloadHeader) MarshalSSZ ¶
func (v *VersionedExecutionPayloadHeader) MarshalSSZ() ([]byte, error)
func (*VersionedExecutionPayloadHeader) MarshalSSZTo ¶
func (v *VersionedExecutionPayloadHeader) MarshalSSZTo(buf []byte) (dst []byte, err error)
func (*VersionedExecutionPayloadHeader) MarshalYAML ¶
func (v *VersionedExecutionPayloadHeader) MarshalYAML() ([]byte, error)
func (*VersionedExecutionPayloadHeader) SizeSSZ ¶
func (v *VersionedExecutionPayloadHeader) SizeSSZ() (size int)
func (*VersionedExecutionPayloadHeader) String ¶
func (v *VersionedExecutionPayloadHeader) String() string
func (*VersionedExecutionPayloadHeader) ToBaseExecutionPayloadHeader ¶
func (v *VersionedExecutionPayloadHeader) ToBaseExecutionPayloadHeader() (BaseExecutionPayloadHeader, error)
func (*VersionedExecutionPayloadHeader) ToVersionedExecutionPayload ¶
func (v *VersionedExecutionPayloadHeader) ToVersionedExecutionPayload() (VersionedExecutionPayload, error)
Converts the VersionedExecutionPayloadHeader to a VersionedExecutionPayload without the transactions and withdrawals as those cannot be derived
func (*VersionedExecutionPayloadHeader) UnmarshalJSON ¶
func (v *VersionedExecutionPayloadHeader) UnmarshalJSON(input []byte) error
func (*VersionedExecutionPayloadHeader) UnmarshalSSZ ¶
func (v *VersionedExecutionPayloadHeader) UnmarshalSSZ(buf []byte) error
func (*VersionedExecutionPayloadHeader) UnmarshalYAML ¶
func (v *VersionedExecutionPayloadHeader) UnmarshalYAML(input []byte) error
func (*VersionedExecutionPayloadHeader) Version ¶
func (v *VersionedExecutionPayloadHeader) Version() (string, error)
type VersionedSignedBeaconBlock ¶
type VersionedSignedBeaconBlock struct { Bellatrix *bellatrix.SignedBeaconBlock `json:"bellatrix,omitempty"` Capella *capella.SignedBeaconBlock `json:"capella,omitempty"` Deneb *deneb.SignedBeaconBlock `json:"deneb,omitempty"` }
func ConstructSignedBeaconBlock ¶
func ConstructSignedBeaconBlock( forkVersion string, signedBeaconBlock BaseSignedBeaconBlock, ) (VersionedSignedBeaconBlock, error)
func (*VersionedSignedBeaconBlock) GetTree ¶
func (v *VersionedSignedBeaconBlock) GetTree() (*ssz.Node, error)
func (*VersionedSignedBeaconBlock) HashTreeRoot ¶
func (v *VersionedSignedBeaconBlock) HashTreeRoot() ([32]byte, error)
func (*VersionedSignedBeaconBlock) HashTreeRootWith ¶
func (v *VersionedSignedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
func (*VersionedSignedBeaconBlock) MarshalJSON ¶
func (v *VersionedSignedBeaconBlock) MarshalJSON() ([]byte, error)
func (*VersionedSignedBeaconBlock) MarshalSSZ ¶
func (v *VersionedSignedBeaconBlock) MarshalSSZ() ([]byte, error)
func (*VersionedSignedBeaconBlock) MarshalSSZTo ¶
func (v *VersionedSignedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
func (*VersionedSignedBeaconBlock) MarshalYAML ¶
func (v *VersionedSignedBeaconBlock) MarshalYAML() ([]byte, error)
func (*VersionedSignedBeaconBlock) SizeSSZ ¶
func (v *VersionedSignedBeaconBlock) SizeSSZ() (size int)
func (*VersionedSignedBeaconBlock) String ¶
func (v *VersionedSignedBeaconBlock) String() string
func (*VersionedSignedBeaconBlock) ToBaseSignedBeaconBlock ¶
func (b *VersionedSignedBeaconBlock) ToBaseSignedBeaconBlock() (BaseSignedBeaconBlock, error)
func (*VersionedSignedBeaconBlock) UnmarshalJSON ¶
func (v *VersionedSignedBeaconBlock) UnmarshalJSON(input []byte) error
func (*VersionedSignedBeaconBlock) UnmarshalSSZ ¶
func (v *VersionedSignedBeaconBlock) UnmarshalSSZ(buf []byte) error
func (*VersionedSignedBeaconBlock) UnmarshalYAML ¶
func (v *VersionedSignedBeaconBlock) UnmarshalYAML(input []byte) error
func (*VersionedSignedBeaconBlock) Version ¶
func (b *VersionedSignedBeaconBlock) Version() (string, error)
type VersionedSignedBlindedBeaconBlock ¶
type VersionedSignedBlindedBeaconBlock struct { Bellatrix *bellatrix.SignedBlindedBeaconBlock `json:"bellatrix,omitempty"` Capella *capella.SignedBlindedBeaconBlock `json:"capella,omitempty"` Deneb *deneb.SignedBlindedBeaconBlock `json:"deneb,omitempty"` }
func ConstructSignedBlindedBeaconBlock ¶
func ConstructSignedBlindedBeaconBlock( forkVersion string, signedBlindedBeaconBlock BaseSignedBlindedBeaconBlock, ) (VersionedSignedBlindedBeaconBlock, error)
func (*VersionedSignedBlindedBeaconBlock) GetTree ¶
func (v *VersionedSignedBlindedBeaconBlock) GetTree() (*ssz.Node, error)
func (*VersionedSignedBlindedBeaconBlock) HashTreeRoot ¶
func (v *VersionedSignedBlindedBeaconBlock) HashTreeRoot() ([32]byte, error)
func (*VersionedSignedBlindedBeaconBlock) HashTreeRootWith ¶
func (v *VersionedSignedBlindedBeaconBlock) HashTreeRootWith(hh ssz.HashWalker) (err error)
func (*VersionedSignedBlindedBeaconBlock) MarshalJSON ¶
func (v *VersionedSignedBlindedBeaconBlock) MarshalJSON() ([]byte, error)
func (*VersionedSignedBlindedBeaconBlock) MarshalSSZ ¶
func (v *VersionedSignedBlindedBeaconBlock) MarshalSSZ() ([]byte, error)
func (*VersionedSignedBlindedBeaconBlock) MarshalSSZTo ¶
func (v *VersionedSignedBlindedBeaconBlock) MarshalSSZTo(buf []byte) (dst []byte, err error)
func (*VersionedSignedBlindedBeaconBlock) MarshalYAML ¶
func (v *VersionedSignedBlindedBeaconBlock) MarshalYAML() ([]byte, error)
func (*VersionedSignedBlindedBeaconBlock) SizeSSZ ¶
func (v *VersionedSignedBlindedBeaconBlock) SizeSSZ() (size int)
func (*VersionedSignedBlindedBeaconBlock) String ¶
func (v *VersionedSignedBlindedBeaconBlock) String() string
func (*VersionedSignedBlindedBeaconBlock) ToBaseSignedBlindedBeaconBlock ¶
func (b *VersionedSignedBlindedBeaconBlock) ToBaseSignedBlindedBeaconBlock() (BaseSignedBlindedBeaconBlock, error)
func (*VersionedSignedBlindedBeaconBlock) ToVersionedSignedBeaconBlock ¶
func (b *VersionedSignedBlindedBeaconBlock) ToVersionedSignedBeaconBlock() (VersionedSignedBeaconBlock, error)
Converts the VersionedSignedBlindedBeaconBlock to a VersionedSignedBeaconBlock without the transactions and withdrawals as those cannot be derived
func (*VersionedSignedBlindedBeaconBlock) UnmarshalJSON ¶
func (v *VersionedSignedBlindedBeaconBlock) UnmarshalJSON(input []byte) error
func (*VersionedSignedBlindedBeaconBlock) UnmarshalSSZ ¶
func (v *VersionedSignedBlindedBeaconBlock) UnmarshalSSZ(buf []byte) error
func (*VersionedSignedBlindedBeaconBlock) UnmarshalYAML ¶
func (v *VersionedSignedBlindedBeaconBlock) UnmarshalYAML(input []byte) error
func (*VersionedSignedBlindedBeaconBlock) Version ¶
func (b *VersionedSignedBlindedBeaconBlock) Version() (string, error)
Source Files ¶
- eth_types.go
- helpers.go
- versionedBeaconBlock.go
- versionedBeaconBlock_helper.go
- versionedBlindedBeaconBlock.go
- versionedBlindedBeaconBlock_helper.go
- versionedExecutionPayload.go
- versionedExecutionPayloadHeader.go
- versionedExecutionPayloadHeader_helper.go
- versionedExecutionPayload_helper.go
- versionedSignedBeaconBlock.go
- versionedSignedBeaconBlock_helper.go
- versionedSignedBlindedBeaconBlock.go
- versionedSignedBlindedBeaconBlock_helper.go