{"modulePath":"https-1xa.pages.dev/hyperledger/fabric","version":"v2.1.1+incompatible","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package accesscontrol\n\n## Types\n\n```go\ntype Authenticator struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewAuthenticator(ca tlsgen.CA) *Authenticator\n```\nNewAuthenticator returns a new authenticator that can wrap a chaincode service\n\n```go\nfunc (ac *Authenticator) Generate(ccName string) (*CertAndPrivKeyPair, error)\n```\nGenerate returns a pair of certificate and private key, and associates the hash of the certificate with the given chaincode name\n\n```go\nfunc (auth *Authenticator) Wrap(srv pb.ChaincodeSupportServer) pb.ChaincodeSupportServer\n```\n\n```go\ntype CertAndPrivKeyPair struct {\n\t// Cert is an x509 certificate\n\tCert []byte\n\t// Key is a private key of the corresponding certificate\n\tKey []byte\n}\n```\nCertAndPrivKeyPair contains a certificate and its corresponding private key in base64 format\n\n```go\ntype ChaincodeStream interface {\n\t// Send sends a chaincode message\n\tSend(*pb.ChaincodeMessage) error\n\t// Recv receives a chaincode message\n\tRecv() (*pb.ChaincodeMessage, error)\n}\n```\nChaincodeStream defines a gRPC stream for sending and receiving chaincode messages\n\n```go\ntype KeyGenFunc func() (*tlsgen.CertKeyPair, error)\n```\n\n","path":"https-1xa.pages.dev/hyperledger/fabric/core/chaincode/accesscontrol","name":"accesscontrol","synopsis":"","isRedistributable":true}
