{"modulePath":"github.com/hyperledger/fabric-private-chaincode","version":"v1.0.0-rc3","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package chaincode\n\n## Types\n\n```go\ntype EnclaveChaincode struct {\n\tEnclave   enclave.StubInterface\n\tValidator endorsement.Validation\n\tExtractor Extractors\n\tErcc      ercc.Stub\n}\n```\nEnclaveChaincode struct\n\n```go\nfunc (t *EnclaveChaincode) Init(stub shim.ChaincodeStubInterface) pb.Response\n```\nInit sets the chaincode state to \"init\"\n\n```go\nfunc (t *EnclaveChaincode) Invoke(stub shim.ChaincodeStubInterface) pb.Response\n```\nInvoke receives transactions and forwards to op handlers\n\n```go\ntype ExtractorImpl struct {\n}\n```\n\n```go\nfunc (s *ExtractorImpl) GetChaincodeParams(stub shim.ChaincodeStubInterface) (*protos.CCParameters, error)\n```\n\n```go\nfunc (s *ExtractorImpl) GetChaincodeResponseMessages(stub shim.ChaincodeStubInterface) (*protos.SignedChaincodeResponseMessage, *protos.ChaincodeResponseMessage, error)\n```\n\n```go\nfunc (s *ExtractorImpl) GetHostParams(stub shim.ChaincodeStubInterface) (*protos.HostParameters, error)\n```\n\n```go\nfunc (s *ExtractorImpl) GetInitEnclaveMessage(stub shim.ChaincodeStubInterface) (*protos.InitEnclaveMessage, error)\n```\n\n```go\nfunc (s *ExtractorImpl) GetSerializedChaincodeRequest(stub shim.ChaincodeStubInterface) ([]byte, error)\n```\n\n```go\ntype Extractors interface {\n\tGetInitEnclaveMessage(stub shim.ChaincodeStubInterface) (*protos.InitEnclaveMessage, error)\n\tGetSerializedChaincodeRequest(stub shim.ChaincodeStubInterface) ([]byte, error)\n\tGetChaincodeResponseMessages(stub shim.ChaincodeStubInterface) (*protos.SignedChaincodeResponseMessage, *protos.ChaincodeResponseMessage, error)\n\tGetChaincodeParams(stub shim.ChaincodeStubInterface) (*protos.CCParameters, error)\n\tGetHostParams(stub shim.ChaincodeStubInterface) (*protos.HostParameters, error)\n}\n```\n\n","path":"github.com/hyperledger/fabric-private-chaincode/ecc/chaincode","name":"chaincode","synopsis":"","isRedistributable":true}
