Documentation ¶
Index ¶
Constants ¶
View Source
const ValidatorPubkeyLength = 48 // bytes
Validator pubkey
View Source
const ValidatorSignatureLength = 96 // bytes
Validator signature
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidatorPubkey ¶
type ValidatorPubkey [ValidatorPubkeyLength]byte
func BytesToValidatorPubkey ¶
func BytesToValidatorPubkey(value []byte) ValidatorPubkey
func HexToValidatorPubkey ¶
func HexToValidatorPubkey(value string) (ValidatorPubkey, error)
func (ValidatorPubkey) MarshalJSON ¶
func (v ValidatorPubkey) MarshalJSON() ([]byte, error)
JSON encoding
func (ValidatorPubkey) String ¶
func (v ValidatorPubkey) String() string
func (*ValidatorPubkey) UnmarshalJSON ¶
func (v *ValidatorPubkey) UnmarshalJSON(data []byte) error
type ValidatorSignature ¶
type ValidatorSignature [ValidatorSignatureLength]byte
func BytesToValidatorSignature ¶
func BytesToValidatorSignature(value []byte) ValidatorSignature
func HexToValidatorSignature ¶
func HexToValidatorSignature(value string) (ValidatorSignature, error)
func (ValidatorSignature) MarshalJSON ¶
func (v ValidatorSignature) MarshalJSON() ([]byte, error)
JSON encoding
func (ValidatorSignature) String ¶
func (v ValidatorSignature) String() string
func (*ValidatorSignature) UnmarshalJSON ¶
func (v *ValidatorSignature) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.