accesscontrol

package
v0.0.0-...-523a819 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

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

type CertAndPrivKeyPair

type CertAndPrivKeyPair struct {
	//
	Cert string
	//密钥-对应证书的私钥
	Key string
}

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)

Jump to

Keyboard shortcuts

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