Documentation
¶
Index ¶
- type ROMessage
- func (r *ROMessage) BeaconBlockRoot() [32]byte
- func (r *ROMessage) BlobDataAvailable() bool
- func (r *ROMessage) PayloadPresent() bool
- func (r *ROMessage) Signature() [96]byte
- func (r *ROMessage) SigningRoot(domain []byte) ([32]byte, error)
- func (r *ROMessage) Slot() primitives.Slot
- func (r *ROMessage) ValidatorIndex() primitives.ValidatorIndex
- type VerifiedROMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ROMessage ¶
type ROMessage struct {
// contains filtered or unexported fields
}
ROMessage represents a read-only payload attestation message.
func NewReadOnly ¶
func NewReadOnly(m *ethpb.PayloadAttestationMessage) (ROMessage, error)
NewReadOnly creates a new ReadOnly instance after validating the message.
func (*ROMessage) BeaconBlockRoot ¶
BeaconBlockRoot returns the beacon block root from the payload attestation message.
func (*ROMessage) BlobDataAvailable ¶
BlobDataAvailable returns whether blob data was available.
func (*ROMessage) PayloadPresent ¶
PayloadPresent returns whether the payload was present.
func (*ROMessage) SigningRoot ¶
SigningRoot returns the signing root from the payload attestation message.
func (*ROMessage) Slot ¶
func (r *ROMessage) Slot() primitives.Slot
Slot returns the slot from the payload attestation message.
func (*ROMessage) ValidatorIndex ¶
func (r *ROMessage) ValidatorIndex() primitives.ValidatorIndex
ValidatorIndex returns the validator index from the payload attestation message.
type VerifiedROMessage ¶
type VerifiedROMessage struct {
ROMessage
}
VerifiedROMessage represents a verified read-only payload attestation message.
func NewVerifiedROMessage ¶
func NewVerifiedROMessage(r ROMessage) VerifiedROMessage
NewVerifiedROMessage creates a new VerifiedROMessage instance after validating the message.