Documentation ¶
Index ¶
- Constants
- func BlockToLightClientHeader(block interfaces.ReadOnlySignedBeaconBlock) (*ethpbv2.LightClientHeaderContainer, error)
- func ComputeTransactionsRoot(payload interfaces.ExecutionData) ([]byte, error)
- func ComputeWithdrawalsRoot(payload interfaces.ExecutionData) ([]byte, error)
- func NewLightClientFinalityUpdateFromBeaconState(ctx context.Context, state state.BeaconState, ...) (*ethpbv2.LightClientFinalityUpdate, error)
- func NewLightClientOptimisticUpdateFromBeaconState(ctx context.Context, state state.BeaconState, ...) (*ethpbv2.LightClientOptimisticUpdate, error)
- func NewLightClientUpdateFromBeaconState(ctx context.Context, state state.BeaconState, ...) (*ethpbv2.LightClientUpdate, error)
Constants ¶
View Source
const (
FinalityBranchNumOfLeaves = 6
)
Variables ¶
This section is empty.
Functions ¶
func BlockToLightClientHeader ¶
func BlockToLightClientHeader(block interfaces.ReadOnlySignedBeaconBlock) (*ethpbv2.LightClientHeaderContainer, error)
func ComputeTransactionsRoot ¶
func ComputeTransactionsRoot(payload interfaces.ExecutionData) ([]byte, error)
func ComputeWithdrawalsRoot ¶
func ComputeWithdrawalsRoot(payload interfaces.ExecutionData) ([]byte, error)
func NewLightClientFinalityUpdateFromBeaconState ¶
func NewLightClientFinalityUpdateFromBeaconState( ctx context.Context, state state.BeaconState, block interfaces.ReadOnlySignedBeaconBlock, attestedState state.BeaconState, attestedBlock interfaces.ReadOnlySignedBeaconBlock, finalizedBlock interfaces.ReadOnlySignedBeaconBlock, ) (*ethpbv2.LightClientFinalityUpdate, error)
func NewLightClientOptimisticUpdateFromBeaconState ¶
func NewLightClientOptimisticUpdateFromBeaconState( ctx context.Context, state state.BeaconState, block interfaces.ReadOnlySignedBeaconBlock, attestedState state.BeaconState, attestedBlock interfaces.ReadOnlySignedBeaconBlock, ) (*ethpbv2.LightClientOptimisticUpdate, error)
func NewLightClientUpdateFromBeaconState ¶
func NewLightClientUpdateFromBeaconState( ctx context.Context, state state.BeaconState, block interfaces.ReadOnlySignedBeaconBlock, attestedState state.BeaconState, attestedBlock interfaces.ReadOnlySignedBeaconBlock, finalizedBlock interfaces.ReadOnlySignedBeaconBlock) (*ethpbv2.LightClientUpdate, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.