Documentation
¶
Index ¶
- Variables
- type FairnodeMessage
- func (*FairnodeMessage) Descriptor() ([]byte, []int)
- func (m *FairnodeMessage) GetMsg() []*SyncMessage
- func (*FairnodeMessage) ProtoMessage()
- func (m *FairnodeMessage) Reset()
- func (m *FairnodeMessage) String() string
- func (m *FairnodeMessage) XXX_DiscardUnknown()
- func (m *FairnodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FairnodeMessage) XXX_Merge(src proto.Message)
- func (m *FairnodeMessage) XXX_Size() int
- func (m *FairnodeMessage) XXX_Unmarshal(b []byte) error
- type HeartBeat
- func (*HeartBeat) Descriptor() ([]byte, []int)
- func (m *HeartBeat) GetChainID() string
- func (m *HeartBeat) GetEnode() string
- func (m *HeartBeat) GetHead() string
- func (m *HeartBeat) GetMinerAddress() string
- func (m *HeartBeat) GetNodeVersion() string
- func (m *HeartBeat) GetPort() int64
- func (m *HeartBeat) GetSign() []byte
- func (*HeartBeat) ProtoMessage()
- func (m *HeartBeat) Reset()
- func (m *HeartBeat) String() string
- func (m *HeartBeat) XXX_DiscardUnknown()
- func (m *HeartBeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HeartBeat) XXX_Merge(src proto.Message)
- func (m *HeartBeat) XXX_Size() int
- func (m *HeartBeat) XXX_Unmarshal(b []byte) error
- type Participate
- func (*Participate) Descriptor() ([]byte, []int)
- func (m *Participate) GetEnode() string
- func (m *Participate) GetMinerAddress() string
- func (m *Participate) GetOtprnHash() []byte
- func (m *Participate) GetSign() []byte
- func (*Participate) ProtoMessage()
- func (m *Participate) Reset()
- func (m *Participate) String() string
- func (m *Participate) XXX_DiscardUnknown()
- func (m *Participate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Participate) XXX_Merge(src proto.Message)
- func (m *Participate) XXX_Size() int
- func (m *Participate) XXX_Unmarshal(b []byte) error
- type ProcessMessage
- func (*ProcessMessage) Descriptor() ([]byte, []int)
- func (m *ProcessMessage) GetCode() ProcessStatus
- func (m *ProcessMessage) GetCurrentBlockNum() []byte
- func (m *ProcessMessage) GetSign() []byte
- func (*ProcessMessage) ProtoMessage()
- func (m *ProcessMessage) Reset()
- func (m *ProcessMessage) String() string
- func (m *ProcessMessage) XXX_DiscardUnknown()
- func (m *ProcessMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProcessMessage) XXX_Merge(src proto.Message)
- func (m *ProcessMessage) XXX_Size() int
- func (m *ProcessMessage) XXX_Unmarshal(b []byte) error
- type ProcessStatus
- type ReqBlock
- func (*ReqBlock) Descriptor() ([]byte, []int)
- func (m *ReqBlock) GetAddress() string
- func (m *ReqBlock) GetBlock() []byte
- func (m *ReqBlock) GetSign() []byte
- func (*ReqBlock) ProtoMessage()
- func (m *ReqBlock) Reset()
- func (m *ReqBlock) String() string
- func (m *ReqBlock) XXX_DiscardUnknown()
- func (m *ReqBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqBlock) XXX_Merge(src proto.Message)
- func (m *ReqBlock) XXX_Size() int
- func (m *ReqBlock) XXX_Unmarshal(b []byte) error
- type ReqConfirmSeal
- func (*ReqConfirmSeal) Descriptor() ([]byte, []int)
- func (m *ReqConfirmSeal) GetAddress() string
- func (m *ReqConfirmSeal) GetBlockHash() []byte
- func (m *ReqConfirmSeal) GetOtprnHash() []byte
- func (m *ReqConfirmSeal) GetSign() []byte
- func (m *ReqConfirmSeal) GetVoteHash() []byte
- func (*ReqConfirmSeal) ProtoMessage()
- func (m *ReqConfirmSeal) Reset()
- func (m *ReqConfirmSeal) String() string
- func (m *ReqConfirmSeal) XXX_DiscardUnknown()
- func (m *ReqConfirmSeal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqConfirmSeal) XXX_Merge(src proto.Message)
- func (m *ReqConfirmSeal) XXX_Size() int
- func (m *ReqConfirmSeal) XXX_Unmarshal(b []byte) error
- type ReqFairnodeSign
- func (*ReqFairnodeSign) Descriptor() ([]byte, []int)
- func (m *ReqFairnodeSign) GetAddress() string
- func (m *ReqFairnodeSign) GetBlockHash() []byte
- func (m *ReqFairnodeSign) GetOtprnHash() []byte
- func (m *ReqFairnodeSign) GetSign() []byte
- func (m *ReqFairnodeSign) GetVoteHash() []byte
- func (*ReqFairnodeSign) ProtoMessage()
- func (m *ReqFairnodeSign) Reset()
- func (m *ReqFairnodeSign) String() string
- func (m *ReqFairnodeSign) XXX_DiscardUnknown()
- func (m *ReqFairnodeSign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqFairnodeSign) XXX_Merge(src proto.Message)
- func (m *ReqFairnodeSign) XXX_Size() int
- func (m *ReqFairnodeSign) XXX_Unmarshal(b []byte) error
- type ReqLeague
- func (*ReqLeague) Descriptor() ([]byte, []int)
- func (m *ReqLeague) GetEnode() string
- func (m *ReqLeague) GetMinerAddress() string
- func (m *ReqLeague) GetOtprnHash() []byte
- func (m *ReqLeague) GetSign() []byte
- func (*ReqLeague) ProtoMessage()
- func (m *ReqLeague) Reset()
- func (m *ReqLeague) String() string
- func (m *ReqLeague) XXX_DiscardUnknown()
- func (m *ReqLeague) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqLeague) XXX_Merge(src proto.Message)
- func (m *ReqLeague) XXX_Size() int
- func (m *ReqLeague) XXX_Unmarshal(b []byte) error
- type ReqOtprn
- func (*ReqOtprn) Descriptor() ([]byte, []int)
- func (m *ReqOtprn) GetEnode() string
- func (m *ReqOtprn) GetMinerAddress() string
- func (m *ReqOtprn) GetSign() []byte
- func (*ReqOtprn) ProtoMessage()
- func (m *ReqOtprn) Reset()
- func (m *ReqOtprn) String() string
- func (m *ReqOtprn) XXX_DiscardUnknown()
- func (m *ReqOtprn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqOtprn) XXX_Merge(src proto.Message)
- func (m *ReqOtprn) XXX_Size() int
- func (m *ReqOtprn) XXX_Unmarshal(b []byte) error
- type ReqVoteResult
- func (*ReqVoteResult) Descriptor() ([]byte, []int)
- func (m *ReqVoteResult) GetAddress() string
- func (m *ReqVoteResult) GetOtprnHash() []byte
- func (m *ReqVoteResult) GetSign() []byte
- func (*ReqVoteResult) ProtoMessage()
- func (m *ReqVoteResult) Reset()
- func (m *ReqVoteResult) String() string
- func (m *ReqVoteResult) XXX_DiscardUnknown()
- func (m *ReqVoteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ReqVoteResult) XXX_Merge(src proto.Message)
- func (m *ReqVoteResult) XXX_Size() int
- func (m *ReqVoteResult) XXX_Unmarshal(b []byte) error
- type ResConfirmSeal
- func (*ResConfirmSeal) Descriptor() ([]byte, []int)
- func (m *ResConfirmSeal) GetCode() ProcessStatus
- func (m *ResConfirmSeal) GetSign() []byte
- func (*ResConfirmSeal) ProtoMessage()
- func (m *ResConfirmSeal) Reset()
- func (m *ResConfirmSeal) String() string
- func (m *ResConfirmSeal) XXX_DiscardUnknown()
- func (m *ResConfirmSeal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResConfirmSeal) XXX_Merge(src proto.Message)
- func (m *ResConfirmSeal) XXX_Size() int
- func (m *ResConfirmSeal) XXX_Unmarshal(b []byte) error
- type ResFairnodeSign
- func (*ResFairnodeSign) Descriptor() ([]byte, []int)
- func (m *ResFairnodeSign) GetSign() []byte
- func (m *ResFairnodeSign) GetSignature() []byte
- func (*ResFairnodeSign) ProtoMessage()
- func (m *ResFairnodeSign) Reset()
- func (m *ResFairnodeSign) String() string
- func (m *ResFairnodeSign) XXX_DiscardUnknown()
- func (m *ResFairnodeSign) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResFairnodeSign) XXX_Merge(src proto.Message)
- func (m *ResFairnodeSign) XXX_Size() int
- func (m *ResFairnodeSign) XXX_Unmarshal(b []byte) error
- type ResLeague
- func (*ResLeague) Descriptor() ([]byte, []int)
- func (m *ResLeague) GetEnodes() []string
- func (m *ResLeague) GetResult() Status
- func (m *ResLeague) GetSign() []byte
- func (*ResLeague) ProtoMessage()
- func (m *ResLeague) Reset()
- func (m *ResLeague) String() string
- func (m *ResLeague) XXX_DiscardUnknown()
- func (m *ResLeague) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResLeague) XXX_Merge(src proto.Message)
- func (m *ResLeague) XXX_Size() int
- func (m *ResLeague) XXX_Unmarshal(b []byte) error
- type ResOtprn
- func (*ResOtprn) Descriptor() ([]byte, []int)
- func (m *ResOtprn) GetOtprn() []byte
- func (m *ResOtprn) GetResult() Status
- func (*ResOtprn) ProtoMessage()
- func (m *ResOtprn) Reset()
- func (m *ResOtprn) String() string
- func (m *ResOtprn) XXX_DiscardUnknown()
- func (m *ResOtprn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResOtprn) XXX_Merge(src proto.Message)
- func (m *ResOtprn) XXX_Size() int
- func (m *ResOtprn) XXX_Unmarshal(b []byte) error
- type ResVoteResult
- func (*ResVoteResult) Descriptor() ([]byte, []int)
- func (m *ResVoteResult) GetBlockHash() string
- func (m *ResVoteResult) GetResult() Status
- func (m *ResVoteResult) GetSign() []byte
- func (m *ResVoteResult) GetVoters() []*Vote
- func (*ResVoteResult) ProtoMessage()
- func (m *ResVoteResult) Reset()
- func (m *ResVoteResult) String() string
- func (m *ResVoteResult) XXX_DiscardUnknown()
- func (m *ResVoteResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ResVoteResult) XXX_Merge(src proto.Message)
- func (m *ResVoteResult) XXX_Size() int
- func (m *ResVoteResult) XXX_Unmarshal(b []byte) error
- type Status
- type SyncMessage
- func (*SyncMessage) Descriptor() ([]byte, []int)
- func (m *SyncMessage) GetCode() ProcessStatus
- func (m *SyncMessage) GetOtprnHash() []byte
- func (*SyncMessage) ProtoMessage()
- func (m *SyncMessage) Reset()
- func (m *SyncMessage) String() string
- func (m *SyncMessage) XXX_DiscardUnknown()
- func (m *SyncMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SyncMessage) XXX_Merge(src proto.Message)
- func (m *SyncMessage) XXX_Size() int
- func (m *SyncMessage) XXX_Unmarshal(b []byte) error
- type Vote
- func (*Vote) Descriptor() ([]byte, []int)
- func (m *Vote) GetHeader() []byte
- func (m *Vote) GetVoterAddress() string
- func (m *Vote) GetVoterSign() []byte
- func (*Vote) ProtoMessage()
- func (m *Vote) Reset()
- func (m *Vote) String() string
- func (m *Vote) XXX_DiscardUnknown()
- func (m *Vote) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Vote) XXX_Merge(src proto.Message)
- func (m *Vote) XXX_Size() int
- func (m *Vote) XXX_Unmarshal(b []byte) error
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) GetChainID ¶
func (*HeartBeat) GetMinerAddress ¶
func (*HeartBeat) GetNodeVersion ¶
func (*HeartBeat) ProtoMessage ¶
func (*HeartBeat) ProtoMessage()
func (*HeartBeat) XXX_DiscardUnknown ¶
func (m *HeartBeat) XXX_DiscardUnknown()
func (*HeartBeat) XXX_Marshal ¶
func (*HeartBeat) XXX_Unmarshal ¶
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) GetAddress ¶
func (*ReqBlock) ProtoMessage ¶
func (*ReqBlock) ProtoMessage()
func (*ReqBlock) XXX_DiscardUnknown ¶
func (m *ReqBlock) XXX_DiscardUnknown()
func (*ReqBlock) XXX_Marshal ¶
func (*ReqBlock) XXX_Unmarshal ¶
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) GetMinerAddress ¶
func (*ReqLeague) GetOtprnHash ¶
func (*ReqLeague) ProtoMessage ¶
func (*ReqLeague) ProtoMessage()
func (*ReqLeague) XXX_DiscardUnknown ¶
func (m *ReqLeague) XXX_DiscardUnknown()
func (*ReqLeague) XXX_Marshal ¶
func (*ReqLeague) XXX_Unmarshal ¶
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) GetMinerAddress ¶
func (*ReqOtprn) ProtoMessage ¶
func (*ReqOtprn) ProtoMessage()
func (*ReqOtprn) XXX_DiscardUnknown ¶
func (m *ReqOtprn) XXX_DiscardUnknown()
func (*ReqOtprn) XXX_Marshal ¶
func (*ReqOtprn) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*ResLeague) ProtoMessage()
func (*ResLeague) XXX_DiscardUnknown ¶
func (m *ResLeague) XXX_DiscardUnknown()
func (*ResLeague) XXX_Marshal ¶
func (*ResLeague) XXX_Unmarshal ¶
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) ProtoMessage ¶
func (*ResOtprn) ProtoMessage()
func (*ResOtprn) XXX_DiscardUnknown ¶
func (m *ResOtprn) XXX_DiscardUnknown()
func (*ResOtprn) XXX_Marshal ¶
func (*ResOtprn) XXX_Unmarshal ¶
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 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) GetVoterAddress ¶
func (*Vote) GetVoterSign ¶
func (*Vote) ProtoMessage ¶
func (*Vote) ProtoMessage()
func (*Vote) XXX_DiscardUnknown ¶
func (m *Vote) XXX_DiscardUnknown()
func (*Vote) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.