Documentation ¶
Index ¶
- 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 (dst *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) GetNextValidatorGroupHash() []byte
- func (m *ChildBlock) GetNumTxs() int64
- func (m *ChildBlock) GetSignature() []byte
- func (m *ChildBlock) GetSupervisorID() *ID
- func (m *ChildBlock) GetTime() *Timestamp
- func (m *ChildBlock) GetTxs() []byte
- func (m *ChildBlock) GetValidatorGroupHash() []byte
- 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 (dst *ChildBlock) XXX_Merge(src proto.Message)
- func (m *ChildBlock) XXX_Size() int
- func (m *ChildBlock) 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 (dst *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 (dst *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 (dst *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 (dst *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 (dst *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 (dst *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() int32
- 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 (dst *Timestamp) XXX_Merge(src proto.Message)
- func (m *Timestamp) XXX_Size() int
- func (m *Timestamp) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 { SupervisorID *ID `protobuf:"bytes,1,opt,name=supervisorID,proto3" json:"supervisorID,omitempty"` Txs []byte `protobuf:"bytes,2,opt,name=txs,proto3" json:"txs,omitempty"` NumTxs int64 `protobuf:"varint,3,opt,name=numTxs,proto3" json:"numTxs,omitempty"` Time *Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` Signature []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"` ValidatorGroupHash []byte `protobuf:"bytes,6,opt,name=validatorGroupHash,proto3" json:"validatorGroupHash,omitempty"` NextValidatorGroupHash []byte `protobuf:"bytes,7,opt,name=nextValidatorGroupHash,proto3" json:"nextValidatorGroupHash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChildBlock) Descriptor ¶
func (*ChildBlock) Descriptor() ([]byte, []int)
func (*ChildBlock) GetNextValidatorGroupHash ¶
func (m *ChildBlock) GetNextValidatorGroupHash() []byte
func (*ChildBlock) GetNumTxs ¶
func (m *ChildBlock) GetNumTxs() int64
func (*ChildBlock) GetSignature ¶
func (m *ChildBlock) GetSignature() []byte
func (*ChildBlock) GetSupervisorID ¶
func (m *ChildBlock) GetSupervisorID() *ID
func (*ChildBlock) GetTime ¶
func (m *ChildBlock) GetTime() *Timestamp
func (*ChildBlock) GetTxs ¶
func (m *ChildBlock) GetTxs() []byte
func (*ChildBlock) GetValidatorGroupHash ¶
func (m *ChildBlock) GetValidatorGroupHash() []byte
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 (dst *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 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 (dst *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 (dst *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 int32 `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 ¶
Click to show internal directories.
Click to hide internal directories.