Documentation
¶
Index ¶
- Constants
- func Marshal(md *ConfigMetadata) ([]byte, error)
- func RegisterConsensusServer(s *grpc.Server, srv ConsensusServer)
- type Batch
- func (m *Batch) DecodeHeader() *BatchHeader
- func (*Batch) Descriptor() ([]byte, []int)
- func (m *Batch) GetHeader() []byte
- func (m *Batch) GetPayloads() [][]byte
- func (m *Batch) GetSignatures() map[uint64][]byte
- func (m *Batch) Hash() []byte
- func (*Batch) ProtoMessage()
- func (m *Batch) Reset()
- func (m *Batch) String() string
- func (m *Batch) XXX_DiscardUnknown()
- func (m *Batch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Batch) XXX_Merge(src proto.Message)
- func (m *Batch) XXX_Size() int
- func (m *Batch) XXX_Unmarshal(b []byte) error
- type BatchHeader
- func (*BatchHeader) Descriptor() ([]byte, []int)
- func (m *BatchHeader) GetDataHash() []byte
- func (m *BatchHeader) GetPrevHash() []byte
- func (m *BatchHeader) GetSeq() uint64
- func (*BatchHeader) ProtoMessage()
- func (m *BatchHeader) Reset()
- func (m *BatchHeader) String() string
- func (m *BatchHeader) XXX_DiscardUnknown()
- func (m *BatchHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *BatchHeader) XXX_Merge(src proto.Message)
- func (m *BatchHeader) XXX_Size() int
- func (m *BatchHeader) XXX_Unmarshal(b []byte) error
- type Checkpoint
- func (*Checkpoint) Descriptor() ([]byte, []int)
- func (m *Checkpoint) GetDigest() []byte
- func (m *Checkpoint) GetSeq() uint64
- func (m *Checkpoint) GetSignature() []byte
- func (*Checkpoint) ProtoMessage()
- func (m *Checkpoint) Reset()
- func (m *Checkpoint) String() string
- func (m *Checkpoint) XXX_DiscardUnknown()
- func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Checkpoint) XXX_Merge(src proto.Message)
- func (m *Checkpoint) XXX_Size() int
- func (m *Checkpoint) XXX_Unmarshal(b []byte) error
- type ConfigMetadata
- func (*ConfigMetadata) Descriptor() ([]byte, []int)
- func (m *ConfigMetadata) GetConsenters() []*Consenter
- func (m *ConfigMetadata) GetOptions() *Options
- func (*ConfigMetadata) ProtoMessage()
- func (m *ConfigMetadata) Reset()
- func (m *ConfigMetadata) String() string
- func (m *ConfigMetadata) XXX_DiscardUnknown()
- func (m *ConfigMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConfigMetadata) XXX_Merge(src proto.Message)
- func (m *ConfigMetadata) XXX_Size() int
- func (m *ConfigMetadata) XXX_Unmarshal(b []byte) error
- type ConsensusClient
- type ConsensusConfig
- func (*ConsensusConfig) Descriptor() ([]byte, []int)
- func (m *ConsensusConfig) GetConsensus() *Options
- func (m *ConsensusConfig) GetPeers() map[string]*Consenter
- func (*ConsensusConfig) ProtoMessage()
- func (m *ConsensusConfig) Reset()
- func (m *ConsensusConfig) String() string
- func (m *ConsensusConfig) XXX_DiscardUnknown()
- func (m *ConsensusConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ConsensusConfig) XXX_Merge(src proto.Message)
- func (m *ConsensusConfig) XXX_Size() int
- func (m *ConsensusConfig) XXX_Unmarshal(b []byte) error
- type ConsensusServer
- type ConsensusTypeMetadataFactory
- type Consensus_ConsensusClient
- type Consensus_ConsensusServer
- type Consenter
- func (*Consenter) Descriptor() ([]byte, []int)
- func (m *Consenter) GetClientSignCert() []byte
- func (m *Consenter) GetHost() string
- func (m *Consenter) GetPort() uint32
- func (m *Consenter) GetServerTlsCert() []byte
- func (*Consenter) ProtoMessage()
- func (m *Consenter) Reset()
- func (m *Consenter) String() string
- func (m *Consenter) XXX_DiscardUnknown()
- func (m *Consenter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Consenter) XXX_Merge(src proto.Message)
- func (m *Consenter) XXX_Size() int
- func (m *Consenter) XXX_Unmarshal(b []byte) error
- type Handshake
- func (*Handshake) Descriptor() ([]byte, []int)
- func (*Handshake) ProtoMessage()
- func (m *Handshake) Reset()
- func (m *Handshake) String() string
- func (m *Handshake) XXX_DiscardUnknown()
- func (m *Handshake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Handshake) XXX_Merge(src proto.Message)
- func (m *Handshake) XXX_Size() int
- func (m *Handshake) XXX_Unmarshal(b []byte) error
- type Hello
- func (*Hello) Descriptor() ([]byte, []int)
- func (m *Hello) GetBatch() *Batch
- func (m *Hello) GetNewView() *NewView
- func (*Hello) ProtoMessage()
- func (m *Hello) Reset()
- func (m *Hello) String() string
- func (m *Hello) XXX_DiscardUnknown()
- func (m *Hello) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Hello) XXX_Merge(src proto.Message)
- func (m *Hello) XXX_Size() int
- func (m *Hello) XXX_Unmarshal(b []byte) error
- type JsonConfig
- func (*JsonConfig) Descriptor() ([]byte, []int)
- func (m *JsonConfig) GetConsensus() *Options
- func (m *JsonConfig) GetPeers() []*Peer
- func (*JsonConfig) ProtoMessage()
- func (m *JsonConfig) Reset()
- func (m *JsonConfig) String() string
- func (m *JsonConfig) XXX_DiscardUnknown()
- func (m *JsonConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *JsonConfig) XXX_Merge(src proto.Message)
- func (m *JsonConfig) XXX_Size() int
- func (m *JsonConfig) XXX_Unmarshal(b []byte) error
- type Msg
- func (*Msg) Descriptor() ([]byte, []int)
- func (m *Msg) GetCheckpoint() *Checkpoint
- func (m *Msg) GetCommit() *Subject
- func (m *Msg) GetHello() *Hello
- func (m *Msg) GetNewView() *NewView
- func (m *Msg) GetPrepare() *Subject
- func (m *Msg) GetPreprepare() *Preprepare
- func (m *Msg) GetRequest() *Request
- func (m *Msg) GetType() isMsg_Type
- func (m *Msg) GetViewChange() *Signed
- func (*Msg) ProtoMessage()
- func (m *Msg) Reset()
- func (m *Msg) String() string
- func (m *Msg) XXX_DiscardUnknown()
- func (m *Msg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Msg) XXX_Merge(src proto.Message)
- func (*Msg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Msg) XXX_Size() int
- func (m *Msg) XXX_Unmarshal(b []byte) error
- type Msg_Checkpoint
- type Msg_Commit
- type Msg_Hello
- type Msg_NewView
- type Msg_Prepare
- type Msg_Preprepare
- type Msg_Request
- type Msg_ViewChange
- type MultiChainMsg
- func (*MultiChainMsg) Descriptor() ([]byte, []int)
- func (m *MultiChainMsg) GetChainID() string
- func (m *MultiChainMsg) GetMsg() *Msg
- func (*MultiChainMsg) ProtoMessage()
- func (m *MultiChainMsg) Reset()
- func (m *MultiChainMsg) String() string
- func (m *MultiChainMsg) XXX_DiscardUnknown()
- func (m *MultiChainMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *MultiChainMsg) XXX_Merge(src proto.Message)
- func (m *MultiChainMsg) XXX_Size() int
- func (m *MultiChainMsg) XXX_Unmarshal(b []byte) error
- type NewView
- func (*NewView) Descriptor() ([]byte, []int)
- func (m *NewView) GetBatch() *Batch
- func (m *NewView) GetView() uint64
- func (m *NewView) GetVset() map[uint64]*Signed
- func (m *NewView) GetXset() *Subject
- func (*NewView) ProtoMessage()
- func (m *NewView) Reset()
- func (m *NewView) String() string
- func (m *NewView) XXX_DiscardUnknown()
- func (m *NewView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *NewView) XXX_Merge(src proto.Message)
- func (m *NewView) XXX_Size() int
- func (m *NewView) XXX_Unmarshal(b []byte) error
- type Options
- func (*Options) Descriptor() ([]byte, []int)
- func (m *Options) GetF() uint64
- func (m *Options) GetN() uint64
- func (m *Options) GetRequestTimeoutNsec() uint64
- func (*Options) ProtoMessage()
- func (m *Options) Reset()
- func (m *Options) String() string
- func (m *Options) XXX_DiscardUnknown()
- func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Options) XXX_Merge(src proto.Message)
- func (m *Options) XXX_Size() int
- func (m *Options) XXX_Unmarshal(b []byte) error
- type Peer
- func (*Peer) Descriptor() ([]byte, []int)
- func (m *Peer) GetAddress() string
- func (m *Peer) GetCert() *Consenter
- func (*Peer) ProtoMessage()
- func (m *Peer) Reset()
- func (m *Peer) String() string
- func (m *Peer) XXX_DiscardUnknown()
- func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Peer) XXX_Merge(src proto.Message)
- func (m *Peer) XXX_Size() int
- func (m *Peer) XXX_Unmarshal(b []byte) error
- type Preprepare
- func (*Preprepare) Descriptor() ([]byte, []int)
- func (m *Preprepare) GetBatch() *Batch
- func (m *Preprepare) GetSeq() *SeqView
- func (*Preprepare) ProtoMessage()
- func (m *Preprepare) Reset()
- func (m *Preprepare) String() string
- func (m *Preprepare) XXX_DiscardUnknown()
- func (m *Preprepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Preprepare) XXX_Merge(src proto.Message)
- func (m *Preprepare) XXX_Size() int
- func (m *Preprepare) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetPayload() []byte
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) String() string
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type SeqView
- func (*SeqView) Descriptor() ([]byte, []int)
- func (m *SeqView) GetSeq() uint64
- func (m *SeqView) GetView() uint64
- func (*SeqView) ProtoMessage()
- func (m *SeqView) Reset()
- func (m *SeqView) String() string
- func (m *SeqView) XXX_DiscardUnknown()
- func (m *SeqView) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *SeqView) XXX_Merge(src proto.Message)
- func (m *SeqView) XXX_Size() int
- func (m *SeqView) XXX_Unmarshal(b []byte) error
- type Signed
- func (*Signed) Descriptor() ([]byte, []int)
- func (m *Signed) GetData() []byte
- func (m *Signed) GetSignature() []byte
- func (*Signed) ProtoMessage()
- func (m *Signed) Reset()
- func (m *Signed) String() string
- func (m *Signed) XXX_DiscardUnknown()
- func (m *Signed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Signed) XXX_Merge(src proto.Message)
- func (m *Signed) XXX_Size() int
- func (m *Signed) XXX_Unmarshal(b []byte) error
- type Subject
- func (*Subject) Descriptor() ([]byte, []int)
- func (m *Subject) GetDigest() []byte
- func (m *Subject) GetSeq() *SeqView
- func (*Subject) ProtoMessage()
- func (m *Subject) Reset()
- func (m *Subject) String() string
- func (m *Subject) XXX_DiscardUnknown()
- func (m *Subject) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Subject) XXX_Merge(src proto.Message)
- func (m *Subject) XXX_Size() int
- func (m *Subject) XXX_Unmarshal(b []byte) error
- type ViewChange
- func (*ViewChange) Descriptor() ([]byte, []int)
- func (m *ViewChange) GetCheckpoint() *Batch
- func (m *ViewChange) GetPset() []*Subject
- func (m *ViewChange) GetQset() []*Subject
- func (m *ViewChange) GetView() uint64
- func (*ViewChange) ProtoMessage()
- func (m *ViewChange) Reset()
- func (m *ViewChange) String() string
- func (m *ViewChange) XXX_DiscardUnknown()
- func (m *ViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ViewChange) XXX_Merge(src proto.Message)
- func (m *ViewChange) XXX_Size() int
- func (m *ViewChange) XXX_Unmarshal(b []byte) error
Constants ¶
const TypeKey = "sbft"
TypeKey is the string with which this consensus implementation is identified across Fabric.
Variables ¶
This section is empty.
Functions ¶
func Marshal ¶
func Marshal(md *ConfigMetadata) ([]byte, error)
Marshal serializes this implementation's proto messages. It is called by the encoder package during the creation of the Orderer ConfigGroup.
func RegisterConsensusServer ¶
func RegisterConsensusServer(s *grpc.Server, srv ConsensusServer)
Types ¶
type Batch ¶
type Batch struct { Header []byte `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` Payloads [][]byte `protobuf:"bytes,2,rep,name=payloads,proto3" json:"payloads,omitempty"` Signatures map[uint64][]byte `` /* 162-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Batch) DecodeHeader ¶
func (m *Batch) DecodeHeader() *BatchHeader
func (*Batch) Descriptor ¶
func (*Batch) GetPayloads ¶
func (*Batch) GetSignatures ¶
func (*Batch) ProtoMessage ¶
func (*Batch) ProtoMessage()
func (*Batch) XXX_DiscardUnknown ¶
func (m *Batch) XXX_DiscardUnknown()
func (*Batch) XXX_Marshal ¶
func (*Batch) XXX_Unmarshal ¶
type BatchHeader ¶
type BatchHeader struct { Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` PrevHash []byte `protobuf:"bytes,2,opt,name=prev_hash,json=prevHash,proto3" json:"prev_hash,omitempty"` DataHash []byte `protobuf:"bytes,3,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*BatchHeader) Descriptor ¶
func (*BatchHeader) Descriptor() ([]byte, []int)
func (*BatchHeader) GetDataHash ¶
func (m *BatchHeader) GetDataHash() []byte
func (*BatchHeader) GetPrevHash ¶
func (m *BatchHeader) GetPrevHash() []byte
func (*BatchHeader) GetSeq ¶
func (m *BatchHeader) GetSeq() uint64
func (*BatchHeader) ProtoMessage ¶
func (*BatchHeader) ProtoMessage()
func (*BatchHeader) Reset ¶
func (m *BatchHeader) Reset()
func (*BatchHeader) String ¶
func (m *BatchHeader) String() string
func (*BatchHeader) XXX_DiscardUnknown ¶
func (m *BatchHeader) XXX_DiscardUnknown()
func (*BatchHeader) XXX_Marshal ¶
func (m *BatchHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BatchHeader) XXX_Merge ¶
func (dst *BatchHeader) XXX_Merge(src proto.Message)
func (*BatchHeader) XXX_Size ¶
func (m *BatchHeader) XXX_Size() int
func (*BatchHeader) XXX_Unmarshal ¶
func (m *BatchHeader) XXX_Unmarshal(b []byte) error
type Checkpoint ¶
type Checkpoint struct { Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"` Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,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:"-"` }
func (*Checkpoint) Descriptor ¶
func (*Checkpoint) Descriptor() ([]byte, []int)
func (*Checkpoint) GetDigest ¶
func (m *Checkpoint) GetDigest() []byte
func (*Checkpoint) GetSeq ¶
func (m *Checkpoint) GetSeq() uint64
func (*Checkpoint) GetSignature ¶
func (m *Checkpoint) GetSignature() []byte
func (*Checkpoint) ProtoMessage ¶
func (*Checkpoint) ProtoMessage()
func (*Checkpoint) Reset ¶
func (m *Checkpoint) Reset()
func (*Checkpoint) String ¶
func (m *Checkpoint) String() string
func (*Checkpoint) XXX_DiscardUnknown ¶
func (m *Checkpoint) XXX_DiscardUnknown()
func (*Checkpoint) XXX_Marshal ¶
func (m *Checkpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Checkpoint) XXX_Merge ¶
func (dst *Checkpoint) XXX_Merge(src proto.Message)
func (*Checkpoint) XXX_Size ¶
func (m *Checkpoint) XXX_Size() int
func (*Checkpoint) XXX_Unmarshal ¶
func (m *Checkpoint) XXX_Unmarshal(b []byte) error
type ConfigMetadata ¶
type ConfigMetadata struct { Consenters []*Consenter `protobuf:"bytes,1,rep,name=consenters,proto3" json:"consenters,omitempty"` Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ConfigMetadata is serialized and set as the value of ConsensusType.Metadata in a channel configuration when the ConsensusType.Type is set "etcdraft".
func (*ConfigMetadata) Descriptor ¶
func (*ConfigMetadata) Descriptor() ([]byte, []int)
func (*ConfigMetadata) GetConsenters ¶
func (m *ConfigMetadata) GetConsenters() []*Consenter
func (*ConfigMetadata) GetOptions ¶
func (m *ConfigMetadata) GetOptions() *Options
func (*ConfigMetadata) ProtoMessage ¶
func (*ConfigMetadata) ProtoMessage()
func (*ConfigMetadata) Reset ¶
func (m *ConfigMetadata) Reset()
func (*ConfigMetadata) String ¶
func (m *ConfigMetadata) String() string
func (*ConfigMetadata) XXX_DiscardUnknown ¶
func (m *ConfigMetadata) XXX_DiscardUnknown()
func (*ConfigMetadata) XXX_Marshal ¶
func (m *ConfigMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConfigMetadata) XXX_Merge ¶
func (dst *ConfigMetadata) XXX_Merge(src proto.Message)
func (*ConfigMetadata) XXX_Size ¶
func (m *ConfigMetadata) XXX_Size() int
func (*ConfigMetadata) XXX_Unmarshal ¶
func (m *ConfigMetadata) XXX_Unmarshal(b []byte) error
type ConsensusClient ¶
type ConsensusClient interface {
Consensus(ctx context.Context, in *Handshake, opts ...grpc.CallOption) (Consensus_ConsensusClient, error)
}
ConsensusClient is the client API for Consensus service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewConsensusClient ¶
func NewConsensusClient(cc *grpc.ClientConn) ConsensusClient
type ConsensusConfig ¶
type ConsensusConfig struct { Consensus *Options `protobuf:"bytes,1,opt,name=consensus,proto3" json:"consensus,omitempty"` Peers map[string]*Consenter `` /* 151-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func ReadJsonConfig ¶
func ReadJsonConfig(file string) (*ConsensusConfig, error)
func (*ConsensusConfig) Descriptor ¶
func (*ConsensusConfig) Descriptor() ([]byte, []int)
func (*ConsensusConfig) GetConsensus ¶
func (m *ConsensusConfig) GetConsensus() *Options
func (*ConsensusConfig) GetPeers ¶
func (m *ConsensusConfig) GetPeers() map[string]*Consenter
func (*ConsensusConfig) ProtoMessage ¶
func (*ConsensusConfig) ProtoMessage()
func (*ConsensusConfig) Reset ¶
func (m *ConsensusConfig) Reset()
func (*ConsensusConfig) String ¶
func (m *ConsensusConfig) String() string
func (*ConsensusConfig) XXX_DiscardUnknown ¶
func (m *ConsensusConfig) XXX_DiscardUnknown()
func (*ConsensusConfig) XXX_Marshal ¶
func (m *ConsensusConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConsensusConfig) XXX_Merge ¶
func (dst *ConsensusConfig) XXX_Merge(src proto.Message)
func (*ConsensusConfig) XXX_Size ¶
func (m *ConsensusConfig) XXX_Size() int
func (*ConsensusConfig) XXX_Unmarshal ¶
func (m *ConsensusConfig) XXX_Unmarshal(b []byte) error
type ConsensusServer ¶
type ConsensusServer interface {
Consensus(*Handshake, Consensus_ConsensusServer) error
}
ConsensusServer is the server API for Consensus service.
type ConsensusTypeMetadataFactory ¶
type ConsensusTypeMetadataFactory struct{}
ConsensusTypeMetadataFactory allows this implementation's proto messages to register their type with the orderer's proto messages. This is needed for protolator to work.
func (ConsensusTypeMetadataFactory) NewMessage ¶
func (dogf ConsensusTypeMetadataFactory) NewMessage() proto.Message
NewMessage implements the Orderer.ConsensusTypeMetadataFactory interface.
type Consensus_ConsensusClient ¶
type Consensus_ConsensusClient interface { Recv() (*MultiChainMsg, error) grpc.ClientStream }
type Consensus_ConsensusServer ¶
type Consensus_ConsensusServer interface { Send(*MultiChainMsg) error grpc.ServerStream }
type Consenter ¶
type Consenter struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` ClientSignCert []byte `protobuf:"bytes,3,opt,name=client_sign_cert,json=clientSignCert,proto3" json:"client_sign_cert,omitempty"` ServerTlsCert []byte `protobuf:"bytes,4,opt,name=server_tls_cert,json=serverTlsCert,proto3" json:"server_tls_cert,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Consenter represents a consenting node (i.e. replica).
func (*Consenter) Descriptor ¶
func (*Consenter) GetClientSignCert ¶
func (*Consenter) GetServerTlsCert ¶
func (*Consenter) ProtoMessage ¶
func (*Consenter) ProtoMessage()
func (*Consenter) XXX_DiscardUnknown ¶
func (m *Consenter) XXX_DiscardUnknown()
func (*Consenter) XXX_Marshal ¶
func (*Consenter) XXX_Unmarshal ¶
type Handshake ¶
type Handshake struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Handshake) Descriptor ¶
func (*Handshake) ProtoMessage ¶
func (*Handshake) ProtoMessage()
func (*Handshake) XXX_DiscardUnknown ¶
func (m *Handshake) XXX_DiscardUnknown()
func (*Handshake) XXX_Marshal ¶
func (*Handshake) XXX_Unmarshal ¶
type Hello ¶
type Hello struct { Batch *Batch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"` NewView *NewView `protobuf:"bytes,2,opt,name=new_view,json=newView,proto3" json:"new_view,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Hello) Descriptor ¶
func (*Hello) GetNewView ¶
func (*Hello) ProtoMessage ¶
func (*Hello) ProtoMessage()
func (*Hello) XXX_DiscardUnknown ¶
func (m *Hello) XXX_DiscardUnknown()
func (*Hello) XXX_Marshal ¶
func (*Hello) XXX_Unmarshal ¶
type JsonConfig ¶
type JsonConfig struct { Consensus *Options `protobuf:"bytes,1,opt,name=consensus,proto3" json:"consensus,omitempty"` Peers []*Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*JsonConfig) Descriptor ¶
func (*JsonConfig) Descriptor() ([]byte, []int)
func (*JsonConfig) GetConsensus ¶
func (m *JsonConfig) GetConsensus() *Options
func (*JsonConfig) GetPeers ¶
func (m *JsonConfig) GetPeers() []*Peer
func (*JsonConfig) ProtoMessage ¶
func (*JsonConfig) ProtoMessage()
func (*JsonConfig) Reset ¶
func (m *JsonConfig) Reset()
func (*JsonConfig) String ¶
func (m *JsonConfig) String() string
func (*JsonConfig) XXX_DiscardUnknown ¶
func (m *JsonConfig) XXX_DiscardUnknown()
func (*JsonConfig) XXX_Marshal ¶
func (m *JsonConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JsonConfig) XXX_Merge ¶
func (dst *JsonConfig) XXX_Merge(src proto.Message)
func (*JsonConfig) XXX_Size ¶
func (m *JsonConfig) XXX_Size() int
func (*JsonConfig) XXX_Unmarshal ¶
func (m *JsonConfig) XXX_Unmarshal(b []byte) error
type Msg ¶
type Msg struct { // Types that are valid to be assigned to Type: // *Msg_Request // *Msg_Preprepare // *Msg_Prepare // *Msg_Commit // *Msg_ViewChange // *Msg_NewView // *Msg_Checkpoint // *Msg_Hello Type isMsg_Type `protobuf_oneof:"type"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Msg) Descriptor ¶
func (*Msg) GetCheckpoint ¶
func (m *Msg) GetCheckpoint() *Checkpoint
func (*Msg) GetNewView ¶
func (*Msg) GetPrepare ¶
func (*Msg) GetPreprepare ¶
func (m *Msg) GetPreprepare() *Preprepare
func (*Msg) GetRequest ¶
func (*Msg) GetViewChange ¶
func (*Msg) ProtoMessage ¶
func (*Msg) ProtoMessage()
func (*Msg) XXX_DiscardUnknown ¶
func (m *Msg) XXX_DiscardUnknown()
func (*Msg) XXX_OneofFuncs ¶
func (*Msg) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Msg) XXX_Unmarshal ¶
type Msg_Checkpoint ¶
type Msg_Checkpoint struct {
Checkpoint *Checkpoint `protobuf:"bytes,7,opt,name=checkpoint,proto3,oneof"`
}
type Msg_Commit ¶
type Msg_Commit struct {
Commit *Subject `protobuf:"bytes,4,opt,name=commit,proto3,oneof"`
}
type Msg_Hello ¶
type Msg_Hello struct {
Hello *Hello `protobuf:"bytes,8,opt,name=hello,proto3,oneof"`
}
type Msg_NewView ¶
type Msg_NewView struct {
NewView *NewView `protobuf:"bytes,6,opt,name=new_view,json=newView,proto3,oneof"`
}
type Msg_Prepare ¶
type Msg_Prepare struct {
Prepare *Subject `protobuf:"bytes,3,opt,name=prepare,proto3,oneof"`
}
type Msg_Preprepare ¶
type Msg_Preprepare struct {
Preprepare *Preprepare `protobuf:"bytes,2,opt,name=preprepare,proto3,oneof"`
}
type Msg_Request ¶
type Msg_Request struct {
Request *Request `protobuf:"bytes,1,opt,name=request,proto3,oneof"`
}
type Msg_ViewChange ¶
type Msg_ViewChange struct {
ViewChange *Signed `protobuf:"bytes,5,opt,name=view_change,json=viewChange,proto3,oneof"`
}
type MultiChainMsg ¶
type MultiChainMsg struct { ChainID string `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"` Msg *Msg `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MultiChainMsg) Descriptor ¶
func (*MultiChainMsg) Descriptor() ([]byte, []int)
func (*MultiChainMsg) GetChainID ¶
func (m *MultiChainMsg) GetChainID() string
func (*MultiChainMsg) GetMsg ¶
func (m *MultiChainMsg) GetMsg() *Msg
func (*MultiChainMsg) ProtoMessage ¶
func (*MultiChainMsg) ProtoMessage()
func (*MultiChainMsg) Reset ¶
func (m *MultiChainMsg) Reset()
func (*MultiChainMsg) String ¶
func (m *MultiChainMsg) String() string
func (*MultiChainMsg) XXX_DiscardUnknown ¶
func (m *MultiChainMsg) XXX_DiscardUnknown()
func (*MultiChainMsg) XXX_Marshal ¶
func (m *MultiChainMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiChainMsg) XXX_Merge ¶
func (dst *MultiChainMsg) XXX_Merge(src proto.Message)
func (*MultiChainMsg) XXX_Size ¶
func (m *MultiChainMsg) XXX_Size() int
func (*MultiChainMsg) XXX_Unmarshal ¶
func (m *MultiChainMsg) XXX_Unmarshal(b []byte) error
type NewView ¶
type NewView struct { View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"` Vset map[uint64]*Signed `` /* 150-byte string literal not displayed */ Xset *Subject `protobuf:"bytes,3,opt,name=xset,proto3" json:"xset,omitempty"` Batch *Batch `protobuf:"bytes,4,opt,name=batch,proto3" json:"batch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*NewView) Descriptor ¶
func (*NewView) ProtoMessage ¶
func (*NewView) ProtoMessage()
func (*NewView) XXX_DiscardUnknown ¶
func (m *NewView) XXX_DiscardUnknown()
func (*NewView) XXX_Marshal ¶
func (*NewView) XXX_Unmarshal ¶
type Options ¶
type Options struct { N uint64 `protobuf:"varint,1,opt,name=n,proto3" json:"n,omitempty"` F uint64 `protobuf:"varint,2,opt,name=f,proto3" json:"f,omitempty"` RequestTimeoutNsec uint64 `protobuf:"varint,3,opt,name=request_timeout_nsec,json=requestTimeoutNsec,proto3" json:"request_timeout_nsec,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Defines the SBFT parameters when 'sbft' is specified as the 'OrdererType'
func (*Options) Descriptor ¶
func (*Options) GetRequestTimeoutNsec ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) XXX_DiscardUnknown ¶
func (m *Options) XXX_DiscardUnknown()
func (*Options) XXX_Marshal ¶
func (*Options) XXX_Unmarshal ¶
type Peer ¶
type Peer struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Cert *Consenter `protobuf:"bytes,2,opt,name=cert,proto3" json:"cert,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Peer) Descriptor ¶
func (*Peer) GetAddress ¶
func (*Peer) ProtoMessage ¶
func (*Peer) ProtoMessage()
func (*Peer) XXX_DiscardUnknown ¶
func (m *Peer) XXX_DiscardUnknown()
func (*Peer) XXX_Unmarshal ¶
type Preprepare ¶
type Preprepare struct { Seq *SeqView `protobuf:"bytes,1,opt,name=seq,proto3" json:"seq,omitempty"` Batch *Batch `protobuf:"bytes,2,opt,name=batch,proto3" json:"batch,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Preprepare) Descriptor ¶
func (*Preprepare) Descriptor() ([]byte, []int)
func (*Preprepare) GetBatch ¶
func (m *Preprepare) GetBatch() *Batch
func (*Preprepare) GetSeq ¶
func (m *Preprepare) GetSeq() *SeqView
func (*Preprepare) ProtoMessage ¶
func (*Preprepare) ProtoMessage()
func (*Preprepare) Reset ¶
func (m *Preprepare) Reset()
func (*Preprepare) String ¶
func (m *Preprepare) String() string
func (*Preprepare) XXX_DiscardUnknown ¶
func (m *Preprepare) XXX_DiscardUnknown()
func (*Preprepare) XXX_Marshal ¶
func (m *Preprepare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Preprepare) XXX_Merge ¶
func (dst *Preprepare) XXX_Merge(src proto.Message)
func (*Preprepare) XXX_Size ¶
func (m *Preprepare) XXX_Size() int
func (*Preprepare) XXX_Unmarshal ¶
func (m *Preprepare) XXX_Unmarshal(b []byte) error
type Request ¶
type Request struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Request) Descriptor ¶
func (*Request) GetPayload ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type SeqView ¶
type SeqView struct { View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"` Seq uint64 `protobuf:"varint,2,opt,name=seq,proto3" json:"seq,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SeqView) Descriptor ¶
func (*SeqView) ProtoMessage ¶
func (*SeqView) ProtoMessage()
func (*SeqView) XXX_DiscardUnknown ¶
func (m *SeqView) XXX_DiscardUnknown()
func (*SeqView) XXX_Marshal ¶
func (*SeqView) XXX_Unmarshal ¶
type Signed ¶
type Signed struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Signed) Descriptor ¶
func (*Signed) GetSignature ¶
func (*Signed) ProtoMessage ¶
func (*Signed) ProtoMessage()
func (*Signed) XXX_DiscardUnknown ¶
func (m *Signed) XXX_DiscardUnknown()
func (*Signed) XXX_Marshal ¶
func (*Signed) XXX_Unmarshal ¶
type Subject ¶
type Subject struct { Seq *SeqView `protobuf:"bytes,1,opt,name=seq,proto3" json:"seq,omitempty"` Digest []byte `protobuf:"bytes,2,opt,name=digest,proto3" json:"digest,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Subject) Descriptor ¶
func (*Subject) ProtoMessage ¶
func (*Subject) ProtoMessage()
func (*Subject) XXX_DiscardUnknown ¶
func (m *Subject) XXX_DiscardUnknown()
func (*Subject) XXX_Marshal ¶
func (*Subject) XXX_Unmarshal ¶
type ViewChange ¶
type ViewChange struct { View uint64 `protobuf:"varint,1,opt,name=view,proto3" json:"view,omitempty"` Pset []*Subject `protobuf:"bytes,2,rep,name=pset,proto3" json:"pset,omitempty"` Qset []*Subject `protobuf:"bytes,3,rep,name=qset,proto3" json:"qset,omitempty"` Checkpoint *Batch `protobuf:"bytes,4,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ViewChange) Descriptor ¶
func (*ViewChange) Descriptor() ([]byte, []int)
func (*ViewChange) GetCheckpoint ¶
func (m *ViewChange) GetCheckpoint() *Batch
func (*ViewChange) GetPset ¶
func (m *ViewChange) GetPset() []*Subject
func (*ViewChange) GetQset ¶
func (m *ViewChange) GetQset() []*Subject
func (*ViewChange) GetView ¶
func (m *ViewChange) GetView() uint64
func (*ViewChange) ProtoMessage ¶
func (*ViewChange) ProtoMessage()
func (*ViewChange) Reset ¶
func (m *ViewChange) Reset()
func (*ViewChange) String ¶
func (m *ViewChange) String() string
func (*ViewChange) XXX_DiscardUnknown ¶
func (m *ViewChange) XXX_DiscardUnknown()
func (*ViewChange) XXX_Marshal ¶
func (m *ViewChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ViewChange) XXX_Merge ¶
func (dst *ViewChange) XXX_Merge(src proto.Message)
func (*ViewChange) XXX_Size ¶
func (m *ViewChange) XXX_Size() int
func (*ViewChange) XXX_Unmarshal ¶
func (m *ViewChange) XXX_Unmarshal(b []byte) error