4 "github.com/vapor/crypto/ed25519/chainkd"
5 chainjson "github.com/vapor/encoding/json"
8 // serflag variables for input types.
10 DelegateInfoType uint8 = iota
16 type TypedData interface {
20 // DELEGATE_IDS PUBKEY SIG(block.time)
21 type DelegateInfoList struct {
24 SigTime []chainjson.HexBytes `json:"sig_time"`
27 func (d *DelegateInfoList) DataType() uint8 { return DelegateInfoType }
29 type RegisterForgerData struct {
30 Name string `json:"name"`
33 func (d *RegisterForgerData) DataType() uint8 { return RegisterType }
35 type VoteForgerData struct {
36 Forgers []string `json:"Forgers"`
39 func (d *VoteForgerData) DataType() uint8 { return VoteType }
41 type CancelVoteForgerData struct {
42 Forgers []string `json:"Forgers"`
45 func (d *CancelVoteForgerData) DataType() uint8 { return CancelVoteType }