Versions in this module Expand all Collapse all v0 v0.1.0 Feb 15, 2016 Changes in this version + const TLSCA_CERT_CHAIN + var ECertSubjectRole = asn1.ObjectIdentifier + func CloseAllClients() (bool, []error) + func CloseAllPeers() (bool, []error) + func CloseAllValidators() (bool, []error) + func CloseClient(client Client) error + func ClosePeer(peer Peer) error + func CloseValidator(peer Peer) error + func RegisterClient(name string, pwd []byte, enrollID, enrollPWD string) error + func RegisterPeer(name string, pwd []byte, enrollID, enrollPWD string) error + func RegisterValidator(name string, pwd []byte, enrollID, enrollPWD string) error + type CertificateHandler interface + GetCertificate func() []byte + GetTransactionHandler func() (TransactionHandler, error) + Sign func(msg []byte) ([]byte, error) + Verify func(signature []byte, msg []byte) error + type Client interface + DecryptQueryResult func(queryTx *obc.Transaction, result []byte) ([]byte, error) + GetEnrollmentCertificateHandler func() (CertificateHandler, error) + GetTCertificateHandlerFromDER func(der []byte) (CertificateHandler, error) + GetTCertificateHandlerNext func() (CertificateHandler, error) + NewChaincodeDeployTransaction func(chaincodeDeploymentSpec *obc.ChaincodeDeploymentSpec, uuid string) (*obc.Transaction, error) + NewChaincodeExecute func(chaincodeInvocation *obc.ChaincodeInvocationSpec, uuid string) (*obc.Transaction, error) + NewChaincodeQuery func(chaincodeInvocation *obc.ChaincodeInvocationSpec, uuid string) (*obc.Transaction, error) + func InitClient(name string, pwd []byte) (Client, error) + type Entity interface + GetName func() string + type Peer interface + GetEnrollmentID func() string + GetID func() []byte + GetStateEncryptor func(deployTx, executeTx *obc.Transaction) (StateEncryptor, error) + Sign func(msg []byte) ([]byte, error) + TransactionPreExecution func(tx *obc.Transaction) (*obc.Transaction, error) + TransactionPreValidation func(tx *obc.Transaction) (*obc.Transaction, error) + Verify func(vkID, signature, message []byte) error + func InitPeer(name string, pwd []byte) (Peer, error) + func InitValidator(name string, pwd []byte) (Peer, error) + type StateEncryptor interface + Decrypt func(ct []byte) ([]byte, error) + Encrypt func(msg []byte) ([]byte, error) + type TransactionHandler interface + GetBinding func() ([]byte, error) + GetCertificateHandler func() (CertificateHandler, error) + NewChaincodeDeployTransaction func(chaincodeDeploymentSpec *obc.ChaincodeDeploymentSpec, uuid string) (*obc.Transaction, error) + NewChaincodeExecute func(chaincodeInvocation *obc.ChaincodeInvocationSpec, uuid string) (*obc.Transaction, error) + NewChaincodeQuery func(chaincodeInvocation *obc.ChaincodeInvocationSpec, uuid string) (*obc.Transaction, error)