Documentation
¶
Index ¶
- Constants
- type BuilderBid
- func (b *BuilderBid) Build(spec *beacon.Spec, ed *api.ExecutableData, _ *api.BlobsBundleV1, ...) error
- func (b *BuilderBid) FullBlobsBundle() common.BlobsBundle
- func (b *BuilderBid) FullPayload() common.ExecutionPayload
- func (b *BuilderBid) HashTreeRoot(spec *beacon.Spec, hFn tree.HashFn) tree.Root
- func (b *BuilderBid) SetPubKey(pk beacon.BLSPubkey)
- func (b *BuilderBid) SetValue(value *big.Int)
- func (b *BuilderBid) Sign(spec *beacon.Spec, domain beacon.BLSDomain, sk *blsu.SecretKey, ...) (*common.SignedBuilderBid, error)
- func (b *BuilderBid) ValidateReveal(publicKey *blsu.Pubkey, signedBeaconResponse common.SignedBeaconResponse, ...) (*common.UnblindedResponse, error)
- func (b *BuilderBid) Version() string
- type ExecutionPayload
- type SignedBeaconResponse
- func (s *SignedBeaconResponse) BlockSignature() *beacon.BLSSignature
- func (s *SignedBeaconResponse) ExecutionPayloadHash() el_common.Hash
- func (s *SignedBeaconResponse) ProposerIndex() beacon.ValidatorIndex
- func (s *SignedBeaconResponse) Root(spec *beacon.Spec) tree.Root
- func (s *SignedBeaconResponse) Slot() beacon.Slot
- func (s *SignedBeaconResponse) StateRoot() tree.Root
Constants ¶
View Source
const Version = "capella"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuilderBid ¶
type BuilderBid struct {
Payload *ExecutionPayload `json:"-" yaml:"-"`
Header *capella.ExecutionPayloadHeader `json:"header" yaml:"header"`
Value view.Uint256View `json:"value" yaml:"value"`
PubKey beacon.BLSPubkey `json:"pubkey" yaml:"pubkey"`
common.BuilderBidContext `json:"-" yaml:"-"`
}
func (*BuilderBid) Build ¶ added in v1.1.0
func (b *BuilderBid) Build( spec *beacon.Spec, ed *api.ExecutableData, _ *api.BlobsBundleV1, parentBlockRoot tree.Root, slot beacon.Slot, proposerIndex beacon.ValidatorIndex, ) error
func (*BuilderBid) FullBlobsBundle ¶ added in v1.1.0
func (b *BuilderBid) FullBlobsBundle() common.BlobsBundle
func (*BuilderBid) FullPayload ¶ added in v1.1.0
func (b *BuilderBid) FullPayload() common.ExecutionPayload
func (*BuilderBid) HashTreeRoot ¶
func (*BuilderBid) SetPubKey ¶
func (b *BuilderBid) SetPubKey(pk beacon.BLSPubkey)
func (*BuilderBid) SetValue ¶
func (b *BuilderBid) SetValue(value *big.Int)
func (*BuilderBid) ValidateReveal ¶ added in v1.1.0
func (b *BuilderBid) ValidateReveal( publicKey *blsu.Pubkey, signedBeaconResponse common.SignedBeaconResponse, spec *beacon.Spec, slot beacon.Slot, genesisValidatorsRoot *tree.Root, ) (*common.UnblindedResponse, error)
func (*BuilderBid) Version ¶ added in v1.1.0
func (b *BuilderBid) Version() string
type ExecutionPayload ¶
type ExecutionPayload struct {
*capella.ExecutionPayload
Source *api.ExecutableData
}
func (*ExecutionPayload) FromExecutableData ¶
func (p *ExecutionPayload) FromExecutableData(ed *api.ExecutableData, _ *tree.Root) error
func (*ExecutionPayload) GetBlockHash ¶
func (p *ExecutionPayload) GetBlockHash() tree.Root
func (*ExecutionPayload) ToExecutableData ¶ added in v1.1.0
func (p *ExecutionPayload) ToExecutableData() (*api.ExecutableData, *el_common.Hash, error)
type SignedBeaconResponse ¶ added in v1.1.0
type SignedBeaconResponse capella.SignedBlindedBeaconBlock
func (*SignedBeaconResponse) BlockSignature ¶ added in v1.1.0
func (s *SignedBeaconResponse) BlockSignature() *beacon.BLSSignature
func (*SignedBeaconResponse) ExecutionPayloadHash ¶ added in v1.1.0
func (s *SignedBeaconResponse) ExecutionPayloadHash() el_common.Hash
func (*SignedBeaconResponse) ProposerIndex ¶ added in v1.1.0
func (s *SignedBeaconResponse) ProposerIndex() beacon.ValidatorIndex
func (*SignedBeaconResponse) Root ¶ added in v1.1.0
func (s *SignedBeaconResponse) Root(spec *beacon.Spec) tree.Root
func (*SignedBeaconResponse) Slot ¶ added in v1.1.0
func (s *SignedBeaconResponse) Slot() beacon.Slot
func (*SignedBeaconResponse) StateRoot ¶ added in v1.1.0
func (s *SignedBeaconResponse) StateRoot() tree.Root
Click to show internal directories.
Click to hide internal directories.