Documentation ¶
Index ¶
Constants ¶
View Source
const (
MaxVoteProducersPerTransaction = 36
)
Variables ¶
View Source
var VoteTypes = []VoteType{ Delegate, CRC, }
Functions ¶
This section is empty.
Types ¶
type DefaultOutput ¶
type DefaultOutput struct { }
func (*DefaultOutput) Data ¶
func (o *DefaultOutput) Data() []byte
func (*DefaultOutput) Deserialize ¶
func (o *DefaultOutput) Deserialize(r io.Reader) error
func (*DefaultOutput) GetVersion ¶
func (o *DefaultOutput) GetVersion() byte
func (*DefaultOutput) Validate ¶
func (o *DefaultOutput) Validate() error
type Mapping ¶ added in v0.3.0
type Mapping struct { // Version indicates the version of Mapping payload. Version byte // OwnerPublicKey is the owner public key of the main chain producer. OwnerPublicKey []byte // SideProducerID indicates a piece of data represent the identity of the // side chain producer, whether it is a public key or address etc. SideProducerID []byte // Signature represents the signature of the mapping payload content. Signature []byte }
Mapping output payload is defined to mapping the main chain producer's owner public key to a side chain producer.
func (*Mapping) GetVersion ¶ added in v0.3.0
type VoteContent ¶
func (*VoteContent) Deserialize ¶
func (vc *VoteContent) Deserialize(r io.Reader, version byte) error
func (VoteContent) String ¶
func (vc VoteContent) String() string
type VoteOutput ¶
type VoteOutput struct { Version byte Contents []VoteContent }
func (*VoteOutput) Data ¶
func (o *VoteOutput) Data() []byte
func (*VoteOutput) Deserialize ¶
func (o *VoteOutput) Deserialize(r io.Reader) error
func (*VoteOutput) GetVersion ¶
func (o *VoteOutput) GetVersion() byte
func (VoteOutput) String ¶
func (o VoteOutput) String() string
func (*VoteOutput) Validate ¶
func (o *VoteOutput) Validate() error
Click to show internal directories.
Click to hide internal directories.