Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataAvailabilityHeader ¶
type DataAvailabilityHeader = core.DataAvailabilityHeader
type ExtendedHeader ¶
type ExtendedHeader struct {
RawHeader `json:"header"`
Commit *core.Commit `json:"commit"`
ValidatorSet *core.ValidatorSet `json:"validator_set"`
DAH *DataAvailabilityHeader `json:"dah"`
}
ExtendedHeader represents a wrapped "raw" header that includes information necessary for Celestia Nodes to be notified of new block headers and perform Data Availability Sampling.
func (*ExtendedHeader) MarshalJSON ¶
func (eh *ExtendedHeader) MarshalJSON() ([]byte, error)
MarshalJSON marshals an ExtendedHeader to JSON. The ValidatorSet is wrapped with amino encoding, to be able to unmarshal the crypto.PubKey type back from JSON.
func (*ExtendedHeader) UnmarshalJSON ¶
func (eh *ExtendedHeader) UnmarshalJSON(data []byte) error
UnmarshalJSON unmarshals an ExtendedHeader from JSON. The ValidatorSet is wrapped with amino encoding, to be able to unmarshal the crypto.PubKey type back from JSON.
Click to show internal directories.
Click to hide internal directories.