protobuf

package
v0.0.0-...-868bdbc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: AGPL-3.0 Imports: 4 Imported by: 1

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*BaseBlock) GetChildBlock

func (m *BaseBlock) GetChildBlock() []byte

func (*BaseBlock) GetHeader

func (m *BaseBlock) GetHeader() *BaseHeader

func (*BaseBlock) GetNextValidator

func (m *BaseBlock) GetNextValidator() []byte

func (*BaseBlock) GetTxsData

func (m *BaseBlock) GetTxsData() *TxsData

func (*BaseBlock) GetValidator

func (m *BaseBlock) GetValidator() []byte

func (*BaseBlock) GetVoteCommits

func (m *BaseBlock) GetVoteCommits() []byte

func (*BaseBlock) ProtoMessage

func (*BaseBlock) ProtoMessage()

func (*BaseBlock) Reset

func (m *BaseBlock) Reset()

func (*BaseBlock) String

func (m *BaseBlock) String() string

func (*BaseBlock) XXX_DiscardUnknown

func (m *BaseBlock) XXX_DiscardUnknown()

func (*BaseBlock) XXX_Marshal

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

func (*BaseBlock) XXX_Merge

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

func (*BaseBlock) XXX_Size

func (m *BaseBlock) XXX_Size() int

func (*BaseBlock) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*BlockID) GetBlockHash

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

func (*BlockID) ProtoMessage

func (*BlockID) ProtoMessage()

func (*BlockID) Reset

func (m *BlockID) Reset()

func (*BlockID) String

func (m *BlockID) String() string

func (*BlockID) XXX_DiscardUnknown

func (m *BlockID) XXX_DiscardUnknown()

func (*BlockID) XXX_Marshal

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

func (*BlockID) XXX_Merge

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

func (*BlockID) XXX_Size

func (m *BlockID) XXX_Size() int

func (*BlockID) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Bytes) GetData

func (m *Bytes) GetData() []byte

func (*Bytes) ProtoMessage

func (*Bytes) ProtoMessage()

func (*Bytes) Reset

func (m *Bytes) Reset()

func (*Bytes) String

func (m *Bytes) String() string

func (*Bytes) XXX_DiscardUnknown

func (m *Bytes) XXX_DiscardUnknown()

func (*Bytes) XXX_Marshal

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

func (*Bytes) XXX_Merge

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

func (*Bytes) XXX_Size

func (m *Bytes) XXX_Size() int

func (*Bytes) XXX_Unmarshal

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

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 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) Descriptor() ([]byte, []int)

func (*Header) GetBlockID

func (m *Header) GetBlockID() *BlockID

func (*Header) GetHeight

func (m *Header) GetHeight() int64

func (*Header) GetLastBlockID

func (m *Header) GetLastBlockID() *BlockID

func (*Header) GetNumTxs

func (m *Header) GetNumTxs() int64

func (*Header) GetRootHash

func (m *Header) GetRootHash() []byte

func (*Header) GetSignature

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

func (*Header) GetSupervisorID

func (m *Header) GetSupervisorID() *ID

func (*Header) GetTime

func (m *Header) GetTime() *Timestamp

func (*Header) GetTotalTxs

func (m *Header) GetTotalTxs() int64

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) String

func (m *Header) String() string

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

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

func (*Header) XXX_Merge

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

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*ID) GetAddress

func (m *ID) GetAddress() string

func (*ID) GetId

func (m *ID) GetId() []byte

func (*ID) GetPublicKey

func (m *ID) GetPublicKey() []byte

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) Reset

func (m *ID) Reset()

func (*ID) String

func (m *ID) String() string

func (*ID) XXX_DiscardUnknown

func (m *ID) XXX_DiscardUnknown()

func (*ID) XXX_Marshal

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

func (*ID) XXX_Merge

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

func (*ID) XXX_Size

func (m *ID) XXX_Size() int

func (*ID) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Message) GetMessage

func (m *Message) GetMessage() []byte

func (*Message) GetMessageNonce

func (m *Message) GetMessageNonce() uint64

func (*Message) GetOpcode

func (m *Message) GetOpcode() uint32

func (*Message) GetReplyFlag

func (m *Message) GetReplyFlag() bool

func (*Message) GetRequestNonce

func (m *Message) GetRequestNonce() uint64

func (*Message) GetSender

func (m *Message) GetSender() *ID

func (*Message) GetSignature

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

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

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

type Ping

type Ping struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ping) Descriptor

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

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

func (*Ping) XXX_DiscardUnknown

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal

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

func (*Ping) XXX_Merge

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

func (*Ping) XXX_Size

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal

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

type Pong

type Pong struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Pong) Descriptor

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

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) String

func (m *Pong) String() string

func (*Pong) XXX_DiscardUnknown

func (m *Pong) XXX_DiscardUnknown()

func (*Pong) XXX_Marshal

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

func (*Pong) XXX_Merge

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

func (*Pong) XXX_Size

func (m *Pong) XXX_Size() int

func (*Pong) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Timestamp) GetNanos

func (m *Timestamp) GetNanos() int64

func (*Timestamp) GetSeconds

func (m *Timestamp) GetSeconds() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) Reset

func (m *Timestamp) Reset()

func (*Timestamp) String

func (m *Timestamp) String() string

func (*Timestamp) XXX_DiscardUnknown

func (m *Timestamp) XXX_DiscardUnknown()

func (*Timestamp) XXX_Marshal

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

func (*Timestamp) XXX_Merge

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

func (*Timestamp) XXX_Size

func (m *Timestamp) XXX_Size() int

func (*Timestamp) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*TxsData) GetTx

func (m *TxsData) GetTx() [][]byte

func (*TxsData) ProtoMessage

func (*TxsData) ProtoMessage()

func (*TxsData) Reset

func (m *TxsData) Reset()

func (*TxsData) String

func (m *TxsData) String() string

func (*TxsData) XXX_DiscardUnknown

func (m *TxsData) XXX_DiscardUnknown()

func (*TxsData) XXX_Marshal

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

func (*TxsData) XXX_Merge

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

func (*TxsData) XXX_Size

func (m *TxsData) XXX_Size() int

func (*TxsData) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Validator) GetAddress

func (m *Validator) GetAddress() string

func (*Validator) GetPubKey

func (m *Validator) GetPubKey() []byte

func (*Validator) GetStakingpower

func (m *Validator) GetStakingpower() int64

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) String

func (m *Validator) String() string

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*VoteInfo) GetSignature

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

func (*VoteInfo) GetSignedCurrentBlock

func (m *VoteInfo) GetSignedCurrentBlock() bool

func (*VoteInfo) GetValidator

func (m *VoteInfo) GetValidator() *Validator

func (*VoteInfo) ProtoMessage

func (*VoteInfo) ProtoMessage()

func (*VoteInfo) Reset

func (m *VoteInfo) Reset()

func (*VoteInfo) String

func (m *VoteInfo) String() string

func (*VoteInfo) XXX_DiscardUnknown

func (m *VoteInfo) XXX_DiscardUnknown()

func (*VoteInfo) XXX_Marshal

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

func (*VoteInfo) XXX_Merge

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

func (*VoteInfo) XXX_Size

func (m *VoteInfo) XXX_Size() int

func (*VoteInfo) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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