common

package
v0.0.0-...-2cc199d Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EmptyWithdrawalMerkleRoot = "0x792930bbd5baac43bcc798ee49aa8185ef76bb3b44ba62b91d86ae569e4bb535"
)
View Source
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) FromSlice

func (a *Address) FromSlice(x []byte) error

func (Address) MarshalText

func (a Address) MarshalText() ([]byte, error)

func (Address) String

func (a Address) String() string

func (*Address) UnmarshalJSON

func (a *Address) UnmarshalJSON(input []byte) error

func (*Address) UnmarshalText

func (a *Address) UnmarshalText(input []byte) error

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) FromSlice

func (h *Hash) FromSlice(x []byte) error

func (Hash) MarshalText

func (h Hash) MarshalText() ([]byte, error)

func (Hash) String

func (h Hash) String() string

func (*Hash) UnmarshalJSON

func (h *Hash) UnmarshalJSON(input []byte) error

func (*Hash) UnmarshalText

func (h *Hash) UnmarshalText(input []byte) error

type PublicKey

type PublicKey [48]byte

Public key types and methods

func HexToPubkey

func HexToPubkey(s string) (ret PublicKey, err error)

func (*PublicKey) FromSlice

func (p *PublicKey) FromSlice(x []byte) error

func (PublicKey) MarshalText

func (p PublicKey) MarshalText() ([]byte, error)

func (PublicKey) String

func (p PublicKey) String() string

func (*PublicKey) UnmarshalJSON

func (p *PublicKey) UnmarshalJSON(input []byte) error

func (*PublicKey) UnmarshalText

func (p *PublicKey) UnmarshalText(input []byte) error

type Root

type Root = Hash

Hash types and methods

type Signature

type Signature [96]byte

Signature types and methods

func (*Signature) FromSlice

func (s *Signature) FromSlice(x []byte) error

func (Signature) MarshalText

func (s Signature) MarshalText() ([]byte, error)

func (Signature) String

func (s Signature) String() string

func (*Signature) UnmarshalJSON

func (s *Signature) UnmarshalJSON(input []byte) error

func (*Signature) UnmarshalText

func (s *Signature) UnmarshalText(input []byte) error

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) GetTree

func (v *VersionedBeaconBlock) GetTree() (*ssz.Node, 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 (*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

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 (*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 (*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

Jump to

Keyboard shortcuts

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