Documentation
¶
Index ¶
- type BaseBlock
- func (*BaseBlock) Descriptor() ([]byte, []int)
- func (m *BaseBlock) GetChildBlock() []byte
- func (m *BaseBlock) GetHeader() *BaseHeader
- func (m *BaseBlock) GetNextValidator() []byte
- func (m *BaseBlock) GetTxsData() *TxsData
- func (m *BaseBlock) GetValidator() []byte
- func (m *BaseBlock) GetVoteCommits() []byte
- func (*BaseBlock) ProtoMessage()
- func (m *BaseBlock) Reset()
- func (m *BaseBlock) String() string
- func (m *BaseBlock) XXX_DiscardUnknown()
- func (m *BaseBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseBlock) XXX_Merge(src proto.Message)
- func (m *BaseBlock) XXX_Size() int
- func (m *BaseBlock) XXX_Unmarshal(b []byte) error
- type BaseHeader
- func (*BaseHeader) Descriptor() ([]byte, []int)
- func (m *BaseHeader) GetBlock_ID() *BlockID
- func (m *BaseHeader) GetChildBlockHash() []byte
- func (m *BaseHeader) GetHeight() int64
- func (m *BaseHeader) GetLastBlockID() *BlockID
- func (m *BaseHeader) GetLastVoteHash() []byte
- func (m *BaseHeader) GetNextValidatorGroupHash() []byte
- func (m *BaseHeader) GetRootHash() []byte
- func (m *BaseHeader) GetStateRoot() []byte
- func (m *BaseHeader) GetTime() *Timestamp
- func (m *BaseHeader) GetTotalTxs() uint64
- func (m *BaseHeader) GetValidatorGroupHash() []byte
- func (*BaseHeader) ProtoMessage()
- func (m *BaseHeader) Reset()
- func (m *BaseHeader) String() string
- func (m *BaseHeader) XXX_DiscardUnknown()
- func (m *BaseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BaseHeader) XXX_Merge(src proto.Message)
- func (m *BaseHeader) XXX_Size() int
- func (m *BaseHeader) XXX_Unmarshal(b []byte) error
- type BlockID
- func (*BlockID) Descriptor() ([]byte, []int)
- func (m *BlockID) GetBlockHash() []byte
- func (*BlockID) ProtoMessage()
- func (m *BlockID) Reset()
- func (m *BlockID) String() string
- func (m *BlockID) XXX_DiscardUnknown()
- func (m *BlockID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockID) XXX_Merge(src proto.Message)
- func (m *BlockID) XXX_Size() int
- func (m *BlockID) XXX_Unmarshal(b []byte) error
- type Bytes
- func (*Bytes) Descriptor() ([]byte, []int)
- func (m *Bytes) GetData() []byte
- func (*Bytes) ProtoMessage()
- func (m *Bytes) Reset()
- func (m *Bytes) String() string
- func (m *Bytes) XXX_DiscardUnknown()
- func (m *Bytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bytes) XXX_Merge(src proto.Message)
- func (m *Bytes) XXX_Size() int
- func (m *Bytes) XXX_Unmarshal(b []byte) error
- type ChildBlock
- func (*ChildBlock) Descriptor() ([]byte, []int)
- func (m *ChildBlock) GetHeader() *Header
- func (m *ChildBlock) GetLastVotes() *VoteCommit
- func (m *ChildBlock) GetTxsData() *TxsData
- func (*ChildBlock) ProtoMessage()
- func (m *ChildBlock) Reset()
- func (m *ChildBlock) String() string
- func (m *ChildBlock) XXX_DiscardUnknown()
- func (m *ChildBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChildBlock) XXX_Merge(src proto.Message)
- func (m *ChildBlock) XXX_Size() int
- func (m *ChildBlock) XXX_Unmarshal(b []byte) error
- type ChildBlockMessage
- func (*ChildBlockMessage) Descriptor() ([]byte, []int)
- func (m *ChildBlockMessage) GetChildBlock() *ChildBlock
- func (m *ChildBlockMessage) GetVote() *VoteInfo
- func (*ChildBlockMessage) ProtoMessage()
- func (m *ChildBlockMessage) Reset()
- func (m *ChildBlockMessage) String() string
- func (m *ChildBlockMessage) XXX_DiscardUnknown()
- func (m *ChildBlockMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChildBlockMessage) XXX_Merge(src proto.Message)
- func (m *ChildBlockMessage) XXX_Size() int
- func (m *ChildBlockMessage) XXX_Unmarshal(b []byte) error
- type ClientRequest
- func (*ClientRequest) Descriptor() ([]byte, []int)
- func (m *ClientRequest) GetMessage() string
- func (*ClientRequest) ProtoMessage()
- func (m *ClientRequest) Reset()
- func (m *ClientRequest) String() string
- func (m *ClientRequest) XXX_DiscardUnknown()
- func (m *ClientRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientRequest) XXX_Merge(src proto.Message)
- func (m *ClientRequest) XXX_Size() int
- func (m *ClientRequest) XXX_Unmarshal(b []byte) error
- type ClientResponse
- func (*ClientResponse) Descriptor() ([]byte, []int)
- func (m *ClientResponse) GetMessage() string
- func (*ClientResponse) ProtoMessage()
- func (m *ClientResponse) Reset()
- func (m *ClientResponse) String() string
- func (m *ClientResponse) XXX_DiscardUnknown()
- func (m *ClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClientResponse) XXX_Merge(src proto.Message)
- func (m *ClientResponse) XXX_Size() int
- func (m *ClientResponse) XXX_Unmarshal(b []byte) error
- type ConnectionMessage
- func (*ConnectionMessage) Descriptor() ([]byte, []int)
- func (m *ConnectionMessage) GetMessage() string
- func (*ConnectionMessage) ProtoMessage()
- func (m *ConnectionMessage) Reset()
- func (m *ConnectionMessage) String() string
- func (m *ConnectionMessage) XXX_DiscardUnknown()
- func (m *ConnectionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnectionMessage) XXX_Merge(src proto.Message)
- func (m *ConnectionMessage) XXX_Size() int
- func (m *ConnectionMessage) XXX_Unmarshal(b []byte) error
- type Header
- func (*Header) Descriptor() ([]byte, []int)
- func (m *Header) GetBlockID() *BlockID
- func (m *Header) GetHeight() int64
- func (m *Header) GetLastBlockID() *BlockID
- func (m *Header) GetNumTxs() int64
- func (m *Header) GetRootHash() []byte
- func (m *Header) GetSignature() []byte
- func (m *Header) GetSupervisorID() *ID
- func (m *Header) GetTime() *Timestamp
- func (m *Header) GetTotalTxs() int64
- func (*Header) ProtoMessage()
- func (m *Header) Reset()
- func (m *Header) String() string
- func (m *Header) XXX_DiscardUnknown()
- func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Header) XXX_Merge(src proto.Message)
- func (m *Header) XXX_Size() int
- func (m *Header) XXX_Unmarshal(b []byte) error
- type ID
- func (*ID) Descriptor() ([]byte, []int)
- func (m *ID) GetAddress() string
- func (m *ID) GetId() []byte
- func (m *ID) GetPublicKey() []byte
- func (*ID) ProtoMessage()
- func (m *ID) Reset()
- func (m *ID) String() string
- func (m *ID) XXX_DiscardUnknown()
- func (m *ID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ID) XXX_Merge(src proto.Message)
- func (m *ID) XXX_Size() int
- func (m *ID) XXX_Unmarshal(b []byte) error
- type LookupNodeRequest
- func (*LookupNodeRequest) Descriptor() ([]byte, []int)
- func (m *LookupNodeRequest) GetTarget() *ID
- func (*LookupNodeRequest) ProtoMessage()
- func (m *LookupNodeRequest) Reset()
- func (m *LookupNodeRequest) String() string
- func (m *LookupNodeRequest) XXX_DiscardUnknown()
- func (m *LookupNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LookupNodeRequest) XXX_Merge(src proto.Message)
- func (m *LookupNodeRequest) XXX_Size() int
- func (m *LookupNodeRequest) XXX_Unmarshal(b []byte) error
- type LookupNodeResponse
- func (*LookupNodeResponse) Descriptor() ([]byte, []int)
- func (m *LookupNodeResponse) GetPeers() []*ID
- func (*LookupNodeResponse) ProtoMessage()
- func (m *LookupNodeResponse) Reset()
- func (m *LookupNodeResponse) String() string
- func (m *LookupNodeResponse) XXX_DiscardUnknown()
- func (m *LookupNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LookupNodeResponse) XXX_Merge(src proto.Message)
- func (m *LookupNodeResponse) XXX_Size() int
- func (m *LookupNodeResponse) XXX_Unmarshal(b []byte) error
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetMessage() []byte
- func (m *Message) GetMessageNonce() uint64
- func (m *Message) GetOpcode() uint32
- func (m *Message) GetReplyFlag() bool
- func (m *Message) GetRequestNonce() uint64
- func (m *Message) GetSender() *ID
- func (m *Message) GetSignature() []byte
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (m *Message) XXX_DiscardUnknown()
- func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Message) XXX_Merge(src proto.Message)
- func (m *Message) XXX_Size() int
- func (m *Message) XXX_Unmarshal(b []byte) error
- type Ping
- func (*Ping) Descriptor() ([]byte, []int)
- func (*Ping) ProtoMessage()
- func (m *Ping) Reset()
- func (m *Ping) String() string
- func (m *Ping) XXX_DiscardUnknown()
- func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ping) XXX_Merge(src proto.Message)
- func (m *Ping) XXX_Size() int
- func (m *Ping) XXX_Unmarshal(b []byte) error
- type Pong
- func (*Pong) Descriptor() ([]byte, []int)
- func (*Pong) ProtoMessage()
- func (m *Pong) Reset()
- func (m *Pong) String() string
- func (m *Pong) XXX_DiscardUnknown()
- func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pong) XXX_Merge(src proto.Message)
- func (m *Pong) XXX_Size() int
- func (m *Pong) XXX_Unmarshal(b []byte) error
- type Timestamp
- func (*Timestamp) Descriptor() ([]byte, []int)
- func (m *Timestamp) GetNanos() int64
- func (m *Timestamp) GetSeconds() int64
- func (*Timestamp) ProtoMessage()
- func (m *Timestamp) Reset()
- func (m *Timestamp) String() string
- func (m *Timestamp) XXX_DiscardUnknown()
- func (m *Timestamp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Timestamp) XXX_Merge(src proto.Message)
- func (m *Timestamp) XXX_Size() int
- func (m *Timestamp) XXX_Unmarshal(b []byte) error
- type TxsData
- func (*TxsData) Descriptor() ([]byte, []int)
- func (m *TxsData) GetTx() [][]byte
- func (*TxsData) ProtoMessage()
- func (m *TxsData) Reset()
- func (m *TxsData) String() string
- func (m *TxsData) XXX_DiscardUnknown()
- func (m *TxsData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TxsData) XXX_Merge(src proto.Message)
- func (m *TxsData) XXX_Size() int
- func (m *TxsData) XXX_Unmarshal(b []byte) error
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetAddress() string
- func (m *Validator) GetPubKey() []byte
- func (m *Validator) GetStakingpower() int64
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) String() string
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type VoteCommit
- func (*VoteCommit) Descriptor() ([]byte, []int)
- func (m *VoteCommit) GetBlockID() *BlockID
- func (m *VoteCommit) GetVote() []*VoteInfo
- func (*VoteCommit) ProtoMessage()
- func (m *VoteCommit) Reset()
- func (m *VoteCommit) String() string
- func (m *VoteCommit) XXX_DiscardUnknown()
- func (m *VoteCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoteCommit) XXX_Merge(src proto.Message)
- func (m *VoteCommit) XXX_Size() int
- func (m *VoteCommit) XXX_Unmarshal(b []byte) error
- type VoteInfo
- func (*VoteInfo) Descriptor() ([]byte, []int)
- func (m *VoteInfo) GetSignature() []byte
- func (m *VoteInfo) GetSignedCurrentBlock() bool
- func (m *VoteInfo) GetValidator() *Validator
- func (*VoteInfo) ProtoMessage()
- func (m *VoteInfo) Reset()
- func (m *VoteInfo) String() string
- func (m *VoteInfo) XXX_DiscardUnknown()
- func (m *VoteInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VoteInfo) XXX_Merge(src proto.Message)
- func (m *VoteInfo) XXX_Size() int
- func (m *VoteInfo) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseBlock ¶
type BaseBlock struct { Header *BaseHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` ChildBlock []byte `protobuf:"bytes,2,opt,name=child_block,json=childBlock,proto3" json:"child_block,omitempty"` Validator []byte `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` NextValidator []byte `protobuf:"bytes,4,opt,name=next_validator,json=nextValidator,proto3" json:"next_validator,omitempty"` VoteCommits []byte `protobuf:"bytes,5,opt,name=vote_commits,json=voteCommits,proto3" json:"vote_commits,omitempty"` TxsData *TxsData `protobuf:"bytes,6,opt,name=txsData,proto3" json:"txsData,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BaseBlock) Descriptor ¶
func (*BaseBlock) GetChildBlock ¶
func (*BaseBlock) GetHeader ¶
func (m *BaseBlock) GetHeader() *BaseHeader
func (*BaseBlock) GetNextValidator ¶
func (*BaseBlock) GetTxsData ¶
func (*BaseBlock) GetValidator ¶
func (*BaseBlock) GetVoteCommits ¶
func (*BaseBlock) ProtoMessage ¶
func (*BaseBlock) ProtoMessage()
func (*BaseBlock) XXX_DiscardUnknown ¶
func (m *BaseBlock) XXX_DiscardUnknown()
func (*BaseBlock) XXX_Marshal ¶
func (*BaseBlock) XXX_Unmarshal ¶
type BaseHeader ¶
type BaseHeader struct { LastBlockID *BlockID `protobuf:"bytes,1,opt,name=lastBlockID,proto3" json:"lastBlockID,omitempty"` // Base block ID having hash Block_ID *BlockID `protobuf:"bytes,2,opt,name=block_ID,json=blockID,proto3" json:"block_ID,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` // Simple Merkle root of the current validators who verified the current block ValidatorGroupHash []byte `protobuf:"bytes,4,opt,name=validatorGroupHash,proto3" json:"validatorGroupHash,omitempty"` // Simple Merkle root of the Validators for the next block NextValidatorGroupHash []byte `protobuf:"bytes,5,opt,name=nextValidatorGroupHash,proto3" json:"nextValidatorGroupHash,omitempty"` // Time of block intialization Time *Timestamp `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` // Merkle root hash of vote from validators from the current block LastVoteHash []byte `protobuf:"bytes,7,opt,name=last_vote_hash,json=lastVoteHash,proto3" json:"last_vote_hash,omitempty"` // Merkle root hash of the child blocks ChildBlockHash []byte `protobuf:"bytes,8,opt,name=child_block_hash,json=childBlockHash,proto3" json:"child_block_hash,omitempty"` // Holds the global state trie created by encoded herdius accounts StateRoot []byte `protobuf:"bytes,9,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"` // Merkle root hash of the transactions in SingularBlock RootHash []byte `protobuf:"bytes,10,opt,name=rootHash,proto3" json:"rootHash,omitempty"` TotalTxs uint64 `protobuf:"varint,11,opt,name=total_txs,json=totalTxs,proto3" json:"total_txs,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BaseHeader) Descriptor ¶
func (*BaseHeader) Descriptor() ([]byte, []int)
func (*BaseHeader) GetBlock_ID ¶
func (m *BaseHeader) GetBlock_ID() *BlockID
func (*BaseHeader) GetChildBlockHash ¶
func (m *BaseHeader) GetChildBlockHash() []byte
func (*BaseHeader) GetHeight ¶
func (m *BaseHeader) GetHeight() int64
func (*BaseHeader) GetLastBlockID ¶
func (m *BaseHeader) GetLastBlockID() *BlockID
func (*BaseHeader) GetLastVoteHash ¶
func (m *BaseHeader) GetLastVoteHash() []byte
func (*BaseHeader) GetNextValidatorGroupHash ¶
func (m *BaseHeader) GetNextValidatorGroupHash() []byte
func (*BaseHeader) GetRootHash ¶
func (m *BaseHeader) GetRootHash() []byte
func (*BaseHeader) GetStateRoot ¶
func (m *BaseHeader) GetStateRoot() []byte
func (*BaseHeader) GetTime ¶
func (m *BaseHeader) GetTime() *Timestamp
func (*BaseHeader) GetTotalTxs ¶
func (m *BaseHeader) GetTotalTxs() uint64
func (*BaseHeader) GetValidatorGroupHash ¶
func (m *BaseHeader) GetValidatorGroupHash() []byte
func (*BaseHeader) ProtoMessage ¶
func (*BaseHeader) ProtoMessage()
func (*BaseHeader) Reset ¶
func (m *BaseHeader) Reset()
func (*BaseHeader) String ¶
func (m *BaseHeader) String() string
func (*BaseHeader) XXX_DiscardUnknown ¶
func (m *BaseHeader) XXX_DiscardUnknown()
func (*BaseHeader) XXX_Marshal ¶
func (m *BaseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BaseHeader) XXX_Merge ¶
func (m *BaseHeader) XXX_Merge(src proto.Message)
func (*BaseHeader) XXX_Size ¶
func (m *BaseHeader) XXX_Size() int
func (*BaseHeader) XXX_Unmarshal ¶
func (m *BaseHeader) XXX_Unmarshal(b []byte) error
type BlockID ¶
type BlockID struct { BlockHash []byte `protobuf:"bytes,1,opt,name=blockHash,proto3" json:"blockHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BlockID) Descriptor ¶
func (*BlockID) GetBlockHash ¶
func (*BlockID) ProtoMessage ¶
func (*BlockID) ProtoMessage()
func (*BlockID) XXX_DiscardUnknown ¶
func (m *BlockID) XXX_DiscardUnknown()
func (*BlockID) XXX_Marshal ¶
func (*BlockID) XXX_Unmarshal ¶
type Bytes ¶
type Bytes struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Bytes) Descriptor ¶
func (*Bytes) ProtoMessage ¶
func (*Bytes) ProtoMessage()
func (*Bytes) XXX_DiscardUnknown ¶
func (m *Bytes) XXX_DiscardUnknown()
func (*Bytes) XXX_Marshal ¶
func (*Bytes) XXX_Unmarshal ¶
type ChildBlock ¶
type ChildBlock struct { Header *Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` TxsData *TxsData `protobuf:"bytes,2,opt,name=txsData,proto3" json:"txsData,omitempty"` LastVotes *VoteCommit `protobuf:"bytes,3,opt,name=lastVotes,proto3" json:"lastVotes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChildBlock) Descriptor ¶
func (*ChildBlock) Descriptor() ([]byte, []int)
func (*ChildBlock) GetHeader ¶
func (m *ChildBlock) GetHeader() *Header
func (*ChildBlock) GetLastVotes ¶
func (m *ChildBlock) GetLastVotes() *VoteCommit
func (*ChildBlock) GetTxsData ¶
func (m *ChildBlock) GetTxsData() *TxsData
func (*ChildBlock) ProtoMessage ¶
func (*ChildBlock) ProtoMessage()
func (*ChildBlock) Reset ¶
func (m *ChildBlock) Reset()
func (*ChildBlock) String ¶
func (m *ChildBlock) String() string
func (*ChildBlock) XXX_DiscardUnknown ¶
func (m *ChildBlock) XXX_DiscardUnknown()
func (*ChildBlock) XXX_Marshal ¶
func (m *ChildBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChildBlock) XXX_Merge ¶
func (m *ChildBlock) XXX_Merge(src proto.Message)
func (*ChildBlock) XXX_Size ¶
func (m *ChildBlock) XXX_Size() int
func (*ChildBlock) XXX_Unmarshal ¶
func (m *ChildBlock) XXX_Unmarshal(b []byte) error
type ChildBlockMessage ¶
type ChildBlockMessage struct { Vote *VoteInfo `protobuf:"bytes,1,opt,name=vote,proto3" json:"vote,omitempty"` ChildBlock *ChildBlock `protobuf:"bytes,2,opt,name=childBlock,proto3" json:"childBlock,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChildBlockMessage) Descriptor ¶
func (*ChildBlockMessage) Descriptor() ([]byte, []int)
func (*ChildBlockMessage) GetChildBlock ¶
func (m *ChildBlockMessage) GetChildBlock() *ChildBlock
func (*ChildBlockMessage) GetVote ¶
func (m *ChildBlockMessage) GetVote() *VoteInfo
func (*ChildBlockMessage) ProtoMessage ¶
func (*ChildBlockMessage) ProtoMessage()
func (*ChildBlockMessage) Reset ¶
func (m *ChildBlockMessage) Reset()
func (*ChildBlockMessage) String ¶
func (m *ChildBlockMessage) String() string
func (*ChildBlockMessage) XXX_DiscardUnknown ¶
func (m *ChildBlockMessage) XXX_DiscardUnknown()
func (*ChildBlockMessage) XXX_Marshal ¶
func (m *ChildBlockMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChildBlockMessage) XXX_Merge ¶
func (m *ChildBlockMessage) XXX_Merge(src proto.Message)
func (*ChildBlockMessage) XXX_Size ¶
func (m *ChildBlockMessage) XXX_Size() int
func (*ChildBlockMessage) XXX_Unmarshal ¶
func (m *ChildBlockMessage) XXX_Unmarshal(b []byte) error
type ClientRequest ¶
type ClientRequest struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientRequest) Descriptor ¶
func (*ClientRequest) Descriptor() ([]byte, []int)
func (*ClientRequest) GetMessage ¶
func (m *ClientRequest) GetMessage() string
func (*ClientRequest) ProtoMessage ¶
func (*ClientRequest) ProtoMessage()
func (*ClientRequest) Reset ¶
func (m *ClientRequest) Reset()
func (*ClientRequest) String ¶
func (m *ClientRequest) String() string
func (*ClientRequest) XXX_DiscardUnknown ¶
func (m *ClientRequest) XXX_DiscardUnknown()
func (*ClientRequest) XXX_Marshal ¶
func (m *ClientRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientRequest) XXX_Merge ¶
func (m *ClientRequest) XXX_Merge(src proto.Message)
func (*ClientRequest) XXX_Size ¶
func (m *ClientRequest) XXX_Size() int
func (*ClientRequest) XXX_Unmarshal ¶
func (m *ClientRequest) XXX_Unmarshal(b []byte) error
type ClientResponse ¶
type ClientResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ClientResponse) Descriptor ¶
func (*ClientResponse) Descriptor() ([]byte, []int)
func (*ClientResponse) GetMessage ¶
func (m *ClientResponse) GetMessage() string
func (*ClientResponse) ProtoMessage ¶
func (*ClientResponse) ProtoMessage()
func (*ClientResponse) Reset ¶
func (m *ClientResponse) Reset()
func (*ClientResponse) String ¶
func (m *ClientResponse) String() string
func (*ClientResponse) XXX_DiscardUnknown ¶
func (m *ClientResponse) XXX_DiscardUnknown()
func (*ClientResponse) XXX_Marshal ¶
func (m *ClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ClientResponse) XXX_Merge ¶
func (m *ClientResponse) XXX_Merge(src proto.Message)
func (*ClientResponse) XXX_Size ¶
func (m *ClientResponse) XXX_Size() int
func (*ClientResponse) XXX_Unmarshal ¶
func (m *ClientResponse) XXX_Unmarshal(b []byte) error
type ConnectionMessage ¶
type ConnectionMessage struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConnectionMessage) Descriptor ¶
func (*ConnectionMessage) Descriptor() ([]byte, []int)
func (*ConnectionMessage) GetMessage ¶
func (m *ConnectionMessage) GetMessage() string
func (*ConnectionMessage) ProtoMessage ¶
func (*ConnectionMessage) ProtoMessage()
func (*ConnectionMessage) Reset ¶
func (m *ConnectionMessage) Reset()
func (*ConnectionMessage) String ¶
func (m *ConnectionMessage) String() string
func (*ConnectionMessage) XXX_DiscardUnknown ¶
func (m *ConnectionMessage) XXX_DiscardUnknown()
func (*ConnectionMessage) XXX_Marshal ¶
func (m *ConnectionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnectionMessage) XXX_Merge ¶
func (m *ConnectionMessage) XXX_Merge(src proto.Message)
func (*ConnectionMessage) XXX_Size ¶
func (m *ConnectionMessage) XXX_Size() int
func (*ConnectionMessage) XXX_Unmarshal ¶
func (m *ConnectionMessage) XXX_Unmarshal(b []byte) error
type Header ¶
type Header struct { // Supervisor's public key. SupervisorID *ID `protobuf:"bytes,1,opt,name=supervisorID,proto3" json:"supervisorID,omitempty"` // Previous block id LastBlockID *BlockID `protobuf:"bytes,2,opt,name=lastBlockID,proto3" json:"lastBlockID,omitempty"` // Number of transactions NumTxs int64 `protobuf:"varint,3,opt,name=numTxs,proto3" json:"numTxs,omitempty"` TotalTxs int64 `protobuf:"varint,4,opt,name=totalTxs,proto3" json:"totalTxs,omitempty"` Height int64 `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"` // Time of block intialization Time *Timestamp `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"` // Sender's signature of message. Signature []byte `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"` // Merkle root hash of the transactions RootHash []byte `protobuf:"bytes,8,opt,name=rootHash,proto3" json:"rootHash,omitempty"` // Child block ID having hash BlockID *BlockID `protobuf:"bytes,9,opt,name=blockID,proto3" json:"blockID,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Header) Descriptor ¶
func (*Header) GetBlockID ¶
func (*Header) GetLastBlockID ¶
func (*Header) GetRootHash ¶
func (*Header) GetSignature ¶
func (*Header) GetSupervisorID ¶
func (*Header) GetTotalTxs ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) XXX_DiscardUnknown ¶
func (m *Header) XXX_DiscardUnknown()
func (*Header) XXX_Marshal ¶
func (*Header) XXX_Unmarshal ¶
type ID ¶
type ID struct { // public_key of the peer (we no longer use the public key as the peer ID, but use it to verify messages) PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // address is the network address of the peer Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // id is the computed hash of the public key Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ID) Descriptor ¶
func (*ID) GetAddress ¶
func (*ID) GetPublicKey ¶
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) XXX_DiscardUnknown ¶
func (m *ID) XXX_DiscardUnknown()
func (*ID) XXX_Unmarshal ¶
type LookupNodeRequest ¶
type LookupNodeRequest struct { Target *ID `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LookupNodeRequest) Descriptor ¶
func (*LookupNodeRequest) Descriptor() ([]byte, []int)
func (*LookupNodeRequest) GetTarget ¶
func (m *LookupNodeRequest) GetTarget() *ID
func (*LookupNodeRequest) ProtoMessage ¶
func (*LookupNodeRequest) ProtoMessage()
func (*LookupNodeRequest) Reset ¶
func (m *LookupNodeRequest) Reset()
func (*LookupNodeRequest) String ¶
func (m *LookupNodeRequest) String() string
func (*LookupNodeRequest) XXX_DiscardUnknown ¶
func (m *LookupNodeRequest) XXX_DiscardUnknown()
func (*LookupNodeRequest) XXX_Marshal ¶
func (m *LookupNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LookupNodeRequest) XXX_Merge ¶
func (m *LookupNodeRequest) XXX_Merge(src proto.Message)
func (*LookupNodeRequest) XXX_Size ¶
func (m *LookupNodeRequest) XXX_Size() int
func (*LookupNodeRequest) XXX_Unmarshal ¶
func (m *LookupNodeRequest) XXX_Unmarshal(b []byte) error
type LookupNodeResponse ¶
type LookupNodeResponse struct { Peers []*ID `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LookupNodeResponse) Descriptor ¶
func (*LookupNodeResponse) Descriptor() ([]byte, []int)
func (*LookupNodeResponse) GetPeers ¶
func (m *LookupNodeResponse) GetPeers() []*ID
func (*LookupNodeResponse) ProtoMessage ¶
func (*LookupNodeResponse) ProtoMessage()
func (*LookupNodeResponse) Reset ¶
func (m *LookupNodeResponse) Reset()
func (*LookupNodeResponse) String ¶
func (m *LookupNodeResponse) String() string
func (*LookupNodeResponse) XXX_DiscardUnknown ¶
func (m *LookupNodeResponse) XXX_DiscardUnknown()
func (*LookupNodeResponse) XXX_Marshal ¶
func (m *LookupNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LookupNodeResponse) XXX_Merge ¶
func (m *LookupNodeResponse) XXX_Merge(src proto.Message)
func (*LookupNodeResponse) XXX_Size ¶
func (m *LookupNodeResponse) XXX_Size() int
func (*LookupNodeResponse) XXX_Unmarshal ¶
func (m *LookupNodeResponse) XXX_Unmarshal(b []byte) error
type Message ¶
type Message struct { Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // Sender's address and public key. Sender *ID `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` // Sender's signature of message. Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // request_nonce is the request/response ID. Null if ID associated to a message is not a request/response. RequestNonce uint64 `protobuf:"varint,4,opt,name=request_nonce,json=requestNonce,proto3" json:"request_nonce,omitempty"` // message_nonce is the sequence ID. MessageNonce uint64 `protobuf:"varint,5,opt,name=message_nonce,json=messageNonce,proto3" json:"message_nonce,omitempty"` // reply_flag indicates this is a reply to a request ReplyFlag bool `protobuf:"varint,6,opt,name=reply_flag,json=replyFlag,proto3" json:"reply_flag,omitempty"` // opcode specifies the message type Opcode uint32 `protobuf:"varint,7,opt,name=opcode,proto3" json:"opcode,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Message) Descriptor ¶
func (*Message) GetMessage ¶
func (*Message) GetMessageNonce ¶
func (*Message) GetReplyFlag ¶
func (*Message) GetRequestNonce ¶
func (*Message) GetSignature ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) XXX_DiscardUnknown ¶
func (m *Message) XXX_DiscardUnknown()
func (*Message) XXX_Marshal ¶
func (*Message) XXX_Unmarshal ¶
type Ping ¶
type Ping struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ping) Descriptor ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Unmarshal ¶
type Pong ¶
type Pong struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pong) Descriptor ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) XXX_DiscardUnknown ¶
func (m *Pong) XXX_DiscardUnknown()
func (*Pong) XXX_Unmarshal ¶
type Timestamp ¶
type Timestamp struct { Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"` Nanos int64 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Timestamp wraps how amino encodes time. This is the protobuf well-known type protobuf/timestamp.proto See: https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135 NOTE/XXX: nanos do not get skipped if they are zero in amino.
func (*Timestamp) Descriptor ¶
func (*Timestamp) GetSeconds ¶
func (*Timestamp) ProtoMessage ¶
func (*Timestamp) ProtoMessage()
func (*Timestamp) XXX_DiscardUnknown ¶
func (m *Timestamp) XXX_DiscardUnknown()
func (*Timestamp) XXX_Marshal ¶
func (*Timestamp) XXX_Unmarshal ¶
type TxsData ¶
type TxsData struct { Tx [][]byte `protobuf:"bytes,1,rep,name=tx,proto3" json:"tx,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Transactions Data
func (*TxsData) Descriptor ¶
func (*TxsData) ProtoMessage ¶
func (*TxsData) ProtoMessage()
func (*TxsData) XXX_DiscardUnknown ¶
func (m *TxsData) XXX_DiscardUnknown()
func (*TxsData) XXX_Marshal ¶
func (*TxsData) XXX_Unmarshal ¶
type Validator ¶
type Validator struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` PubKey []byte `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` Stakingpower int64 `protobuf:"varint,3,opt,name=stakingpower,proto3" json:"stakingpower,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Validator
func (*Validator) Descriptor ¶
func (*Validator) GetAddress ¶
func (*Validator) GetStakingpower ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
type VoteCommit ¶
type VoteCommit struct { BlockID *BlockID `protobuf:"bytes,1,opt,name=blockID,proto3" json:"blockID,omitempty"` Vote []*VoteInfo `protobuf:"bytes,2,rep,name=vote,proto3" json:"vote,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*VoteCommit) Descriptor ¶
func (*VoteCommit) Descriptor() ([]byte, []int)
func (*VoteCommit) GetBlockID ¶
func (m *VoteCommit) GetBlockID() *BlockID
func (*VoteCommit) GetVote ¶
func (m *VoteCommit) GetVote() []*VoteInfo
func (*VoteCommit) ProtoMessage ¶
func (*VoteCommit) ProtoMessage()
func (*VoteCommit) Reset ¶
func (m *VoteCommit) Reset()
func (*VoteCommit) String ¶
func (m *VoteCommit) String() string
func (*VoteCommit) XXX_DiscardUnknown ¶
func (m *VoteCommit) XXX_DiscardUnknown()
func (*VoteCommit) XXX_Marshal ¶
func (m *VoteCommit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VoteCommit) XXX_Merge ¶
func (m *VoteCommit) XXX_Merge(src proto.Message)
func (*VoteCommit) XXX_Size ¶
func (m *VoteCommit) XXX_Size() int
func (*VoteCommit) XXX_Unmarshal ¶
func (m *VoteCommit) XXX_Unmarshal(b []byte) error
type VoteInfo ¶
type VoteInfo struct { Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` SignedCurrentBlock bool `protobuf:"varint,2,opt,name=signed_current_block,json=signedCurrentBlock,proto3" json:"signed_current_block,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
VoteInfo
func (*VoteInfo) Descriptor ¶
func (*VoteInfo) GetSignature ¶
func (*VoteInfo) GetSignedCurrentBlock ¶
func (*VoteInfo) GetValidator ¶
func (*VoteInfo) ProtoMessage ¶
func (*VoteInfo) ProtoMessage()
func (*VoteInfo) XXX_DiscardUnknown ¶
func (m *VoteInfo) XXX_DiscardUnknown()
func (*VoteInfo) XXX_Marshal ¶
func (*VoteInfo) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.