Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(ca tlsgen.CA) *Authenticator
new authenticator返回可以包装链码服务的新authenticator
func (*Authenticator) Generate ¶
func (ac *Authenticator) Generate(ccName string) (*CertAndPrivKeyPair, error)
generate返回一对证书和私钥, 并将证书哈希与给定的 链码名称
func (*Authenticator) Wrap ¶
func (auth *Authenticator) Wrap(srv pb.ChaincodeSupportServer) pb.ChaincodeSupportServer
type CertAndPrivKeyPair ¶
certandprivkeypair包含一个证书 及其相应的base64格式的私钥
type ChaincodeStream ¶
type ChaincodeStream interface { //发送发送一条链码消息 Send(*pb.ChaincodeMessage) error //接收一条链码消息 Recv() (*pb.ChaincodeMessage, error) }
chaincodestream定义用于发送的grpc流 接收链码信息
type KeyGenFunc ¶
type KeyGenFunc func() (*tlsgen.CertKeyPair, error)
Click to show internal directories.
Click to hide internal directories.