Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator interface { // DisableAccessCheck disables the access control // enforcement of the Authenticator DisableAccessCheck() // Generate returns a pair of certificate and private key, // and associates the hash of the certificate with the given // chaincode name Generate(ccName string) (*CertAndPrivKeyPair, error) // ChaincodeSupportServer - The Authenticator is registered // as a chaincode service pb.ChaincodeSupportServer }
Authenticator wraps a chaincode service and authenticates chaincode shims (containers)
func NewAuthenticator ¶
func NewAuthenticator(srv pb.ChaincodeSupportServer, ca CA) Authenticator
NewAuthenticator returns a new authenticator that would wrap the given chaincode service
type CA ¶ added in v1.1.0
type CA interface { // CertBytes returns the certificate of the CA in PEM encoding CertBytes() []byte // contains filtered or unexported methods }
CA defines a certificate authority that can generate certificates signed by it
type CertAndPrivKeyPair ¶
type CertAndPrivKeyPair struct { // Cert - an x509 certificate encoded in base64 Cert string // Key - a private key of the corresponding certificate Key string }
CertAndPrivKeyPair contains a certificate and its corresponding private key in base64 format
type ChaincodeStream ¶
type ChaincodeStream interface { // Send sends a chaincode message Send(*pb.ChaincodeMessage) error // Recv receives a chaincode message Recv() (*pb.ChaincodeMessage, error) }
ChaincodeStream defines a gRPC stream for sending and receiving chaincode messages
type KeyGenFunc ¶
type KeyGenFunc func() (*certKeyPair, error)
Click to show internal directories.
Click to hide internal directories.