Documentation ¶
Overview ¶
Package iproto is a generated protocol buffer package.
It is generated from these files:
blockchain.proto rpc.proto utxo.proto
It has these top-level messages:
TxInputPb TxOutputPb TxPb TransferPb VotePb ActionPb BlockHeaderPb BlockPb BlockIndex PingMsg PongMsg BlockSync BlockContainer ViewChangeMsg TestPayload CreateRawTransferRequest CreateRawTransferResponse SendTransferRequest SendTransferResponse UtxoPb UtxoEntryPb UtxoMapPb
Index ¶
- Constants
- Variables
- func GetTypeFromProtoMsg(msg proto.Message) (uint32, error)
- func RegisterChainServiceServer(s *grpc.Server, srv ChainServiceServer)
- func TypifyProtoMsg(tp uint32, msg []byte) (proto.Message, error)
- type ActionPb
- func (*ActionPb) Descriptor() ([]byte, []int)
- func (m *ActionPb) GetAction() isActionPb_Action
- func (m *ActionPb) GetTransfer() *TransferPb
- func (m *ActionPb) GetTx() *TxPb
- func (m *ActionPb) GetVote() *VotePb
- func (*ActionPb) ProtoMessage()
- func (m *ActionPb) Reset()
- func (m *ActionPb) String() string
- func (*ActionPb) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type ActionPb_Transfer
- type ActionPb_Tx
- type ActionPb_Vote
- type BlockContainer
- type BlockHeaderPb
- func (*BlockHeaderPb) Descriptor() ([]byte, []int)
- func (m *BlockHeaderPb) GetChainID() uint32
- func (m *BlockHeaderPb) GetHeight() uint64
- func (m *BlockHeaderPb) GetPrevBlockHash() []byte
- func (m *BlockHeaderPb) GetPubkey() []byte
- func (m *BlockHeaderPb) GetSignature() []byte
- func (m *BlockHeaderPb) GetStateRoot() []byte
- func (m *BlockHeaderPb) GetTimestamp() uint64
- func (m *BlockHeaderPb) GetTrnxDataSize() uint32
- func (m *BlockHeaderPb) GetTrnxNumber() uint32
- func (m *BlockHeaderPb) GetTxRoot() []byte
- func (m *BlockHeaderPb) GetVersion() uint32
- func (*BlockHeaderPb) ProtoMessage()
- func (m *BlockHeaderPb) Reset()
- func (m *BlockHeaderPb) String() string
- type BlockIndex
- type BlockPb
- type BlockSync
- type ChainServiceClient
- type ChainServiceServer
- type CreateRawTransferRequest
- func (*CreateRawTransferRequest) Descriptor() ([]byte, []int)
- func (m *CreateRawTransferRequest) GetAmount() []byte
- func (m *CreateRawTransferRequest) GetData() []byte
- func (m *CreateRawTransferRequest) GetNonce() uint64
- func (m *CreateRawTransferRequest) GetRecipient() string
- func (m *CreateRawTransferRequest) GetSender() string
- func (*CreateRawTransferRequest) ProtoMessage()
- func (m *CreateRawTransferRequest) Reset()
- func (m *CreateRawTransferRequest) String() string
- func (m *CreateRawTransferRequest) XXX_DiscardUnknown()
- func (m *CreateRawTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateRawTransferRequest) XXX_Merge(src proto.Message)
- func (m *CreateRawTransferRequest) XXX_Size() int
- func (m *CreateRawTransferRequest) XXX_Unmarshal(b []byte) error
- type CreateRawTransferResponse
- func (*CreateRawTransferResponse) Descriptor() ([]byte, []int)
- func (m *CreateRawTransferResponse) GetSerializedTransfer() []byte
- func (*CreateRawTransferResponse) ProtoMessage()
- func (m *CreateRawTransferResponse) Reset()
- func (m *CreateRawTransferResponse) String() string
- func (m *CreateRawTransferResponse) XXX_DiscardUnknown()
- func (m *CreateRawTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateRawTransferResponse) XXX_Merge(src proto.Message)
- func (m *CreateRawTransferResponse) XXX_Size() int
- func (m *CreateRawTransferResponse) XXX_Unmarshal(b []byte) error
- type CreateRawVoteRequest
- func (*CreateRawVoteRequest) Descriptor() ([]byte, []int)
- func (m *CreateRawVoteRequest) GetNonce() uint64
- func (m *CreateRawVoteRequest) GetVotee() []byte
- func (m *CreateRawVoteRequest) GetVoter() []byte
- func (*CreateRawVoteRequest) ProtoMessage()
- func (m *CreateRawVoteRequest) Reset()
- func (m *CreateRawVoteRequest) String() string
- func (m *CreateRawVoteRequest) XXX_DiscardUnknown()
- func (m *CreateRawVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateRawVoteRequest) XXX_Merge(src proto.Message)
- func (m *CreateRawVoteRequest) XXX_Size() int
- func (m *CreateRawVoteRequest) XXX_Unmarshal(b []byte) error
- type CreateRawVoteResponse
- func (*CreateRawVoteResponse) Descriptor() ([]byte, []int)
- func (m *CreateRawVoteResponse) GetSerializedVote() []byte
- func (*CreateRawVoteResponse) ProtoMessage()
- func (m *CreateRawVoteResponse) Reset()
- func (m *CreateRawVoteResponse) String() string
- func (m *CreateRawVoteResponse) XXX_DiscardUnknown()
- func (m *CreateRawVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *CreateRawVoteResponse) XXX_Merge(src proto.Message)
- func (m *CreateRawVoteResponse) XXX_Size() int
- func (m *CreateRawVoteResponse) XXX_Unmarshal(b []byte) error
- type PingMsg
- type PongMsg
- type SendTransferRequest
- func (*SendTransferRequest) Descriptor() ([]byte, []int)
- func (m *SendTransferRequest) GetSerializedTransfer() []byte
- func (*SendTransferRequest) ProtoMessage()
- func (m *SendTransferRequest) Reset()
- func (m *SendTransferRequest) String() string
- func (m *SendTransferRequest) XXX_DiscardUnknown()
- func (m *SendTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendTransferRequest) XXX_Merge(src proto.Message)
- func (m *SendTransferRequest) XXX_Size() int
- func (m *SendTransferRequest) XXX_Unmarshal(b []byte) error
- type SendTransferResponse
- func (*SendTransferResponse) Descriptor() ([]byte, []int)
- func (*SendTransferResponse) ProtoMessage()
- func (m *SendTransferResponse) Reset()
- func (m *SendTransferResponse) String() string
- func (m *SendTransferResponse) XXX_DiscardUnknown()
- func (m *SendTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendTransferResponse) XXX_Merge(src proto.Message)
- func (m *SendTransferResponse) XXX_Size() int
- func (m *SendTransferResponse) XXX_Unmarshal(b []byte) error
- type SendVoteRequest
- func (*SendVoteRequest) Descriptor() ([]byte, []int)
- func (m *SendVoteRequest) GetSerializedVote() []byte
- func (*SendVoteRequest) ProtoMessage()
- func (m *SendVoteRequest) Reset()
- func (m *SendVoteRequest) String() string
- func (m *SendVoteRequest) XXX_DiscardUnknown()
- func (m *SendVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendVoteRequest) XXX_Merge(src proto.Message)
- func (m *SendVoteRequest) XXX_Size() int
- func (m *SendVoteRequest) XXX_Unmarshal(b []byte) error
- type SendVoteResponse
- func (*SendVoteResponse) Descriptor() ([]byte, []int)
- func (*SendVoteResponse) ProtoMessage()
- func (m *SendVoteResponse) Reset()
- func (m *SendVoteResponse) String() string
- func (m *SendVoteResponse) XXX_DiscardUnknown()
- func (m *SendVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SendVoteResponse) XXX_Merge(src proto.Message)
- func (m *SendVoteResponse) XXX_Size() int
- func (m *SendVoteResponse) XXX_Unmarshal(b []byte) error
- type TestPayload
- type TransferPb
- func (*TransferPb) Descriptor() ([]byte, []int)
- func (m *TransferPb) GetAmount() []byte
- func (m *TransferPb) GetIsCoinbase() bool
- func (m *TransferPb) GetNonce() uint64
- func (m *TransferPb) GetPayload() []byte
- func (m *TransferPb) GetRecipient() string
- func (m *TransferPb) GetSender() string
- func (m *TransferPb) GetSenderPubKey() []byte
- func (m *TransferPb) GetSignature() []byte
- func (m *TransferPb) GetVersion() uint32
- func (*TransferPb) ProtoMessage()
- func (m *TransferPb) Reset()
- func (m *TransferPb) String() string
- type TxInputPb
- func (*TxInputPb) Descriptor() ([]byte, []int)
- func (m *TxInputPb) GetOutIndex() int32
- func (m *TxInputPb) GetSequence() uint32
- func (m *TxInputPb) GetTxHash() []byte
- func (m *TxInputPb) GetUnlockScript() []byte
- func (m *TxInputPb) GetUnlockScriptSize() uint32
- func (*TxInputPb) ProtoMessage()
- func (m *TxInputPb) Reset()
- func (m *TxInputPb) String() string
- type TxOutputPb
- type TxPb
- type UtxoEntryPb
- type UtxoMapPb
- type UtxoPb
- type ViewChangeMsg
- func (*ViewChangeMsg) Descriptor() ([]byte, []int)
- func (m *ViewChangeMsg) GetBlock() *BlockPb
- func (m *ViewChangeMsg) GetBlockHash() []byte
- func (m *ViewChangeMsg) GetSenderAddr() string
- func (m *ViewChangeMsg) GetVctype() ViewChangeMsg_ViewChangeType
- func (*ViewChangeMsg) ProtoMessage()
- func (m *ViewChangeMsg) Reset()
- func (m *ViewChangeMsg) String() string
- type ViewChangeMsg_ViewChangeType
- type VotePb
- func (*VotePb) Descriptor() ([]byte, []int)
- func (m *VotePb) GetNonce() uint64
- func (m *VotePb) GetSelfPubkey() []byte
- func (m *VotePb) GetSignature() []byte
- func (m *VotePb) GetTimestamp() uint64
- func (m *VotePb) GetVersion() uint32
- func (m *VotePb) GetVotePubkey() []byte
- func (*VotePb) ProtoMessage()
- func (m *VotePb) Reset()
- func (m *VotePb) String() string
Constants ¶
const ( // UnknownProtoMsgType is an unknown message type that is not expected UnknownProtoMsgType uint32 = 0 // MsgTxProtoMsgType is for transactions broadcasted within the network MsgTxProtoMsgType uint32 = 1 // MsgBlockProtoMsgType is for blocks broadcasted within the network MsgBlockProtoMsgType uint32 = 2 // ViewChangeMsgType is for consensus flows within the network ViewChangeMsgType uint32 = 3 // MsgBlockSyncReqType is for requests among peers to sync blocks MsgBlockSyncReqType uint32 = 4 // MsgBlockSyncDataType is the response to messages of type MsgBlockSyncReqType MsgBlockSyncDataType uint32 = 5 // MsgActionType is the action message MsgActionType uint32 = 6 // TestPayloadType is a test payload message type TestPayloadType uint32 = 10001 )
const (
MagicBroadcastMsgHeader uint32 = 4689
)
Magic header to identify IoTex traffic
Variables ¶
var ViewChangeMsg_ViewChangeType_name = map[int32]string{
0: "INVALID_VIEW_CHANGE_TYPE",
1: "PROPOSE",
2: "PREVOTE",
3: "VOTE",
}
var ViewChangeMsg_ViewChangeType_value = map[string]int32{
"INVALID_VIEW_CHANGE_TYPE": 0,
"PROPOSE": 1,
"PREVOTE": 2,
"VOTE": 3,
}
Functions ¶
func GetTypeFromProtoMsg ¶
GetTypeFromProtoMsg retrieves the proto message type
func RegisterChainServiceServer ¶
func RegisterChainServiceServer(s *grpc.Server, srv ChainServiceServer)
Types ¶
type ActionPb ¶
type ActionPb struct { // Types that are valid to be assigned to Action: // *ActionPb_Tx // *ActionPb_Transfer // *ActionPb_Vote Action isActionPb_Action `protobuf_oneof:"action"` }
func (*ActionPb) Descriptor ¶
func (*ActionPb) GetTransfer ¶
func (m *ActionPb) GetTransfer() *TransferPb
func (*ActionPb) ProtoMessage ¶
func (*ActionPb) ProtoMessage()
type ActionPb_Transfer ¶
type ActionPb_Transfer struct {
Transfer *TransferPb `protobuf:"bytes,2,opt,name=transfer,oneof"`
}
type ActionPb_Tx ¶
type ActionPb_Tx struct {
Tx *TxPb `protobuf:"bytes,1,opt,name=tx,oneof"`
}
type ActionPb_Vote ¶
type ActionPb_Vote struct {
Vote *VotePb `protobuf:"bytes,3,opt,name=vote,oneof"`
}
type BlockContainer ¶
type BlockContainer struct {
Block *BlockPb `protobuf:"bytes,1,opt,name=block" json:"block,omitempty"`
}
block container used to send old/existing blocks in block sync
func (*BlockContainer) Descriptor ¶
func (*BlockContainer) Descriptor() ([]byte, []int)
func (*BlockContainer) GetBlock ¶
func (m *BlockContainer) GetBlock() *BlockPb
func (*BlockContainer) ProtoMessage ¶
func (*BlockContainer) ProtoMessage()
func (*BlockContainer) Reset ¶
func (m *BlockContainer) Reset()
func (*BlockContainer) String ¶
func (m *BlockContainer) String() string
type BlockHeaderPb ¶
type BlockHeaderPb struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` ChainID uint32 `protobuf:"varint,2,opt,name=chainID" json:"chainID,omitempty"` Height uint64 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"` Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` PrevBlockHash []byte `protobuf:"bytes,5,opt,name=prevBlockHash,proto3" json:"prevBlockHash,omitempty"` TxRoot []byte `protobuf:"bytes,6,opt,name=txRoot,proto3" json:"txRoot,omitempty"` StateRoot []byte `protobuf:"bytes,7,opt,name=stateRoot,proto3" json:"stateRoot,omitempty"` TrnxNumber uint32 `protobuf:"varint,8,opt,name=trnxNumber" json:"trnxNumber,omitempty"` TrnxDataSize uint32 `protobuf:"varint,9,opt,name=trnxDataSize" json:"trnxDataSize,omitempty"` Signature []byte `protobuf:"bytes,10,opt,name=signature,proto3" json:"signature,omitempty"` Pubkey []byte `protobuf:"bytes,11,opt,name=pubkey,proto3" json:"pubkey,omitempty"` }
header of a block
func (*BlockHeaderPb) Descriptor ¶
func (*BlockHeaderPb) Descriptor() ([]byte, []int)
func (*BlockHeaderPb) GetChainID ¶
func (m *BlockHeaderPb) GetChainID() uint32
func (*BlockHeaderPb) GetHeight ¶
func (m *BlockHeaderPb) GetHeight() uint64
func (*BlockHeaderPb) GetPrevBlockHash ¶
func (m *BlockHeaderPb) GetPrevBlockHash() []byte
func (*BlockHeaderPb) GetPubkey ¶
func (m *BlockHeaderPb) GetPubkey() []byte
func (*BlockHeaderPb) GetSignature ¶
func (m *BlockHeaderPb) GetSignature() []byte
func (*BlockHeaderPb) GetStateRoot ¶
func (m *BlockHeaderPb) GetStateRoot() []byte
func (*BlockHeaderPb) GetTimestamp ¶
func (m *BlockHeaderPb) GetTimestamp() uint64
func (*BlockHeaderPb) GetTrnxDataSize ¶
func (m *BlockHeaderPb) GetTrnxDataSize() uint32
func (*BlockHeaderPb) GetTrnxNumber ¶
func (m *BlockHeaderPb) GetTrnxNumber() uint32
func (*BlockHeaderPb) GetTxRoot ¶
func (m *BlockHeaderPb) GetTxRoot() []byte
func (*BlockHeaderPb) GetVersion ¶
func (m *BlockHeaderPb) GetVersion() uint32
func (*BlockHeaderPb) ProtoMessage ¶
func (*BlockHeaderPb) ProtoMessage()
func (*BlockHeaderPb) Reset ¶
func (m *BlockHeaderPb) Reset()
func (*BlockHeaderPb) String ¶
func (m *BlockHeaderPb) String() string
type BlockIndex ¶
type BlockIndex struct { Start uint64 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"` End uint64 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"` Offset []uint32 `protobuf:"varint,3,rep,packed,name=offset" json:"offset,omitempty"` }
index of block raw data file
func (*BlockIndex) Descriptor ¶
func (*BlockIndex) Descriptor() ([]byte, []int)
func (*BlockIndex) GetEnd ¶
func (m *BlockIndex) GetEnd() uint64
func (*BlockIndex) GetOffset ¶
func (m *BlockIndex) GetOffset() []uint32
func (*BlockIndex) GetStart ¶
func (m *BlockIndex) GetStart() uint64
func (*BlockIndex) ProtoMessage ¶
func (*BlockIndex) ProtoMessage()
func (*BlockIndex) Reset ¶
func (m *BlockIndex) Reset()
func (*BlockIndex) String ¶
func (m *BlockIndex) String() string
type BlockPb ¶
type BlockPb struct { Header *BlockHeaderPb `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Actions []*ActionPb `protobuf:"bytes,2,rep,name=actions" json:"actions,omitempty"` }
block consists of header followed by transactions hash of current block can be computed from header hence not stored
func (*BlockPb) Descriptor ¶
func (*BlockPb) GetActions ¶
func (*BlockPb) GetHeader ¶
func (m *BlockPb) GetHeader() *BlockHeaderPb
func (*BlockPb) ProtoMessage ¶
func (*BlockPb) ProtoMessage()
type BlockSync ¶
type BlockSync struct { Start uint64 `protobuf:"varint,2,opt,name=start" json:"start,omitempty"` End uint64 `protobuf:"varint,3,opt,name=end" json:"end,omitempty"` }
func (*BlockSync) Descriptor ¶
func (*BlockSync) ProtoMessage ¶
func (*BlockSync) ProtoMessage()
type ChainServiceClient ¶
type ChainServiceClient interface { CreateRawTransfer(ctx context.Context, in *CreateRawTransferRequest, opts ...grpc.CallOption) (*CreateRawTransferResponse, error) CreateRawVote(ctx context.Context, in *CreateRawVoteRequest, opts ...grpc.CallOption) (*CreateRawVoteResponse, error) SendTransfer(ctx context.Context, in *SendTransferRequest, opts ...grpc.CallOption) (*SendTransferResponse, error) SendVote(ctx context.Context, in *SendVoteRequest, opts ...grpc.CallOption) (*SendVoteResponse, error) }
func NewChainServiceClient ¶
func NewChainServiceClient(cc *grpc.ClientConn) ChainServiceClient
type ChainServiceServer ¶
type ChainServiceServer interface { CreateRawTransfer(context.Context, *CreateRawTransferRequest) (*CreateRawTransferResponse, error) CreateRawVote(context.Context, *CreateRawVoteRequest) (*CreateRawVoteResponse, error) SendTransfer(context.Context, *SendTransferRequest) (*SendTransferResponse, error) SendVote(context.Context, *SendVoteRequest) (*SendVoteResponse, error) }
type CreateRawTransferRequest ¶
type CreateRawTransferRequest struct { Sender string `protobuf:"bytes,1,opt,name=sender" json:"sender,omitempty"` Recipient string `protobuf:"bytes,2,opt,name=recipient" json:"recipient,omitempty"` Amount []byte `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` Nonce uint64 `protobuf:"varint,4,opt,name=nonce" json:"nonce,omitempty"` Data []byte `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateRawTransferRequest) Descriptor ¶
func (*CreateRawTransferRequest) Descriptor() ([]byte, []int)
func (*CreateRawTransferRequest) GetAmount ¶
func (m *CreateRawTransferRequest) GetAmount() []byte
func (*CreateRawTransferRequest) GetData ¶
func (m *CreateRawTransferRequest) GetData() []byte
func (*CreateRawTransferRequest) GetNonce ¶
func (m *CreateRawTransferRequest) GetNonce() uint64
func (*CreateRawTransferRequest) GetRecipient ¶
func (m *CreateRawTransferRequest) GetRecipient() string
func (*CreateRawTransferRequest) GetSender ¶
func (m *CreateRawTransferRequest) GetSender() string
func (*CreateRawTransferRequest) ProtoMessage ¶
func (*CreateRawTransferRequest) ProtoMessage()
func (*CreateRawTransferRequest) Reset ¶
func (m *CreateRawTransferRequest) Reset()
func (*CreateRawTransferRequest) String ¶
func (m *CreateRawTransferRequest) String() string
func (*CreateRawTransferRequest) XXX_DiscardUnknown ¶
func (m *CreateRawTransferRequest) XXX_DiscardUnknown()
func (*CreateRawTransferRequest) XXX_Marshal ¶
func (m *CreateRawTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRawTransferRequest) XXX_Merge ¶
func (dst *CreateRawTransferRequest) XXX_Merge(src proto.Message)
func (*CreateRawTransferRequest) XXX_Size ¶
func (m *CreateRawTransferRequest) XXX_Size() int
func (*CreateRawTransferRequest) XXX_Unmarshal ¶
func (m *CreateRawTransferRequest) XXX_Unmarshal(b []byte) error
type CreateRawTransferResponse ¶
type CreateRawTransferResponse struct { SerializedTransfer []byte `protobuf:"bytes,1,opt,name=serialized_transfer,json=serializedTransfer,proto3" json:"serialized_transfer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateRawTransferResponse) Descriptor ¶
func (*CreateRawTransferResponse) Descriptor() ([]byte, []int)
func (*CreateRawTransferResponse) GetSerializedTransfer ¶
func (m *CreateRawTransferResponse) GetSerializedTransfer() []byte
func (*CreateRawTransferResponse) ProtoMessage ¶
func (*CreateRawTransferResponse) ProtoMessage()
func (*CreateRawTransferResponse) Reset ¶
func (m *CreateRawTransferResponse) Reset()
func (*CreateRawTransferResponse) String ¶
func (m *CreateRawTransferResponse) String() string
func (*CreateRawTransferResponse) XXX_DiscardUnknown ¶
func (m *CreateRawTransferResponse) XXX_DiscardUnknown()
func (*CreateRawTransferResponse) XXX_Marshal ¶
func (m *CreateRawTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRawTransferResponse) XXX_Merge ¶
func (dst *CreateRawTransferResponse) XXX_Merge(src proto.Message)
func (*CreateRawTransferResponse) XXX_Size ¶
func (m *CreateRawTransferResponse) XXX_Size() int
func (*CreateRawTransferResponse) XXX_Unmarshal ¶
func (m *CreateRawTransferResponse) XXX_Unmarshal(b []byte) error
type CreateRawVoteRequest ¶
type CreateRawVoteRequest struct { Voter []byte `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"` Votee []byte `protobuf:"bytes,2,opt,name=votee,proto3" json:"votee,omitempty"` Nonce uint64 `protobuf:"varint,3,opt,name=nonce" json:"nonce,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateRawVoteRequest) Descriptor ¶
func (*CreateRawVoteRequest) Descriptor() ([]byte, []int)
func (*CreateRawVoteRequest) GetNonce ¶
func (m *CreateRawVoteRequest) GetNonce() uint64
func (*CreateRawVoteRequest) GetVotee ¶
func (m *CreateRawVoteRequest) GetVotee() []byte
func (*CreateRawVoteRequest) GetVoter ¶
func (m *CreateRawVoteRequest) GetVoter() []byte
func (*CreateRawVoteRequest) ProtoMessage ¶
func (*CreateRawVoteRequest) ProtoMessage()
func (*CreateRawVoteRequest) Reset ¶
func (m *CreateRawVoteRequest) Reset()
func (*CreateRawVoteRequest) String ¶
func (m *CreateRawVoteRequest) String() string
func (*CreateRawVoteRequest) XXX_DiscardUnknown ¶
func (m *CreateRawVoteRequest) XXX_DiscardUnknown()
func (*CreateRawVoteRequest) XXX_Marshal ¶
func (m *CreateRawVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRawVoteRequest) XXX_Merge ¶
func (dst *CreateRawVoteRequest) XXX_Merge(src proto.Message)
func (*CreateRawVoteRequest) XXX_Size ¶
func (m *CreateRawVoteRequest) XXX_Size() int
func (*CreateRawVoteRequest) XXX_Unmarshal ¶
func (m *CreateRawVoteRequest) XXX_Unmarshal(b []byte) error
type CreateRawVoteResponse ¶
type CreateRawVoteResponse struct { SerializedVote []byte `protobuf:"bytes,1,opt,name=serialized_vote,json=serializedVote,proto3" json:"serialized_vote,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*CreateRawVoteResponse) Descriptor ¶
func (*CreateRawVoteResponse) Descriptor() ([]byte, []int)
func (*CreateRawVoteResponse) GetSerializedVote ¶
func (m *CreateRawVoteResponse) GetSerializedVote() []byte
func (*CreateRawVoteResponse) ProtoMessage ¶
func (*CreateRawVoteResponse) ProtoMessage()
func (*CreateRawVoteResponse) Reset ¶
func (m *CreateRawVoteResponse) Reset()
func (*CreateRawVoteResponse) String ¶
func (m *CreateRawVoteResponse) String() string
func (*CreateRawVoteResponse) XXX_DiscardUnknown ¶
func (m *CreateRawVoteResponse) XXX_DiscardUnknown()
func (*CreateRawVoteResponse) XXX_Marshal ¶
func (m *CreateRawVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateRawVoteResponse) XXX_Merge ¶
func (dst *CreateRawVoteResponse) XXX_Merge(src proto.Message)
func (*CreateRawVoteResponse) XXX_Size ¶
func (m *CreateRawVoteResponse) XXX_Size() int
func (*CreateRawVoteResponse) XXX_Unmarshal ¶
func (m *CreateRawVoteResponse) XXX_Unmarshal(b []byte) error
type PingMsg ¶
type PingMsg struct {
Nonce uint64 `protobuf:"varint,1,opt,name=nonce" json:"nonce,omitempty"`
}
////////////////////////////////////////////////////////////////////////////////////////////////// BELOW ARE DEFINITIONS FOR ON-WIRE MESSAGES! //////////////////////////////////////////////////////////////////////////////////////////////////
func (*PingMsg) Descriptor ¶
func (*PingMsg) ProtoMessage ¶
func (*PingMsg) ProtoMessage()
type PongMsg ¶
type PongMsg struct {
AckNonce uint64 `protobuf:"varint,1,opt,name=ack_nonce,json=ackNonce" json:"ack_nonce,omitempty"`
}
func (*PongMsg) Descriptor ¶
func (*PongMsg) GetAckNonce ¶
func (*PongMsg) ProtoMessage ¶
func (*PongMsg) ProtoMessage()
type SendTransferRequest ¶
type SendTransferRequest struct { SerializedTransfer []byte `protobuf:"bytes,1,opt,name=serialized_transfer,json=serializedTransfer,proto3" json:"serialized_transfer,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendTransferRequest) Descriptor ¶
func (*SendTransferRequest) Descriptor() ([]byte, []int)
func (*SendTransferRequest) GetSerializedTransfer ¶
func (m *SendTransferRequest) GetSerializedTransfer() []byte
func (*SendTransferRequest) ProtoMessage ¶
func (*SendTransferRequest) ProtoMessage()
func (*SendTransferRequest) Reset ¶
func (m *SendTransferRequest) Reset()
func (*SendTransferRequest) String ¶
func (m *SendTransferRequest) String() string
func (*SendTransferRequest) XXX_DiscardUnknown ¶
func (m *SendTransferRequest) XXX_DiscardUnknown()
func (*SendTransferRequest) XXX_Marshal ¶
func (m *SendTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendTransferRequest) XXX_Merge ¶
func (dst *SendTransferRequest) XXX_Merge(src proto.Message)
func (*SendTransferRequest) XXX_Size ¶
func (m *SendTransferRequest) XXX_Size() int
func (*SendTransferRequest) XXX_Unmarshal ¶
func (m *SendTransferRequest) XXX_Unmarshal(b []byte) error
type SendTransferResponse ¶
type SendTransferResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendTransferResponse) Descriptor ¶
func (*SendTransferResponse) Descriptor() ([]byte, []int)
func (*SendTransferResponse) ProtoMessage ¶
func (*SendTransferResponse) ProtoMessage()
func (*SendTransferResponse) Reset ¶
func (m *SendTransferResponse) Reset()
func (*SendTransferResponse) String ¶
func (m *SendTransferResponse) String() string
func (*SendTransferResponse) XXX_DiscardUnknown ¶
func (m *SendTransferResponse) XXX_DiscardUnknown()
func (*SendTransferResponse) XXX_Marshal ¶
func (m *SendTransferResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendTransferResponse) XXX_Merge ¶
func (dst *SendTransferResponse) XXX_Merge(src proto.Message)
func (*SendTransferResponse) XXX_Size ¶
func (m *SendTransferResponse) XXX_Size() int
func (*SendTransferResponse) XXX_Unmarshal ¶
func (m *SendTransferResponse) XXX_Unmarshal(b []byte) error
type SendVoteRequest ¶
type SendVoteRequest struct { SerializedVote []byte `protobuf:"bytes,1,opt,name=serialized_vote,json=serializedVote,proto3" json:"serialized_vote,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendVoteRequest) Descriptor ¶
func (*SendVoteRequest) Descriptor() ([]byte, []int)
func (*SendVoteRequest) GetSerializedVote ¶
func (m *SendVoteRequest) GetSerializedVote() []byte
func (*SendVoteRequest) ProtoMessage ¶
func (*SendVoteRequest) ProtoMessage()
func (*SendVoteRequest) Reset ¶
func (m *SendVoteRequest) Reset()
func (*SendVoteRequest) String ¶
func (m *SendVoteRequest) String() string
func (*SendVoteRequest) XXX_DiscardUnknown ¶
func (m *SendVoteRequest) XXX_DiscardUnknown()
func (*SendVoteRequest) XXX_Marshal ¶
func (m *SendVoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendVoteRequest) XXX_Merge ¶
func (dst *SendVoteRequest) XXX_Merge(src proto.Message)
func (*SendVoteRequest) XXX_Size ¶
func (m *SendVoteRequest) XXX_Size() int
func (*SendVoteRequest) XXX_Unmarshal ¶
func (m *SendVoteRequest) XXX_Unmarshal(b []byte) error
type SendVoteResponse ¶
type SendVoteResponse struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SendVoteResponse) Descriptor ¶
func (*SendVoteResponse) Descriptor() ([]byte, []int)
func (*SendVoteResponse) ProtoMessage ¶
func (*SendVoteResponse) ProtoMessage()
func (*SendVoteResponse) Reset ¶
func (m *SendVoteResponse) Reset()
func (*SendVoteResponse) String ¶
func (m *SendVoteResponse) String() string
func (*SendVoteResponse) XXX_DiscardUnknown ¶
func (m *SendVoteResponse) XXX_DiscardUnknown()
func (*SendVoteResponse) XXX_Marshal ¶
func (m *SendVoteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SendVoteResponse) XXX_Merge ¶
func (dst *SendVoteResponse) XXX_Merge(src proto.Message)
func (*SendVoteResponse) XXX_Size ¶
func (m *SendVoteResponse) XXX_Size() int
func (*SendVoteResponse) XXX_Unmarshal ¶
func (m *SendVoteResponse) XXX_Unmarshal(b []byte) error
type TestPayload ¶
type TestPayload struct {
MsgBody []byte `protobuf:"bytes,1,opt,name=msg_body,json=msgBody,proto3" json:"msg_body,omitempty"`
}
////////////////////////////////////////////////////////////////////////////////////////////////// BELOW ARE DEFINITIONS FOR TEST-ONLY MESSAGES! //////////////////////////////////////////////////////////////////////////////////////////////////
func (*TestPayload) Descriptor ¶
func (*TestPayload) Descriptor() ([]byte, []int)
func (*TestPayload) GetMsgBody ¶
func (m *TestPayload) GetMsgBody() []byte
func (*TestPayload) ProtoMessage ¶
func (*TestPayload) ProtoMessage()
func (*TestPayload) Reset ¶
func (m *TestPayload) Reset()
func (*TestPayload) String ¶
func (m *TestPayload) String() string
type TransferPb ¶
type TransferPb struct { // TransferPb should share these three fields with other Actions // TODO: extract these three fields to ActionPb Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Nonce uint64 `protobuf:"varint,2,opt,name=nonce" json:"nonce,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // used by state-based model Amount []byte `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` Sender string `protobuf:"bytes,5,opt,name=sender" json:"sender,omitempty"` Recipient string `protobuf:"bytes,6,opt,name=recipient" json:"recipient,omitempty"` Payload []byte `protobuf:"bytes,7,opt,name=payload,proto3" json:"payload,omitempty"` SenderPubKey []byte `protobuf:"bytes,8,opt,name=senderPubKey,proto3" json:"senderPubKey,omitempty"` IsCoinbase bool `protobuf:"varint,9,opt,name=isCoinbase" json:"isCoinbase,omitempty"` }
func (*TransferPb) Descriptor ¶
func (*TransferPb) Descriptor() ([]byte, []int)
func (*TransferPb) GetAmount ¶
func (m *TransferPb) GetAmount() []byte
func (*TransferPb) GetIsCoinbase ¶
func (m *TransferPb) GetIsCoinbase() bool
func (*TransferPb) GetNonce ¶
func (m *TransferPb) GetNonce() uint64
func (*TransferPb) GetPayload ¶
func (m *TransferPb) GetPayload() []byte
func (*TransferPb) GetRecipient ¶
func (m *TransferPb) GetRecipient() string
func (*TransferPb) GetSender ¶
func (m *TransferPb) GetSender() string
func (*TransferPb) GetSenderPubKey ¶
func (m *TransferPb) GetSenderPubKey() []byte
func (*TransferPb) GetSignature ¶
func (m *TransferPb) GetSignature() []byte
func (*TransferPb) GetVersion ¶
func (m *TransferPb) GetVersion() uint32
func (*TransferPb) ProtoMessage ¶
func (*TransferPb) ProtoMessage()
func (*TransferPb) Reset ¶
func (m *TransferPb) Reset()
func (*TransferPb) String ¶
func (m *TransferPb) String() string
type TxInputPb ¶
type TxInputPb struct { TxHash []byte `protobuf:"bytes,1,opt,name=txHash,proto3" json:"txHash,omitempty"` OutIndex int32 `protobuf:"varint,2,opt,name=outIndex" json:"outIndex,omitempty"` UnlockScriptSize uint32 `protobuf:"varint,3,opt,name=unlockScriptSize" json:"unlockScriptSize,omitempty"` UnlockScript []byte `protobuf:"bytes,4,opt,name=unlockScript,proto3" json:"unlockScript,omitempty"` Sequence uint32 `protobuf:"varint,5,opt,name=sequence" json:"sequence,omitempty"` }
func (*TxInputPb) Descriptor ¶
func (*TxInputPb) GetOutIndex ¶
func (*TxInputPb) GetSequence ¶
func (*TxInputPb) GetUnlockScript ¶
func (*TxInputPb) GetUnlockScriptSize ¶
func (*TxInputPb) ProtoMessage ¶
func (*TxInputPb) ProtoMessage()
type TxOutputPb ¶
type TxOutputPb struct { Value uint64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` LockScriptSize uint32 `protobuf:"varint,2,opt,name=lockScriptSize" json:"lockScriptSize,omitempty"` LockScript []byte `protobuf:"bytes,3,opt,name=lockScript,proto3" json:"lockScript,omitempty"` }
TxOutput stores “coins”. It is indivisible, which means that you cannot reference a part of its value. When an output is referenced in a new transaction, it’s spent as a whole. And if its value is greater than required, a change is generated and sent back to the sender.
func (*TxOutputPb) Descriptor ¶
func (*TxOutputPb) Descriptor() ([]byte, []int)
func (*TxOutputPb) GetLockScript ¶
func (m *TxOutputPb) GetLockScript() []byte
func (*TxOutputPb) GetLockScriptSize ¶
func (m *TxOutputPb) GetLockScriptSize() uint32
func (*TxOutputPb) GetValue ¶
func (m *TxOutputPb) GetValue() uint64
func (*TxOutputPb) ProtoMessage ¶
func (*TxOutputPb) ProtoMessage()
func (*TxOutputPb) Reset ¶
func (m *TxOutputPb) Reset()
func (*TxOutputPb) String ¶
func (m *TxOutputPb) String() string
type TxPb ¶
type TxPb struct { Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` LockTime uint32 `protobuf:"varint,2,opt,name=lockTime" json:"lockTime,omitempty"` // used by utxo-based model TxIn []*TxInputPb `protobuf:"bytes,21,rep,name=txIn" json:"txIn,omitempty"` TxOut []*TxOutputPb `protobuf:"bytes,22,rep,name=txOut" json:"txOut,omitempty"` }
func (*TxPb) Descriptor ¶
func (*TxPb) GetLockTime ¶
func (*TxPb) GetTxOut ¶
func (m *TxPb) GetTxOut() []*TxOutputPb
func (*TxPb) GetVersion ¶
func (*TxPb) ProtoMessage ¶
func (*TxPb) ProtoMessage()
type UtxoEntryPb ¶
type UtxoEntryPb struct { Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"` Utxo []*UtxoPb `protobuf:"bytes,2,rep,name=utxo" json:"utxo,omitempty"` }
func (*UtxoEntryPb) Descriptor ¶
func (*UtxoEntryPb) Descriptor() ([]byte, []int)
func (*UtxoEntryPb) GetHash ¶
func (m *UtxoEntryPb) GetHash() []byte
func (*UtxoEntryPb) GetUtxo ¶
func (m *UtxoEntryPb) GetUtxo() []*UtxoPb
func (*UtxoEntryPb) ProtoMessage ¶
func (*UtxoEntryPb) ProtoMessage()
func (*UtxoEntryPb) Reset ¶
func (m *UtxoEntryPb) Reset()
func (*UtxoEntryPb) String ¶
func (m *UtxoEntryPb) String() string
type UtxoMapPb ¶
type UtxoMapPb struct {
UtxoEntry []*UtxoEntryPb `protobuf:"bytes,1,rep,name=utxoEntry" json:"utxoEntry,omitempty"`
}
func (*UtxoMapPb) Descriptor ¶
func (*UtxoMapPb) GetUtxoEntry ¶
func (m *UtxoMapPb) GetUtxoEntry() []*UtxoEntryPb
func (*UtxoMapPb) ProtoMessage ¶
func (*UtxoMapPb) ProtoMessage()
type UtxoPb ¶
type UtxoPb struct { Value uint64 `protobuf:"varint,1,opt,name=value" json:"value,omitempty"` Index int32 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"` LockScriptSize uint32 `protobuf:"varint,3,opt,name=lockScriptSize" json:"lockScriptSize,omitempty"` LockScript []byte `protobuf:"bytes,4,opt,name=lockScript,proto3" json:"lockScript,omitempty"` }
func (*UtxoPb) Descriptor ¶
func (*UtxoPb) GetLockScript ¶
func (*UtxoPb) GetLockScriptSize ¶
func (*UtxoPb) ProtoMessage ¶
func (*UtxoPb) ProtoMessage()
type ViewChangeMsg ¶
type ViewChangeMsg struct { Vctype ViewChangeMsg_ViewChangeType `protobuf:"varint,1,opt,name=vctype,enum=iproto.ViewChangeMsg_ViewChangeType" json:"vctype,omitempty"` Block *BlockPb `protobuf:"bytes,2,opt,name=block" json:"block,omitempty"` BlockHash []byte `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"` SenderAddr string `protobuf:"bytes,4,opt,name=senderAddr" json:"senderAddr,omitempty"` }
func (*ViewChangeMsg) Descriptor ¶
func (*ViewChangeMsg) Descriptor() ([]byte, []int)
func (*ViewChangeMsg) GetBlock ¶
func (m *ViewChangeMsg) GetBlock() *BlockPb
func (*ViewChangeMsg) GetBlockHash ¶
func (m *ViewChangeMsg) GetBlockHash() []byte
func (*ViewChangeMsg) GetSenderAddr ¶
func (m *ViewChangeMsg) GetSenderAddr() string
func (*ViewChangeMsg) GetVctype ¶
func (m *ViewChangeMsg) GetVctype() ViewChangeMsg_ViewChangeType
func (*ViewChangeMsg) ProtoMessage ¶
func (*ViewChangeMsg) ProtoMessage()
func (*ViewChangeMsg) Reset ¶
func (m *ViewChangeMsg) Reset()
func (*ViewChangeMsg) String ¶
func (m *ViewChangeMsg) String() string
type ViewChangeMsg_ViewChangeType ¶
type ViewChangeMsg_ViewChangeType int32
const ( ViewChangeMsg_INVALID_VIEW_CHANGE_TYPE ViewChangeMsg_ViewChangeType = 0 ViewChangeMsg_PROPOSE ViewChangeMsg_ViewChangeType = 1 ViewChangeMsg_PREVOTE ViewChangeMsg_ViewChangeType = 2 ViewChangeMsg_VOTE ViewChangeMsg_ViewChangeType = 3 )
func (ViewChangeMsg_ViewChangeType) EnumDescriptor ¶
func (ViewChangeMsg_ViewChangeType) EnumDescriptor() ([]byte, []int)
func (ViewChangeMsg_ViewChangeType) String ¶
func (x ViewChangeMsg_ViewChangeType) String() string
type VotePb ¶
type VotePb struct { // VotePb should share these three fields with other Actions // TODO: extract these three fields to ActionPb Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"` Nonce uint64 `protobuf:"varint,2,opt,name=nonce" json:"nonce,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp" json:"timestamp,omitempty"` SelfPubkey []byte `protobuf:"bytes,5,opt,name=selfPubkey,proto3" json:"selfPubkey,omitempty"` VotePubkey []byte `protobuf:"bytes,6,opt,name=votePubkey,proto3" json:"votePubkey,omitempty"` }
func (*VotePb) Descriptor ¶
func (*VotePb) GetSelfPubkey ¶
func (*VotePb) GetSignature ¶
func (*VotePb) GetTimestamp ¶
func (*VotePb) GetVersion ¶
func (*VotePb) GetVotePubkey ¶
func (*VotePb) ProtoMessage ¶
func (*VotePb) ProtoMessage()