Documentation ¶
Index ¶
- Constants
- type BlobsBundle
- type BuilderBid
- func (b *BuilderBid) Build(spec *beacon.Spec, ed *api.ExecutableData, bb *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
- type UnblindedResponseData
Constants ¶
View Source
const Version = "deneb"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobsBundle ¶
type BlobsBundle struct { *deneb.BlobsBundle Source *api.BlobsBundleV1 }
func (*BlobsBundle) FromAPI ¶
func (bb *BlobsBundle) FromAPI(spec *beacon.Spec, blobsBundle *api.BlobsBundleV1) error
func (*BlobsBundle) ToAPI ¶
func (bb *BlobsBundle) ToAPI() (*api.BlobsBundleV1, error)
type BuilderBid ¶
type BuilderBid struct { Payload *ExecutionPayload `json:"-" yaml:"-"` Header *deneb.ExecutionPayloadHeader `json:"header" yaml:"header"` BlobsBundle *BlobsBundle `json:"-" yaml:"-"` BlobKZGCommitments *beacon.KZGCommitments `json:"blob_kzg_commitments" yaml:"blob_kzg_commitments"` Value view.Uint256View `json:"value" yaml:"value"` PubKey beacon.BLSPubkey `json:"pubkey" yaml:"pubkey"` common.BuilderBidContext `json:"-" yaml:"-"` }
func (*BuilderBid) Build ¶
func (b *BuilderBid) Build( spec *beacon.Spec, ed *api.ExecutableData, bb *api.BlobsBundleV1, parentBlockRoot tree.Root, slot beacon.Slot, proposerIndex beacon.ValidatorIndex, ) error
func (*BuilderBid) FullBlobsBundle ¶
func (b *BuilderBid) FullBlobsBundle() common.BlobsBundle
func (*BuilderBid) FullPayload ¶
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 ¶
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 ¶
func (b *BuilderBid) Version() string
type ExecutionPayload ¶
type ExecutionPayload struct { *deneb.ExecutionPayload Source *api.ExecutableData BeaconRoot *tree.Root }
func (*ExecutionPayload) FromExecutableData ¶
func (p *ExecutionPayload) FromExecutableData(ed *api.ExecutableData, beaconRoot *tree.Root) error
func (*ExecutionPayload) GetBlockHash ¶
func (p *ExecutionPayload) GetBlockHash() tree.Root
func (*ExecutionPayload) ToExecutableData ¶
func (p *ExecutionPayload) ToExecutableData() (*api.ExecutableData, *el_common.Hash, error)
type SignedBeaconResponse ¶ added in v1.2.0
type SignedBeaconResponse deneb.SignedBlindedBeaconBlock
func (*SignedBeaconResponse) BlockSignature ¶ added in v1.2.0
func (s *SignedBeaconResponse) BlockSignature() *beacon.BLSSignature
func (*SignedBeaconResponse) ExecutionPayloadHash ¶ added in v1.2.0
func (s *SignedBeaconResponse) ExecutionPayloadHash() el_common.Hash
func (*SignedBeaconResponse) ProposerIndex ¶ added in v1.2.0
func (s *SignedBeaconResponse) ProposerIndex() beacon.ValidatorIndex
func (*SignedBeaconResponse) Root ¶ added in v1.2.0
func (s *SignedBeaconResponse) Root(spec *beacon.Spec) tree.Root
func (*SignedBeaconResponse) Slot ¶ added in v1.2.0
func (s *SignedBeaconResponse) Slot() beacon.Slot
func (*SignedBeaconResponse) StateRoot ¶ added in v1.2.0
func (s *SignedBeaconResponse) StateRoot() tree.Root
type UnblindedResponseData ¶
type UnblindedResponseData struct { ExecutionPayload *deneb.ExecutionPayload `json:"execution_payload" yaml:"execution_payload"` BlobsBundle *deneb.BlobsBundle `json:"blobs_bundle" yaml:"blobs_bundle"` }
Click to show internal directories.
Click to hide internal directories.