common

package
v0.6.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 27, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProcessStatus_name = map[int32]string{
	0:  "WAIT",
	1:  "MAKE_LEAGUE",
	2:  "MAKE_JOIN_TX",
	3:  "MAKE_BLOCK",
	4:  "LEAGUE_BROADCASTING",
	5:  "VOTE_START",
	6:  "VOTE_COMPLETE",
	7:  "REJECT",
	8:  "SEND_BLOCK",
	9:  "SEND_BLOCK_WAIT",
	10: "REQ_FAIRNODE_SIGN",
	11: "FINALIZE",
}
View Source
var ProcessStatus_value = map[string]int32{
	"WAIT":                0,
	"MAKE_LEAGUE":         1,
	"MAKE_JOIN_TX":        2,
	"MAKE_BLOCK":          3,
	"LEAGUE_BROADCASTING": 4,
	"VOTE_START":          5,
	"VOTE_COMPLETE":       6,
	"REJECT":              7,
	"SEND_BLOCK":          8,
	"SEND_BLOCK_WAIT":     9,
	"REQ_FAIRNODE_SIGN":   10,
	"FINALIZE":            11,
}
View Source
var Status_name = map[int32]string{
	0: "SUCCESS",
	1: "FAIL",
}
View Source
var Status_value = map[string]int32{
	"SUCCESS": 0,
	"FAIL":    1,
}

Functions

This section is empty.

Types

type FairnodeMessage

type FairnodeMessage struct {
	Msg                  []*SyncMessage `protobuf:"bytes,1,rep,name=msg,proto3" json:"msg,omitempty"`
	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
	XXX_unrecognized     []byte         `json:"-"`
	XXX_sizecache        int32          `json:"-"`
}

func (*FairnodeMessage) Descriptor

func (*FairnodeMessage) Descriptor() ([]byte, []int)

func (*FairnodeMessage) GetMsg

func (m *FairnodeMessage) GetMsg() []*SyncMessage

func (*FairnodeMessage) ProtoMessage

func (*FairnodeMessage) ProtoMessage()

func (*FairnodeMessage) Reset

func (m *FairnodeMessage) Reset()

func (*FairnodeMessage) String

func (m *FairnodeMessage) String() string

func (*FairnodeMessage) XXX_DiscardUnknown

func (m *FairnodeMessage) XXX_DiscardUnknown()

func (*FairnodeMessage) XXX_Marshal

func (m *FairnodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FairnodeMessage) XXX_Merge

func (m *FairnodeMessage) XXX_Merge(src proto.Message)

func (*FairnodeMessage) XXX_Size

func (m *FairnodeMessage) XXX_Size() int

func (*FairnodeMessage) XXX_Unmarshal

func (m *FairnodeMessage) XXX_Unmarshal(b []byte) error

type HeartBeat

