Documentation
¶
Index ¶
- type Encoder
- func (e *Encoder) EncodeBlockJSON(block *spec.VersionedSignedBeaconBlock) ([]byte, error)
- func (e *Encoder) EncodeBlockSSZ(block *spec.VersionedSignedBeaconBlock) ([]byte, error)
- func (e *Encoder) EncodeStateSSZ(beaconState *spec.VersionedBeaconState) ([]byte, error)
- func (e *Encoder) GetBlockRoot(block *spec.VersionedSignedBeaconBlock) (root phase0.Root, err error)
- func (e *Encoder) GetStateRoot(beaconState *spec.VersionedBeaconState) (root phase0.Root, err error)
- func (e *Encoder) SetSpec(newSpec *state.Spec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) EncodeBlockJSON ¶
func (e *Encoder) EncodeBlockJSON(block *spec.VersionedSignedBeaconBlock) ([]byte, error)
func (*Encoder) EncodeBlockSSZ ¶
func (e *Encoder) EncodeBlockSSZ(block *spec.VersionedSignedBeaconBlock) ([]byte, error)
func (*Encoder) EncodeStateSSZ ¶
func (e *Encoder) EncodeStateSSZ(beaconState *spec.VersionedBeaconState) ([]byte, error)
func (*Encoder) GetBlockRoot ¶
func (*Encoder) GetStateRoot ¶
Click to show internal directories.
Click to hide internal directories.