Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteMsgsToNumber ¶
ByteMsgsToNumber converts byte messages to number value
func NumberToByteMsgs ¶
NumberToByteMsgs converts number value to byte messages
Types ¶
type PubkeySet ¶
PubkeySet contains oracle's pub key and keys for all rate
func (PubkeySet) MarshalJSON ¶
MarshalJSON serialize PubkeySet to JSON
func (*PubkeySet) ParseJSON ¶
func (pubset *PubkeySet) ParseJSON(pjson *PubkeySetJSON) error
ParseJSON parses PubkeySetJSON
func (*PubkeySet) UnmarshalJSON ¶
UnmarshalJSON deserialize JSON to PubkeySet
type PubkeySetJSON ¶
type PubkeySetJSON struct { Pubkey string `json:"pubkey"` CommittedRpoints []string `json:"rpoints"` }
PubkeySetJSON is serialized PubkeySet
type SignedMsg ¶
SignedMsg contains fixed messages and signatures
func (SignedMsg) MarshalJSON ¶
MarshalJSON serialize SignSet to JSON
func (*SignedMsg) UnmarshalJSON ¶
UnmarshalJSON deserialize JSON to SignedMsg
type SignedMsgJSON ¶
SignedMsgJSON is siged message in JSON format
Click to show internal directories.
Click to hide internal directories.