type HeartBeat struct {
	Enode                string   `protobuf:"bytes,1,opt,name=enode,proto3" json:"enode,omitempty"`
	MinerAddress         string   `protobuf:"bytes,2,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	ChainID              string   `protobuf:"bytes,3,opt,name=chainID,proto3" json:"chainID,omitempty"`
	NodeVersion          string   `protobuf:"bytes,4,opt,name=nodeVersion,proto3" json:"nodeVersion,omitempty"`
	Head                 string   `protobuf:"bytes,5,opt,name=head,proto3" json:"head,omitempty"`
	Port                 int64    `protobuf:"varint,6,opt,name=port,proto3" json:"port,omitempty"`
	Sign                 []byte   `protobuf:"bytes,7,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*HeartBeat) Descriptor

func (*HeartBeat) Descriptor() ([]byte, []int)

func (*HeartBeat) GetChainID

func (m *HeartBeat) GetChainID() string

func (*HeartBeat) GetEnode

func (m *HeartBeat) GetEnode() string

func (*HeartBeat) GetHead

func (m *HeartBeat) GetHead() string

func (*HeartBeat) GetMinerAddress

func (m *HeartBeat) GetMinerAddress() string

func (*HeartBeat) GetNodeVersion

func (m *HeartBeat) GetNodeVersion() string

func (*HeartBeat) GetPort

func (m *HeartBeat) GetPort() int64

func (*HeartBeat) GetSign

func (m *HeartBeat) GetSign() []byte

func (*HeartBeat) ProtoMessage

func (*HeartBeat) ProtoMessage()

func (*HeartBeat) Reset

func (m *HeartBeat) Reset()

func (*HeartBeat) String

func (m *HeartBeat) String() string

func (*HeartBeat) XXX_DiscardUnknown

func (m *HeartBeat) XXX_DiscardUnknown()

func (*HeartBeat) XXX_Marshal

func (m *HeartBeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*HeartBeat) XXX_Merge

func (m *HeartBeat) XXX_Merge(src proto.Message)

func (*HeartBeat) XXX_Size

func (m *HeartBeat) XXX_Size() int

func (*HeartBeat) XXX_Unmarshal

func (m *HeartBeat) XXX_Unmarshal(b []byte) error

type Participate

type Participate struct {
	OtprnHash            []byte   `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	Enode                string   `protobuf:"bytes,2,opt,name=enode,proto3" json:"enode,omitempty"`
	MinerAddress         string   `protobuf:"bytes,3,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	Sign                 []byte   `protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Participate) Descriptor

func (*Participate) Descriptor() ([]byte, []int)

func (*Participate) GetEnode

func (m *Participate) GetEnode() string

func (*Participate) GetMinerAddress

func (m *Participate) GetMinerAddress() string

func (*Participate) GetOtprnHash

func (m *Participate) GetOtprnHash() []byte

func (*Participate) GetSign

func (m *Participate) GetSign() []byte

func (*Participate) ProtoMessage

func (*Participate) ProtoMessage()

func (*Participate) Reset

func (m *Participate) Reset()

func (*Participate) String

func (m *Participate) String() string

func (*Participate) XXX_DiscardUnknown

func (m *Participate) XXX_DiscardUnknown()

func (*Participate) XXX_Marshal

func (m *Participate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Participate) XXX_Merge

func (m *Participate) XXX_Merge(src proto.Message)

func (*Participate) XXX_Size

func (m *Participate) XXX_Size() int

func (*Participate) XXX_Unmarshal

func (m *Participate) XXX_Unmarshal(b []byte) error

type ProcessMessage

type ProcessMessage struct {
	Code                 ProcessStatus `protobuf:"varint,1,opt,name=code,proto3,enum=common.ProcessStatus" json:"code,omitempty"`
	CurrentBlockNum      []byte        `protobuf:"bytes,2,opt,name=currentBlockNum,proto3" json:"currentBlockNum,omitempty"`
	Sign                 []byte        `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ProcessMessage) Descriptor

func (*ProcessMessage) Descriptor() ([]byte, []int)

func (*ProcessMessage) GetCode

func (m *ProcessMessage) GetCode() ProcessStatus

func (*ProcessMessage) GetCurrentBlockNum

func (m *ProcessMessage) GetCurrentBlockNum() []byte

func (*ProcessMessage) GetSign

func (m *ProcessMessage) GetSign() []byte

func (*ProcessMessage) ProtoMessage

func (*ProcessMessage) ProtoMessage()

func (*ProcessMessage) Reset

func (m *ProcessMessage) Reset()

func (*ProcessMessage) String

func (m *ProcessMessage) String() string

func (*ProcessMessage) XXX_DiscardUnknown

func (m *ProcessMessage) XXX_DiscardUnknown()

func (*ProcessMessage) XXX_Marshal

func (m *ProcessMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ProcessMessage) XXX_Merge

func (m *ProcessMessage) XXX_Merge(src proto.Message)

func (*ProcessMessage) XXX_Size

func (m *ProcessMessage) XXX_Size() int

func (*ProcessMessage) XXX_Unmarshal

func (m *ProcessMessage) XXX_Unmarshal(b []byte) error

type ProcessStatus

type ProcessStatus int32
const (
	ProcessStatus_WAIT                ProcessStatus = 0
	ProcessStatus_MAKE_LEAGUE         ProcessStatus = 1
	ProcessStatus_MAKE_JOIN_TX        ProcessStatus = 2
	ProcessStatus_MAKE_BLOCK          ProcessStatus = 3
	ProcessStatus_LEAGUE_BROADCASTING ProcessStatus = 4
	ProcessStatus_VOTE_START          ProcessStatus = 5
	ProcessStatus_VOTE_COMPLETE       ProcessStatus = 6
	ProcessStatus_REJECT              ProcessStatus = 7
	ProcessStatus_SEND_BLOCK          ProcessStatus = 8
	ProcessStatus_SEND_BLOCK_WAIT     ProcessStatus = 9
	ProcessStatus_REQ_FAIRNODE_SIGN   ProcessStatus = 10
	ProcessStatus_FINALIZE            ProcessStatus = 11
)

func (ProcessStatus) EnumDescriptor

func (ProcessStatus) EnumDescriptor() ([]byte, []int)

func (ProcessStatus) String

func (x ProcessStatus) String() string

type ReqBlock

type ReqBlock struct {
	Block                []byte   `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Sign                 []byte   `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

블록 요청

func (*ReqBlock) Descriptor

func (*ReqBlock) Descriptor() ([]byte, []int)

func (*ReqBlock) GetAddress

func (m *ReqBlock) GetAddress() string

func (*ReqBlock) GetBlock

func (m *ReqBlock) GetBlock() []byte

func (*ReqBlock) GetSign

func (m *ReqBlock) GetSign() []byte

func (*ReqBlock) ProtoMessage

func (*ReqBlock) ProtoMessage()

func (*ReqBlock) Reset

func (m *ReqBlock) Reset()

func (*ReqBlock) String

func (m *ReqBlock) String() string

func (*ReqBlock) XXX_DiscardUnknown

func (m *ReqBlock) XXX_DiscardUnknown()

func (*ReqBlock) XXX_Marshal

func (m *ReqBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqBlock) XXX_Merge

func (m *ReqBlock) XXX_Merge(src proto.Message)

func (*ReqBlock) XXX_Size

func (m *ReqBlock) XXX_Size() int

func (*ReqBlock) XXX_Unmarshal

func (m *ReqBlock) XXX_Unmarshal(b []byte) error

type ReqConfirmSeal

type ReqConfirmSeal struct {
	OtprnHash            []byte   `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	BlockHash            []byte   `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	VoteHash             []byte   `protobuf:"bytes,3,opt,name=voteHash,proto3" json:"voteHash,omitempty"`
	Address              string   `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	Sign                 []byte   `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

블록 실링 확인 요청

func (*ReqConfirmSeal) Descriptor

func (*ReqConfirmSeal) Descriptor() ([]byte, []int)

func (*ReqConfirmSeal) GetAddress

func (m *ReqConfirmSeal) GetAddress() string

func (*ReqConfirmSeal) GetBlockHash

func (m *ReqConfirmSeal) GetBlockHash() []byte

func (*ReqConfirmSeal) GetOtprnHash

func (m *ReqConfirmSeal) GetOtprnHash() []byte

func (*ReqConfirmSeal) GetSign

func (m *ReqConfirmSeal) GetSign() []byte

func (*ReqConfirmSeal) GetVoteHash

func (m *ReqConfirmSeal) GetVoteHash() []byte

func (*ReqConfirmSeal) ProtoMessage

func (*ReqConfirmSeal) ProtoMessage()

func (*ReqConfirmSeal) Reset

func (m *ReqConfirmSeal) Reset()

func (*ReqConfirmSeal) String

func (m *ReqConfirmSeal) String() string

func (*ReqConfirmSeal) XXX_DiscardUnknown

func (m *ReqConfirmSeal) XXX_DiscardUnknown()

func (*ReqConfirmSeal) XXX_Marshal

func (m *ReqConfirmSeal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqConfirmSeal) XXX_Merge

func (m *ReqConfirmSeal) XXX_Merge(src proto.Message)

func (*ReqConfirmSeal) XXX_Size

func (m *ReqConfirmSeal) XXX_Size() int

func (*ReqConfirmSeal) XXX_Unmarshal

func (m *ReqConfirmSeal) XXX_Unmarshal(b []byte) error

type ReqFairnodeSign

type ReqFairnodeSign struct {
	OtprnHash            []byte   `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	BlockHash            []byte   `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	VoteHash             []byte   `protobuf:"bytes,3,opt,name=voteHash,proto3" json:"voteHash,omitempty"`
	Address              string   `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"`
	Sign                 []byte   `protobuf:"bytes,5,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

블록 서명 요청

func (*ReqFairnodeSign) Descriptor

func (*ReqFairnodeSign) Descriptor() ([]byte, []int)

func (*ReqFairnodeSign) GetAddress

func (m *ReqFairnodeSign) GetAddress() string

func (*ReqFairnodeSign) GetBlockHash

func (m *ReqFairnodeSign) GetBlockHash() []byte

func (*ReqFairnodeSign) GetOtprnHash

func (m *ReqFairnodeSign) GetOtprnHash() []byte

func (*ReqFairnodeSign) GetSign

func (m *ReqFairnodeSign) GetSign() []byte

func (*ReqFairnodeSign) GetVoteHash

func (m *ReqFairnodeSign) GetVoteHash() []byte

func (*ReqFairnodeSign) ProtoMessage

func (*ReqFairnodeSign) ProtoMessage()

func (*ReqFairnodeSign) Reset

func (m *ReqFairnodeSign) Reset()

func (*ReqFairnodeSign) String

func (m *ReqFairnodeSign) String() string

func (*ReqFairnodeSign) XXX_DiscardUnknown

func (m *ReqFairnodeSign) XXX_DiscardUnknown()

func (*ReqFairnodeSign) XXX_Marshal

func (m *ReqFairnodeSign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqFairnodeSign) XXX_Merge

func (m *ReqFairnodeSign) XXX_Merge(src proto.Message)

func (*ReqFairnodeSign) XXX_Size

func (m *ReqFairnodeSign) XXX_Size() int

func (*ReqFairnodeSign) XXX_Unmarshal

func (m *ReqFairnodeSign) XXX_Unmarshal(b []byte) error

type ReqLeague

type ReqLeague struct {
	OtprnHash            []byte   `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	Enode                string   `protobuf:"bytes,2,opt,name=enode,proto3" json:"enode,omitempty"`
	MinerAddress         string   `protobuf:"bytes,3,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	Sign                 []byte   `protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

리그 요청

func (*ReqLeague) Descriptor

func (*ReqLeague) Descriptor() ([]byte, []int)

func (*ReqLeague) GetEnode

func (m *ReqLeague) GetEnode() string

func (*ReqLeague) GetMinerAddress

func (m *ReqLeague) GetMinerAddress() string

func (*ReqLeague) GetOtprnHash

func (m *ReqLeague) GetOtprnHash() []byte

func (*ReqLeague) GetSign

func (m *ReqLeague) GetSign() []byte

func (*ReqLeague) ProtoMessage

func (*ReqLeague) ProtoMessage()

func (*ReqLeague) Reset

func (m *ReqLeague) Reset()

func (*ReqLeague) String

func (m *ReqLeague) String() string

func (*ReqLeague) XXX_DiscardUnknown

func (m *ReqLeague) XXX_DiscardUnknown()

func (*ReqLeague) XXX_Marshal

func (m *ReqLeague) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqLeague) XXX_Merge

func (m *ReqLeague) XXX_Merge(src proto.Message)

func (*ReqLeague) XXX_Size

func (m *ReqLeague) XXX_Size() int

func (*ReqLeague) XXX_Unmarshal

func (m *ReqLeague) XXX_Unmarshal(b []byte) error

type ReqOtprn

type ReqOtprn struct {
	Enode                string   `protobuf:"bytes,1,opt,name=enode,proto3" json:"enode,omitempty"`
	MinerAddress         string   `protobuf:"bytes,2,opt,name=minerAddress,proto3" json:"minerAddress,omitempty"`
	Sign                 []byte   `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

OTRPN 요청

func (*ReqOtprn) Descriptor

func (*ReqOtprn) Descriptor() ([]byte, []int)

func (*ReqOtprn) GetEnode

func (m *ReqOtprn) GetEnode() string

func (*ReqOtprn) GetMinerAddress

func (m *ReqOtprn) GetMinerAddress() string

func (*ReqOtprn) GetSign

func (m *ReqOtprn) GetSign() []byte

func (*ReqOtprn) ProtoMessage

func (*ReqOtprn) ProtoMessage()

func (*ReqOtprn) Reset

func (m *ReqOtprn) Reset()

func (*ReqOtprn) String

func (m *ReqOtprn) String() string

func (*ReqOtprn) XXX_DiscardUnknown

func (m *ReqOtprn) XXX_DiscardUnknown()

func (*ReqOtprn) XXX_Marshal

func (m *ReqOtprn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqOtprn) XXX_Merge

func (m *ReqOtprn) XXX_Merge(src proto.Message)

func (*ReqOtprn) XXX_Size

func (m *ReqOtprn) XXX_Size() int

func (*ReqOtprn) XXX_Unmarshal

func (m *ReqOtprn) XXX_Unmarshal(b []byte) error

type ReqVoteResult

type ReqVoteResult struct {
	OtprnHash            []byte   `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	Address              string   `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Sign                 []byte   `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

투표 결과 요청

func (*ReqVoteResult) Descriptor

func (*ReqVoteResult) Descriptor() ([]byte, []int)

func (*ReqVoteResult) GetAddress

func (m *ReqVoteResult) GetAddress() string

func (*ReqVoteResult) GetOtprnHash

func (m *ReqVoteResult) GetOtprnHash() []byte

func (*ReqVoteResult) GetSign

func (m *ReqVoteResult) GetSign() []byte

func (*ReqVoteResult) ProtoMessage

func (*ReqVoteResult) ProtoMessage()

func (*ReqVoteResult) Reset

func (m *ReqVoteResult) Reset()

func (*ReqVoteResult) String

func (m *ReqVoteResult) String() string

func (*ReqVoteResult) XXX_DiscardUnknown

func (m *ReqVoteResult) XXX_DiscardUnknown()

func (*ReqVoteResult) XXX_Marshal

func (m *ReqVoteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ReqVoteResult) XXX_Merge

func (m *ReqVoteResult) XXX_Merge(src proto.Message)

func (*ReqVoteResult) XXX_Size

func (m *ReqVoteResult) XXX_Size() int

func (*ReqVoteResult) XXX_Unmarshal

func (m *ReqVoteResult) XXX_Unmarshal(b []byte) error

type ResConfirmSeal

type ResConfirmSeal struct {
	Code                 ProcessStatus `protobuf:"varint,1,opt,name=code,proto3,enum=common.ProcessStatus" json:"code,omitempty"`
	Sign                 []byte        `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*ResConfirmSeal) Descriptor

func (*ResConfirmSeal) Descriptor() ([]byte, []int)

func (*ResConfirmSeal) GetCode

func (m *ResConfirmSeal) GetCode() ProcessStatus

func (*ResConfirmSeal) GetSign

func (m *ResConfirmSeal) GetSign() []byte

func (*ResConfirmSeal) ProtoMessage

func (*ResConfirmSeal) ProtoMessage()

func (*ResConfirmSeal) Reset

func (m *ResConfirmSeal) Reset()

func (*ResConfirmSeal) String

func (m *ResConfirmSeal) String() string

func (*ResConfirmSeal) XXX_DiscardUnknown

func (m *ResConfirmSeal) XXX_DiscardUnknown()

func (*ResConfirmSeal) XXX_Marshal

func (m *ResConfirmSeal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResConfirmSeal) XXX_Merge

func (m *ResConfirmSeal) XXX_Merge(src proto.Message)

func (*ResConfirmSeal) XXX_Size

func (m *ResConfirmSeal) XXX_Size() int

func (*ResConfirmSeal) XXX_Unmarshal

func (m *ResConfirmSeal) XXX_Unmarshal(b []byte) error

type ResFairnodeSign

type ResFairnodeSign struct {
	Signature            []byte   `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	Sign                 []byte   `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResFairnodeSign) Descriptor

func (*ResFairnodeSign) Descriptor() ([]byte, []int)

func (*ResFairnodeSign) GetSign

func (m *ResFairnodeSign) GetSign() []byte

func (*ResFairnodeSign) GetSignature

func (m *ResFairnodeSign) GetSignature() []byte

func (*ResFairnodeSign) ProtoMessage

func (*ResFairnodeSign) ProtoMessage()

func (*ResFairnodeSign) Reset

func (m *ResFairnodeSign) Reset()

func (*ResFairnodeSign) String

func (m *ResFairnodeSign) String() string

func (*ResFairnodeSign) XXX_DiscardUnknown

func (m *ResFairnodeSign) XXX_DiscardUnknown()

func (*ResFairnodeSign) XXX_Marshal

func (m *ResFairnodeSign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResFairnodeSign) XXX_Merge

func (m *ResFairnodeSign) XXX_Merge(src proto.Message)

func (*ResFairnodeSign) XXX_Size

func (m *ResFairnodeSign) XXX_Size() int

func (*ResFairnodeSign) XXX_Unmarshal

func (m *ResFairnodeSign) XXX_Unmarshal(b []byte) error

type ResLeague

type ResLeague struct {
	Result               Status   `protobuf:"varint,1,opt,name=result,proto3,enum=common.Status" json:"result,omitempty"`
	Enodes               []string `protobuf:"bytes,2,rep,name=enodes,proto3" json:"enodes,omitempty"`
	Sign                 []byte   `protobuf:"bytes,3,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResLeague) Descriptor

func (*ResLeague) Descriptor() ([]byte, []int)

func (*ResLeague) GetEnodes

func (m *ResLeague) GetEnodes() []string

func (*ResLeague) GetResult

func (m *ResLeague) GetResult() Status

func (*ResLeague) GetSign

func (m *ResLeague) GetSign() []byte

func (*ResLeague) ProtoMessage

func (*ResLeague) ProtoMessage()

func (*ResLeague) Reset

func (m *ResLeague) Reset()

func (*ResLeague) String

func (m *ResLeague) String() string

func (*ResLeague) XXX_DiscardUnknown

func (m *ResLeague) XXX_DiscardUnknown()

func (*ResLeague) XXX_Marshal

func (m *ResLeague) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResLeague) XXX_Merge

func (m *ResLeague) XXX_Merge(src proto.Message)

func (*ResLeague) XXX_Size

func (m *ResLeague) XXX_Size() int

func (*ResLeague) XXX_Unmarshal

func (m *ResLeague) XXX_Unmarshal(b []byte) error

type ResOtprn

type ResOtprn struct {
	Result               Status   `protobuf:"varint,1,opt,name=result,proto3,enum=common.Status" json:"result,omitempty"`
	Otprn                []byte   `protobuf:"bytes,2,opt,name=otprn,proto3" json:"otprn,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResOtprn) Descriptor

func (*ResOtprn) Descriptor() ([]byte, []int)

func (*ResOtprn) GetOtprn

func (m *ResOtprn) GetOtprn() []byte

func (*ResOtprn) GetResult

func (m *ResOtprn) GetResult() Status

func (*ResOtprn) ProtoMessage

func (*ResOtprn) ProtoMessage()

func (*ResOtprn) Reset

func (m *ResOtprn) Reset()

func (*ResOtprn) String

func (m *ResOtprn) String() string

func (*ResOtprn) XXX_DiscardUnknown

func (m *ResOtprn) XXX_DiscardUnknown()

func (*ResOtprn) XXX_Marshal

func (m *ResOtprn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResOtprn) XXX_Merge

func (m *ResOtprn) XXX_Merge(src proto.Message)

func (*ResOtprn) XXX_Size

func (m *ResOtprn) XXX_Size() int

func (*ResOtprn) XXX_Unmarshal

func (m *ResOtprn) XXX_Unmarshal(b []byte) error

type ResVoteResult

type ResVoteResult struct {
	Result               Status   `protobuf:"varint,1,opt,name=result,proto3,enum=common.Status" json:"result,omitempty"`
	BlockHash            string   `protobuf:"bytes,2,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	Voters               []*Vote  `protobuf:"bytes,3,rep,name=voters,proto3" json:"voters,omitempty"`
	Sign                 []byte   `protobuf:"bytes,4,opt,name=sign,proto3" json:"sign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*ResVoteResult) Descriptor

func (*ResVoteResult) Descriptor() ([]byte, []int)

func (*ResVoteResult) GetBlockHash

func (m *ResVoteResult) GetBlockHash() string

func (*ResVoteResult) GetResult

func (m *ResVoteResult) GetResult() Status

func (*ResVoteResult) GetSign

func (m *ResVoteResult) GetSign() []byte

func (*ResVoteResult) GetVoters

func (m *ResVoteResult) GetVoters() []*Vote

func (*ResVoteResult) ProtoMessage

func (*ResVoteResult) ProtoMessage()

func (*ResVoteResult) Reset

func (m *ResVoteResult) Reset()

func (*ResVoteResult) String

func (m *ResVoteResult) String() string

func (*ResVoteResult) XXX_DiscardUnknown

func (m *ResVoteResult) XXX_DiscardUnknown()

func (*ResVoteResult) XXX_Marshal

func (m *ResVoteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ResVoteResult) XXX_Merge

func (m *ResVoteResult) XXX_Merge(src proto.Message)

func (*ResVoteResult) XXX_Size

func (m *ResVoteResult) XXX_Size() int

func (*ResVoteResult) XXX_Unmarshal

func (m *ResVoteResult) XXX_Unmarshal(b []byte) error

type Status

type Status int32
const (
	Status_SUCCESS Status = 0
	Status_FAIL    Status = 1
)

func (Status) EnumDescriptor

func (Status) EnumDescriptor() ([]byte, []int)

func (Status) String

func (x Status) String() string

type SyncMessage

type SyncMessage struct {
	OtprnHash            []byte        `protobuf:"bytes,1,opt,name=otprnHash,proto3" json:"otprnHash,omitempty"`
	Code                 ProcessStatus `protobuf:"varint,2,opt,name=code,proto3,enum=common.ProcessStatus" json:"code,omitempty"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

func (*SyncMessage) Descriptor

func (*SyncMessage) Descriptor() ([]byte, []int)

func (*SyncMessage) GetCode

func (m *SyncMessage) GetCode() ProcessStatus

func (*SyncMessage) GetOtprnHash

func (m *SyncMessage) GetOtprnHash() []byte

func (*SyncMessage) ProtoMessage

func (*SyncMessage) ProtoMessage()

func (*SyncMessage) Reset

func (m *SyncMessage) Reset()

func (*SyncMessage) String

func (m *SyncMessage) String() string

func (*SyncMessage) XXX_DiscardUnknown

func (m *SyncMessage) XXX_DiscardUnknown()

func (*SyncMessage) XXX_Marshal

func (m *SyncMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SyncMessage) XXX_Merge

func (m *SyncMessage) XXX_Merge(src proto.Message)

func (*SyncMessage) XXX_Size

func (m *SyncMessage) XXX_Size() int

func (*SyncMessage) XXX_Unmarshal

func (m *SyncMessage) XXX_Unmarshal(b []byte) error

type Vote

type Vote struct {
	Header               []byte   `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	VoterAddress         string   `protobuf:"bytes,2,opt,name=voterAddress,proto3" json:"voterAddress,omitempty"`
	VoterSign            []byte   `protobuf:"bytes,3,opt,name=voterSign,proto3" json:"voterSign,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

투표

func (*Vote) Descriptor

func (*Vote) Descriptor() ([]byte, []int)

func (*Vote) GetHeader

func (m *Vote) GetHeader() []byte

func (*Vote) GetVoterAddress

func (m *Vote) GetVoterAddress() string

func (*Vote) GetVoterSign

func (m *Vote) GetVoterSign() []byte

func (*Vote) ProtoMessage

func (*Vote) ProtoMessage()

func (*Vote) Reset

func (m *Vote) Reset()

func (*Vote) String

func (m *Vote) String() string

func (*Vote) XXX_DiscardUnknown

func (m *Vote) XXX_DiscardUnknown()

func (*Vote) XXX_Marshal

func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Vote) XXX_Merge

func (m *Vote) XXX_Merge(src proto.Message)

func (*Vote) XXX_Size

func (m *Vote) XXX_Size() int

func (*Vote) XXX_Unmarshal

func (m *Vote) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL