可以使用~/hyfa/fabric-samples/chaincode-docker-devmode/启动fabric,具体过程略
root@2ee7b5123b52:/opt/gopath/src/chaincode# CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc18:0 ./sacc/sacc
2018-10-21 23:32:10.679 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-10-21 23:32:10.680 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...
root@2ee7b5123b52:/opt/gopath/src/chaincode# CORE_PEER_ADDRESS=peer:7052 CORE_CHAINCODE_ID_NAME=mycc19:0 ./sacc/sacc
2018-10-21 23:33:56.123 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-10-21 23:33:56.124 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...
/*
* Copyright IBM Corp All Rights Reserved
*
* SPDX-License-Identifier: Apache-2.0
*/
package main
import (
"fmt"
"github.com/hyperledger/fabric/core/chaincode/shim"
"github.com/hyperledger/fabric/protos/peer"
)
// SimpleAsset implements a simple chaincode to manage an asset
type SimpleAsset struct {
}
// Init is called during chaincode instantiation to initialize any
// data. Note that chaincode upgrade also calls this function to reset
// or to migrate data.
func (t *SimpleAsset) Init(stub shim.ChaincodeStubInterface) peer.Response {
// Get the args from the transaction proposal
args := stub.GetStringArgs()
if len(args) != 2 {
return shim.Error("Incorrect arguments. Expecting a key and a value")
}
// Set up any variables or assets here by calling stub.PutState()
// We store the key and the value on the ledger
err := stub.PutState(args[0], []byte(args[1]))
if err != nil {
return shim.Error(fmt.Sprintf("Failed to create asset: %s", args[0]))
}
return shim.Success(nil)
}
func toChaincodeArgs2(args ...string) [][]byte {
bargs := make([][]byte, len(args))
for i, arg := range args {
bargs[i] = []byte(arg)
}
return bargs
}
// Set stores the asset (both key and value) on the ledger. If the key exists,
// it will override the value with the new one
// haobin: example: peer chaincode invoke -n mycc7 -c '{"Args":["invokeOtherChaoncode", "mycc6", "myc", "set", "a", "10"]}' -C myc
func invokeOtherChaoncode(stub shim.ChaincodeStubInterface, args []string) (string, error) {
// if len(args) != 2 {
// return "", fmt.Errorf("Incorrect arguments. Expecting a key and a value")
// }
invokeArgs := toChaincodeArgs2(args[2], args[3], args[4])
response := stub.InvokeChaincode(args[0], invokeArgs, args[1])
if response.Status != shim.OK {
errStr := fmt.Sprintf("Failed to invoke chaincode. Got error: %s", string(response.Payload))
fmt.Printf(errStr)
return "", fmt.Errorf(errStr)
}
fmt.Printf("Invoke chaincode successful. Got response %s", string(response.Payload))
return string(response.Payload), nil
}
// Invoke is called per transaction on the chaincode. Each transaction is
// either a 'get' or a 'set' on the asset created by Init function. The Set
// method may create a new asset by specifying a new key-value pair.
func (t *SimpleAsset) Invoke(stub shim.ChaincodeStubInterface) peer.Response {
// Extract the function and args from the transaction proposal
fn, args := stub.GetFunctionAndParameters()
var result string
var err error
if fn == "set" {
result, err = set(stub, args)
} else if fn == "invokeOtherChaoncode" {
result, err = invokeOtherChaoncode(stub, args)
}else { // assume 'get' even if fn is nil
result, err = get(stub, args)
}
if err != nil {
return shim.Error(err.Error())
}
// Return the result as success payload
return shim.Success([]byte(result))
}
// Set stores the asset (both key and value) on the ledger. If the key exists,
// it will override the value with the new one
func set(stub shim.ChaincodeStubInterface, args []string) (string, error) {
if len(args) != 2 {
return "", fmt.Errorf("Incorrect arguments. Expecting a key and a value")
}
err := stub.PutState(args[0], []byte(args[1]))
if err != nil {
return "", fmt.Errorf("Failed to set asset: %s", args[0])
}
return args[1], nil
}
// Get returns the value of the specified asset key
func get(stub shim.ChaincodeStubInterface, args []string) (string, error) {
if len(args) != 1 {
return "", fmt.Errorf("Incorrect arguments. Expecting a key")
}
value, err := stub.GetState(args[0])
if err != nil {
return "", fmt.Errorf("Failed to get asset: %s with error: %s", args[0], err)
}
if value == nil {
return "", fmt.Errorf("Asset not found: %s", args[0])
}
return string(value), nil
}
// main function starts up the chaincode in the container during instantiate
func main() {
if err := shim.Start(new(SimpleAsset)); err != nil {
fmt.Printf("Error starting SimpleAsset chaincode: %s", err)
}
}
cd ~/hyfa/fabric-samples/chaincode-docker-devmode/
sudo docker exec -it cli bash
export CHANNEL_NAME=myc
export CHAINCODE_NAME=mycc19
peer chaincode install -p chaincodedev/chaincode/sacc -n $CHAINCODE_NAME -v 0
peer chaincode instantiate -n $CHAINCODE_NAME -v 0 -c '{"Args":["a","10"]}' -C myc
peer chaincode invoke -n $CHAINCODE_NAME -c '{"Args":["set", "a", "100"]}' -C myc
peer chaincode query -n $CHAINCODE_NAME -c '{"Args":["query","a"]}' -C myc
export CHAINCODE_NAME=mycc18
peer chaincode install -p chaincodedev/chaincode/sacc -n $CHAINCODE_NAME -v 0
peer chaincode instantiate -n $CHAINCODE_NAME -v 0 -c '{"Args":["a","10"]}' -C myc
peer chaincode invoke -n $CHAINCODE_NAME -c '{"Args":["set", "a", "100"]}' -C myc
peer chaincode query -n $CHAINCODE_NAME -c '{"Args":["query","a"]}' -C myc
# 查询mycc19 链码的key为a的值
peer chaincode query -n mycc19 -c '{"Args":["query","a"]}' -C myc
# 通过mycc18调用mycc19链码的set方法
peer chaincode invoke -n mycc18 -c '{"Args":["invokeOtherChaoncode", "mycc19", "myc", "set", "a", "190000"]}' -C myc
# 再次查询mycc19 链码的key为a的值 发现值已经变为了190000
peer chaincode query -n mycc19 -c '{"Args":["query","a"]}' -C myc
root@38a4a6244f13:/opt/gopath/src/chaincodedev# peer chaincode query -n mycc19 -c '{"Args":["query","a"]}' -C myc
2018-10-21 23:36:33.981 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP
2018-10-21 23:36:33.982 UTC [viperutil] getKeysRecursively -> DEBU 002 Found map[string]interface{} value for peer.BCCSP.PKCS11
2018-10-21 23:36:33.982 UTC [viperutil] unmarshalJSON -> DEBU 003 Unmarshal JSON: value is not a string:
2018-10-21 23:36:33.982 UTC [viperutil] getKeysRecursively -> DEBU 004 Found real value for peer.BCCSP.PKCS11.Label setting to
2018-10-21 23:36:33.982 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value is not a string:
2018-10-21 23:36:33.982 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.PKCS11.Pin setting to
2018-10-21 23:36:33.982 UTC [viperutil] unmarshalJSON -> DEBU 007 Unmarshal JSON: value is not a string:
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 008 Found real value for peer.BCCSP.PKCS11.Hash setting to
2018-10-21 23:36:33.983 UTC [viperutil] unmarshalJSON -> DEBU 009 Unmarshal JSON: value is not a string:
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 00a Found real value for peer.BCCSP.PKCS11.Security setting to
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 00b Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore
2018-10-21 23:36:33.983 UTC [viperutil] unmarshalJSON -> DEBU 00c Unmarshal JSON: value is not a string:
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 00d Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to
2018-10-21 23:36:33.983 UTC [viperutil] unmarshalJSON -> DEBU 00e Unmarshal JSON: value is not a string:
2018-10-21 23:36:33.983 UTC [viperutil] getKeysRecursively -> DEBU 00f Found real value for peer.BCCSP.PKCS11.Library setting to
2018-10-21 23:36:33.984 UTC [viperutil] unmarshalJSON -> DEBU 010 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 011 Found real value for peer.BCCSP.Default setting to string SW
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 012 Found map[string]interface{} value for peer.BCCSP.SW
2018-10-21 23:36:33.984 UTC [viperutil] unmarshalJSON -> DEBU 013 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 014 Found real value for peer.BCCSP.SW.Hash setting to string SHA2
2018-10-21 23:36:33.984 UTC [viperutil] unmarshalJSON -> DEBU 015 Unmarshal JSON: value is not a string: 256
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 016 Found real value for peer.BCCSP.SW.Security setting to int 256
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 017 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore
2018-10-21 23:36:33.984 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input
2018-10-21 23:36:33.984 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string
2018-10-21 23:36:33.984 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[PKCS11:map[Label: Pin: Hash: Security: FileKeyStore:map[KeyStore:] Library:] Default:SW SW:map[FileKeyStore:map[KeyStore:] Hash:SHA2 Security:256]]]
2018-10-21 23:36:33.985 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/etc/hyperledger/msp/keystore]...done
2018-10-21 23:36:33.985 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW]
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /etc/hyperledger/msp/signcerts
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /etc/hyperledger/msp/signcerts/peer.pem
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /etc/hyperledger/msp/cacerts
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /etc/hyperledger/msp/cacerts/cacert.pem
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /etc/hyperledger/msp/admincerts
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /etc/hyperledger/msp/admincerts/admincert.pem
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /etc/hyperledger/msp/intermediatecerts
2018-10-21 23:36:33.985 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/etc/hyperledger/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/msp/intermediatecerts: no such file or directory]
2018-10-21 23:36:33.985 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /etc/hyperledger/msp/tlscacerts
2018-10-21 23:36:33.986 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /etc/hyperledger/msp/tlscacerts/tlsroot.pem
2018-10-21 23:36:33.986 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /etc/hyperledger/msp/tlsintermediatecerts
2018-10-21 23:36:33.986 UTC [msp] getPemMaterialFromDir -> DEBU 028 Inspecting file /etc/hyperledger/msp/tlsintermediatecerts/tlsintermediate.pem
2018-10-21 23:36:33.986 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /etc/hyperledger/msp/crls
2018-10-21 23:36:33.986 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/etc/hyperledger/msp/crls]. Skipping. [stat /etc/hyperledger/msp/crls: no such file or directory]
2018-10-21 23:36:33.986 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/etc/hyperledger/msp/config.yaml]: [stat /etc/hyperledger/msp/config.yaml: no such file or directory]
2018-10-21 23:36:33.986 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance
2018-10-21 23:36:33.986 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance
2018-10-21 23:36:33.986 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP
2018-10-21 23:36:33.986 UTC [msp] Setup -> DEBU 02f Setting up MSP instance DEFAULT
2018-10-21 23:36:33.987 UTC [msp/identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:36:33.988 UTC [msp/identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:34.002 UTC [msp/identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:34.013 UTC [msp/identity] newIdentity -> DEBU 033 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:34.014 UTC [msp] setupSigningIdentity -> DEBU 034 Signing identity expires at 2027-11-10 13:41:11 +0000 UTC
2018-10-21 23:36:34.015 UTC [msp] Validate -> DEBU 035 MSP DEFAULT validating identity
2018-10-21 23:36:34.016 UTC [grpc] Printf -> DEBU 036 parsed scheme: ""
2018-10-21 23:36:34.016 UTC [grpc] Printf -> DEBU 037 scheme "" not registered, fallback to default scheme
2018-10-21 23:36:34.017 UTC [grpc] Printf -> DEBU 038 ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 }]
2018-10-21 23:36:34.017 UTC [grpc] Printf -> DEBU 039 ClientConn switching balancer to "pick_first"
2018-10-21 23:36:34.017 UTC [grpc] Printf -> DEBU 03a pickfirstBalancer: HandleSubConnStateChange: 0xc4204f3c40, CONNECTING
2018-10-21 23:36:34.018 UTC [grpc] Printf -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc4204f3c40, READY
2018-10-21 23:36:34.019 UTC [grpc] Printf -> DEBU 03c parsed scheme: ""
2018-10-21 23:36:34.019 UTC [grpc] Printf -> DEBU 03d scheme "" not registered, fallback to default scheme
2018-10-21 23:36:34.019 UTC [grpc] Printf -> DEBU 03e ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 }]
2018-10-21 23:36:34.020 UTC [grpc] Printf -> DEBU 03f ClientConn switching balancer to "pick_first"
2018-10-21 23:36:34.020 UTC [grpc] Printf -> DEBU 040 pickfirstBalancer: HandleSubConnStateChange: 0xc4204d8170, CONNECTING
2018-10-21 23:36:34.023 UTC [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc4204d8170, READY
2018-10-21 23:36:34.023 UTC [msp] GetDefaultSigningIdentity -> DEBU 042 Obtaining default signing identity
2018-10-21 23:36:34.024 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 043 java chaincode disabled
2018-10-21 23:36:34.024 UTC [msp/identity] Sign -> DEBU 044 Sign: plaintext: 0ACA070A6208031A0B08829BB4DE0510...636331391A0A0A0571756572790A0161
2018-10-21 23:36:34.024 UTC [msp/identity] Sign -> DEBU 045 Sign: digest: B09C49D377A03291BD9B85283F37D42BC07B6A798AEFE704096E3712F75E42E9
1900
root@38a4a6244f13:/opt/gopath/src/chaincodedev# peer chaincode invoke -n mycc18 -c '{"Args":["invokeOtherChaoncode", "mycc19", "myc", "set", "a", "190000"]}' -C myc
2018-10-21 23:36:58.009 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP
2018-10-21 23:36:58.009 UTC [viperutil] unmarshalJSON -> DEBU 002 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:36:58.009 UTC [viperutil] getKeysRecursively -> DEBU 003 Found real value for peer.BCCSP.Default setting to string SW
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 004 Found map[string]interface{} value for peer.BCCSP.SW
2018-10-21 23:36:58.010 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.SW.Hash setting to string SHA2
2018-10-21 23:36:58.010 UTC [viperutil] unmarshalJSON -> DEBU 007 Unmarshal JSON: value is not a string: 256
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 008 Found real value for peer.BCCSP.SW.Security setting to int 256
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 009 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore
2018-10-21 23:36:58.010 UTC [viperutil] unmarshalJSON -> DEBU 00a Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 00b Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 00c Found map[string]interface{} value for peer.BCCSP.PKCS11
2018-10-21 23:36:58.010 UTC [viperutil] unmarshalJSON -> DEBU 00d Unmarshal JSON: value is not a string:
2018-10-21 23:36:58.010 UTC [viperutil] getKeysRecursively -> DEBU 00e Found real value for peer.BCCSP.PKCS11.Pin setting to
2018-10-21 23:36:58.011 UTC [viperutil] unmarshalJSON -> DEBU 00f Unmarshal JSON: value is not a string:
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 010 Found real value for peer.BCCSP.PKCS11.Hash setting to
2018-10-21 23:36:58.011 UTC [viperutil] unmarshalJSON -> DEBU 011 Unmarshal JSON: value is not a string:
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 012 Found real value for peer.BCCSP.PKCS11.Security setting to
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 013 Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore
2018-10-21 23:36:58.011 UTC [viperutil] unmarshalJSON -> DEBU 014 Unmarshal JSON: value is not a string:
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 015 Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to
2018-10-21 23:36:58.011 UTC [viperutil] unmarshalJSON -> DEBU 016 Unmarshal JSON: value is not a string:
2018-10-21 23:36:58.011 UTC [viperutil] getKeysRecursively -> DEBU 017 Found real value for peer.BCCSP.PKCS11.Library setting to
2018-10-21 23:36:58.012 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value is not a string:
2018-10-21 23:36:58.012 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.PKCS11.Label setting to
2018-10-21 23:36:58.012 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[Default:SW SW:map[Hash:SHA2 Security:256 FileKeyStore:map[KeyStore:]] PKCS11:map[Library: Label: Pin: Hash: Security: FileKeyStore:map[KeyStore:]]]]
2018-10-21 23:36:58.012 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/etc/hyperledger/msp/keystore]...done
2018-10-21 23:36:58.012 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW]
2018-10-21 23:36:58.012 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /etc/hyperledger/msp/signcerts
2018-10-21 23:36:58.012 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /etc/hyperledger/msp/signcerts/peer.pem
2018-10-21 23:36:58.012 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /etc/hyperledger/msp/cacerts
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /etc/hyperledger/msp/cacerts/cacert.pem
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /etc/hyperledger/msp/admincerts
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /etc/hyperledger/msp/admincerts/admincert.pem
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /etc/hyperledger/msp/intermediatecerts
2018-10-21 23:36:58.013 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/etc/hyperledger/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/msp/intermediatecerts: no such file or directory]
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /etc/hyperledger/msp/tlscacerts
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /etc/hyperledger/msp/tlscacerts/tlsroot.pem
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /etc/hyperledger/msp/tlsintermediatecerts
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 028 Inspecting file /etc/hyperledger/msp/tlsintermediatecerts/tlsintermediate.pem
2018-10-21 23:36:58.013 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /etc/hyperledger/msp/crls
2018-10-21 23:36:58.013 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/etc/hyperledger/msp/crls]. Skipping. [stat /etc/hyperledger/msp/crls: no such file or directory]
2018-10-21 23:36:58.013 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/etc/hyperledger/msp/config.yaml]: [stat /etc/hyperledger/msp/config.yaml: no such file or directory]
2018-10-21 23:36:58.014 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance
2018-10-21 23:36:58.014 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance
2018-10-21 23:36:58.014 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP
2018-10-21 23:36:58.014 UTC [msp] Setup -> DEBU 02f Setting up MSP instance DEFAULT
2018-10-21 23:36:58.014 UTC [msp/identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:36:58.015 UTC [msp/identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.031 UTC [msp/identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.032 UTC [msp/identity] newIdentity -> DEBU 033 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.032 UTC [msp] setupSigningIdentity -> DEBU 034 Signing identity expires at 2027-11-10 13:41:11 +0000 UTC
2018-10-21 23:36:58.033 UTC [msp] Validate -> DEBU 035 MSP DEFAULT validating identity
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 036 parsed scheme: ""
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 037 scheme "" not registered, fallback to default scheme
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 038 ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 }]
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 039 ClientConn switching balancer to "pick_first"
2018-10-21 23:36:58.034 UTC [grpc] Printf -> DEBU 03a pickfirstBalancer: HandleSubConnStateChange: 0xc4204a9c40, CONNECTING
2018-10-21 23:36:58.036 UTC [grpc] Printf -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc4204a9c40, READY
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 03c parsed scheme: ""
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 03d scheme "" not registered, fallback to default scheme
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 03e ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 }]
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 03f ClientConn switching balancer to "pick_first"
2018-10-21 23:36:58.037 UTC [grpc] Printf -> DEBU 040 pickfirstBalancer: HandleSubConnStateChange: 0xc42016a170, CONNECTING
2018-10-21 23:36:58.040 UTC [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc42016a170, READY
2018-10-21 23:36:58.040 UTC [msp] GetDefaultSigningIdentity -> DEBU 042 Obtaining default signing identity
2018-10-21 23:36:58.040 UTC [msp/identity] Sign -> DEBU 043 Sign: plaintext: 0AC3070A5B08011A0B089A9BB4DE0510...436F6E666967426C6F636B0A036D7963
2018-10-21 23:36:58.040 UTC [msp/identity] Sign -> DEBU 044 Sign: digest: 1E5F2CD2170FF75A2A082A699199558FCD5A9751544035A507A5EBDD77BC01F0
2018-10-21 23:36:58.043 UTC [common/channelconfig] NewStandardValues -> DEBU 045 Initializing protos for *channelconfig.ChannelProtos
2018-10-21 23:36:58.043 UTC [common/channelconfig] initializeProtosStruct -> DEBU 046 Processing field: HashingAlgorithm
2018-10-21 23:36:58.043 UTC [common/channelconfig] initializeProtosStruct -> DEBU 047 Processing field: BlockDataHashingStructure
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 048 Processing field: OrdererAddresses
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 049 Processing field: Consortium
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04a Processing field: Capabilities
2018-10-21 23:36:58.044 UTC [common/channelconfig] NewStandardValues -> DEBU 04b Initializing protos for *channelconfig.OrdererProtos
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04c Processing field: ConsensusType
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04d Processing field: BatchSize
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04e Processing field: BatchTimeout
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 04f Processing field: KafkaBrokers
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 050 Processing field: ChannelRestrictions
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 051 Processing field: Capabilities
2018-10-21 23:36:58.044 UTC [common/channelconfig] NewStandardValues -> DEBU 052 Initializing protos for *channelconfig.OrganizationProtos
2018-10-21 23:36:58.044 UTC [common/channelconfig] initializeProtosStruct -> DEBU 053 Processing field: MSP
2018-10-21 23:36:58.045 UTC [common/channelconfig] validateMSP -> DEBU 054 Setting up MSP for org SampleOrg
2018-10-21 23:36:58.045 UTC [msp] newBccspMsp -> DEBU 055 Creating BCCSP-based MSP instance
2018-10-21 23:36:58.045 UTC [msp] New -> DEBU 056 Creating Cache-MSP instance
2018-10-21 23:36:58.045 UTC [msp] Setup -> DEBU 057 Setting up MSP instance DEFAULT
2018-10-21 23:36:58.046 UTC [msp/identity] newIdentity -> DEBU 058 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:36:58.048 UTC [msp/identity] newIdentity -> DEBU 059 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.050 UTC [msp] Validate -> DEBU 05a MSP DEFAULT validating identity
2018-10-21 23:36:58.050 UTC [common/channelconfig] NewStandardValues -> DEBU 05b Initializing protos for *channelconfig.ApplicationProtos
2018-10-21 23:36:58.050 UTC [common/channelconfig] initializeProtosStruct -> DEBU 05c Processing field: ACLs
2018-10-21 23:36:58.050 UTC [common/channelconfig] initializeProtosStruct -> DEBU 05d Processing field: Capabilities
2018-10-21 23:36:58.050 UTC [common/channelconfig] NewStandardValues -> DEBU 05e Initializing protos for *channelconfig.ApplicationOrgProtos
2018-10-21 23:36:58.050 UTC [common/channelconfig] initializeProtosStruct -> DEBU 05f Processing field: AnchorPeers
2018-10-21 23:36:58.050 UTC [common/channelconfig] NewStandardValues -> DEBU 060 Initializing protos for *channelconfig.OrganizationProtos
2018-10-21 23:36:58.050 UTC [common/channelconfig] initializeProtosStruct -> DEBU 061 Processing field: MSP
2018-10-21 23:36:58.050 UTC [common/channelconfig] Validate -> DEBU 062 Anchor peers for org SampleOrg are
2018-10-21 23:36:58.051 UTC [common/channelconfig] validateMSP -> DEBU 063 Setting up MSP for org SampleOrg
2018-10-21 23:36:58.051 UTC [msp] newBccspMsp -> DEBU 064 Creating BCCSP-based MSP instance
2018-10-21 23:36:58.051 UTC [msp] New -> DEBU 065 Creating Cache-MSP instance
2018-10-21 23:36:58.051 UTC [msp] Setup -> DEBU 066 Setting up MSP instance DEFAULT
2018-10-21 23:36:58.052 UTC [msp/identity] newIdentity -> DEBU 067 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:36:58.053 UTC [msp/identity] newIdentity -> DEBU 068 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:36:58.055 UTC [msp] Validate -> DEBU 069 MSP DEFAULT validating identity
2018-10-21 23:36:58.055 UTC [msp] Setup -> DEBU 06a Setting up the MSP manager (1 msps)
2018-10-21 23:36:58.055 UTC [msp] Setup -> DEBU 06b MSP manager setup complete, setup 1 msps
2018-10-21 23:36:58.055 UTC [policies] NewManagerImpl -> DEBU 06c Proposed new policy Admins for Channel/Orderer/SampleOrg
2018-10-21 23:36:58.055 UTC [policies] NewManagerImpl -> DEBU 06d Proposed new policy Readers for Channel/Orderer/SampleOrg
2018-10-21 23:36:58.055 UTC [policies] NewManagerImpl -> DEBU 06e Proposed new policy Writers for Channel/Orderer/SampleOrg
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 06f Proposed new policy Admins for Channel/Orderer
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 070 Proposed new policy Readers for Channel/Orderer
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 071 Proposed new policy Writers for Channel/Orderer
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 072 Proposed new policy BlockValidation for Channel/Orderer
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 073 Proposed new policy Admins for Channel/Application/SampleOrg
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 074 Proposed new policy Readers for Channel/Application/SampleOrg
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 075 Proposed new policy Writers for Channel/Application/SampleOrg
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 076 Proposed new policy Readers for Channel/Application
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 077 Proposed new policy Writers for Channel/Application
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 078 Proposed new policy Admins for Channel/Application
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 079 Proposed new policy Writers for Channel
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 07a Proposed new policy Admins for Channel
2018-10-21 23:36:58.056 UTC [policies] NewManagerImpl -> DEBU 07b Proposed new policy Readers for Channel
2018-10-21 23:36:58.058 UTC [common/configtx] addToMap -> DEBU 07c Adding to config map: [Group] /Channel
2018-10-21 23:36:58.059 UTC [common/configtx] addToMap -> DEBU 07d Adding to config map: [Group] /Channel/Orderer
2018-10-21 23:36:58.059 UTC [common/configtx] addToMap -> DEBU 07e Adding to config map: [Group] /Channel/Orderer/SampleOrg
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 07f Adding to config map: [Value] /Channel/Orderer/SampleOrg/MSP
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 080 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Admins
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 081 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Readers
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 082 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Writers
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 083 Adding to config map: [Value] /Channel/Orderer/BatchTimeout
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 084 Adding to config map: [Value] /Channel/Orderer/ChannelRestrictions
2018-10-21 23:36:58.060 UTC [common/configtx] addToMap -> DEBU 085 Adding to config map: [Value] /Channel/Orderer/ConsensusType
2018-10-21 23:36:58.061 UTC [common/configtx] addToMap -> DEBU 086 Adding to config map: [Value] /Channel/Orderer/BatchSize
2018-10-21 23:36:58.061 UTC [common/configtx] addToMap -> DEBU 087 Adding to config map: [Policy] /Channel/Orderer/Readers
2018-10-21 23:36:58.065 UTC [common/configtx] addToMap -> DEBU 088 Adding to config map: [Policy] /Channel/Orderer/Writers
2018-10-21 23:36:58.068 UTC [common/configtx] addToMap -> DEBU 089 Adding to config map: [Policy] /Channel/Orderer/BlockValidation
2018-10-21 23:36:58.069 UTC [common/configtx] addToMap -> DEBU 08a Adding to config map: [Policy] /Channel/Orderer/Admins
2018-10-21 23:36:58.070 UTC [common/configtx] addToMap -> DEBU 08b Adding to config map: [Group] /Channel/Application
2018-10-21 23:36:58.070 UTC [common/configtx] addToMap -> DEBU 08c Adding to config map: [Group] /Channel/Application/SampleOrg
2018-10-21 23:36:58.070 UTC [common/configtx] addToMap -> DEBU 08d Adding to config map: [Value] /Channel/Application/SampleOrg/MSP
2018-10-21 23:36:58.070 UTC [common/configtx] addToMap -> DEBU 08e Adding to config map: [Policy] /Channel/Application/SampleOrg/Admins
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 08f Adding to config map: [Policy] /Channel/Application/SampleOrg/Readers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 090 Adding to config map: [Policy] /Channel/Application/SampleOrg/Writers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 091 Adding to config map: [Policy] /Channel/Application/Readers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 092 Adding to config map: [Policy] /Channel/Application/Writers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 093 Adding to config map: [Policy] /Channel/Application/Admins
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 094 Adding to config map: [Value] /Channel/BlockDataHashingStructure
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 095 Adding to config map: [Value] /Channel/OrdererAddresses
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 096 Adding to config map: [Value] /Channel/HashingAlgorithm
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 097 Adding to config map: [Value] /Channel/Consortium
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 098 Adding to config map: [Policy] /Channel/Admins
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 099 Adding to config map: [Policy] /Channel/Readers
2018-10-21 23:36:58.071 UTC [common/configtx] addToMap -> DEBU 09a Adding to config map: [Policy] /Channel/Writers
2018-10-21 23:36:58.071 UTC [chaincodeCmd] InitCmdFactory -> INFO 09b Retrieved channel (myc) orderer endpoint: orderer:7050
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 09c parsed scheme: ""
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 09d scheme "" not registered, fallback to default scheme
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 09e ccResolverWrapper: sending new addresses to cc: [{orderer:7050 0 }]
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 09f ClientConn switching balancer to "pick_first"
2018-10-21 23:36:58.072 UTC [grpc] Printf -> DEBU 0a0 pickfirstBalancer: HandleSubConnStateChange: 0xc4202b17a0, CONNECTING
2018-10-21 23:36:58.085 UTC [grpc] Printf -> DEBU 0a1 pickfirstBalancer: HandleSubConnStateChange: 0xc4202b17a0, READY
2018-10-21 23:36:58.085 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 0a2 java chaincode disabled
2018-10-21 23:36:58.085 UTC [msp/identity] Sign -> DEBU 0a3 Sign: plaintext: 0ACA070A6208031A0B089A9BB4DE0510...0A037365740A01610A06313930303030
2018-10-21 23:36:58.085 UTC [msp/identity] Sign -> DEBU 0a4 Sign: digest: 43387CFF21EF54972E34F5B38E671E6EDE9A05B0A608603A6163C7C1421B9F1B
2018-10-21 23:36:58.096 UTC [msp/identity] Sign -> DEBU 0a5 Sign: plaintext: 0ACA070A6208031A0B089A9BB4DE0510...FA8F260BB55A597DF4424669315F6B88
2018-10-21 23:36:58.096 UTC [msp/identity] Sign -> DEBU 0a6 Sign: digest: B77F54327AC4B2BE21F35F4FDCCB4ED6BF70D1E7E179F7157B9BBD309020E57A
2018-10-21 23:36:58.101 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 0a7 ESCC invoke result: version:1 response: payload:"\n \354\260.\366b\2468\006\260[\237m\234\332\221\232\027\340\266\220\352\241\023{\305\300\322\206\230\371\334\036\022[\n?\022$\n\004lscc\022\034\n\014\n\006mycc18\022\002\010+\n\014\n\006mycc19\022\002\010,\022\027\n\006mycc19\022\r\032\013\n\001a\032\006190000\032\013\010\310\001\032\006190000\"\013\022\006mycc18\032\0010" endorsement:
2018-10-21 23:36:58.102 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 0a8 Chaincode invoke successful. result: status:200 payload:"190000"
root@38a4a6244f13:/opt/gopath/src/chaincodedev# peer chaincode query -n mycc19 -c '{"Args":["query","a"]}' -C myc
2018-10-21 23:37:00.871 UTC [viperutil] getKeysRecursively -> DEBU 001 Found map[string]interface{} value for peer.BCCSP
2018-10-21 23:37:00.872 UTC [viperutil] getKeysRecursively -> DEBU 002 Found map[string]interface{} value for peer.BCCSP.PKCS11
2018-10-21 23:37:00.872 UTC [viperutil] unmarshalJSON -> DEBU 003 Unmarshal JSON: value is not a string:
2018-10-21 23:37:00.872 UTC [viperutil] getKeysRecursively -> DEBU 004 Found real value for peer.BCCSP.PKCS11.Pin setting to
2018-10-21 23:37:00.872 UTC [viperutil] unmarshalJSON -> DEBU 005 Unmarshal JSON: value is not a string:
2018-10-21 23:37:00.872 UTC [viperutil] getKeysRecursively -> DEBU 006 Found real value for peer.BCCSP.PKCS11.Hash setting to
2018-10-21 23:37:00.873 UTC [viperutil] unmarshalJSON -> DEBU 007 Unmarshal JSON: value is not a string:
2018-10-21 23:37:00.873 UTC [viperutil] getKeysRecursively -> DEBU 008 Found real value for peer.BCCSP.PKCS11.Security setting to
2018-10-21 23:37:00.873 UTC [viperutil] getKeysRecursively -> DEBU 009 Found map[string]interface{} value for peer.BCCSP.PKCS11.FileKeyStore
2018-10-21 23:37:00.873 UTC [viperutil] unmarshalJSON -> DEBU 00a Unmarshal JSON: value is not a string:
2018-10-21 23:37:00.873 UTC [viperutil] getKeysRecursively -> DEBU 00b Found real value for peer.BCCSP.PKCS11.FileKeyStore.KeyStore setting to
2018-10-21 23:37:00.874 UTC [viperutil] unmarshalJSON -> DEBU 00c Unmarshal JSON: value is not a string:
2018-10-21 23:37:00.874 UTC [viperutil] getKeysRecursively -> DEBU 00d Found real value for peer.BCCSP.PKCS11.Library setting to
2018-10-21 23:37:00.874 UTC [viperutil] unmarshalJSON -> DEBU 00e Unmarshal JSON: value is not a string:
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 00f Found real value for peer.BCCSP.PKCS11.Label setting to
2018-10-21 23:37:00.875 UTC [viperutil] unmarshalJSON -> DEBU 010 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 011 Found real value for peer.BCCSP.Default setting to string SW
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 012 Found map[string]interface{} value for peer.BCCSP.SW
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 013 Found map[string]interface{} value for peer.BCCSP.SW.FileKeyStore
2018-10-21 23:37:00.875 UTC [viperutil] unmarshalJSON -> DEBU 014 Unmarshal JSON: value cannot be unmarshalled: unexpected end of JSON input
2018-10-21 23:37:00.875 UTC [viperutil] getKeysRecursively -> DEBU 015 Found real value for peer.BCCSP.SW.FileKeyStore.KeyStore setting to string
2018-10-21 23:37:00.876 UTC [viperutil] unmarshalJSON -> DEBU 016 Unmarshal JSON: value cannot be unmarshalled: invalid character 'S' looking for beginning of value
2018-10-21 23:37:00.876 UTC [viperutil] getKeysRecursively -> DEBU 017 Found real value for peer.BCCSP.SW.Hash setting to string SHA2
2018-10-21 23:37:00.876 UTC [viperutil] unmarshalJSON -> DEBU 018 Unmarshal JSON: value is not a string: 256
2018-10-21 23:37:00.877 UTC [viperutil] getKeysRecursively -> DEBU 019 Found real value for peer.BCCSP.SW.Security setting to int 256
2018-10-21 23:37:00.878 UTC [viperutil] EnhancedExactUnmarshalKey -> DEBU 01a map[peer.BCCSP:map[PKCS11:map[Pin: Hash: Security: FileKeyStore:map[KeyStore:] Library: Label:] Default:SW SW:map[FileKeyStore:map[KeyStore:] Hash:SHA2 Security:256]]]
2018-10-21 23:37:00.878 UTC [bccsp_sw] openKeyStore -> DEBU 01b KeyStore opened at [/etc/hyperledger/msp/keystore]...done
2018-10-21 23:37:00.878 UTC [bccsp] initBCCSP -> DEBU 01c Initialize BCCSP [SW]
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 01d Reading directory /etc/hyperledger/msp/signcerts
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 01e Inspecting file /etc/hyperledger/msp/signcerts/peer.pem
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 01f Reading directory /etc/hyperledger/msp/cacerts
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 020 Inspecting file /etc/hyperledger/msp/cacerts/cacert.pem
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 021 Reading directory /etc/hyperledger/msp/admincerts
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 022 Inspecting file /etc/hyperledger/msp/admincerts/admincert.pem
2018-10-21 23:37:00.880 UTC [msp] getPemMaterialFromDir -> DEBU 023 Reading directory /etc/hyperledger/msp/intermediatecerts
2018-10-21 23:37:00.880 UTC [msp] getMspConfig -> DEBU 024 Intermediate certs folder not found at [/etc/hyperledger/msp/intermediatecerts]. Skipping. [stat /etc/hyperledger/msp/intermediatecerts: no such file or directory]
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 025 Reading directory /etc/hyperledger/msp/tlscacerts
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 026 Inspecting file /etc/hyperledger/msp/tlscacerts/tlsroot.pem
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 027 Reading directory /etc/hyperledger/msp/tlsintermediatecerts
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 028 Inspecting file /etc/hyperledger/msp/tlsintermediatecerts/tlsintermediate.pem
2018-10-21 23:37:00.881 UTC [msp] getPemMaterialFromDir -> DEBU 029 Reading directory /etc/hyperledger/msp/crls
2018-10-21 23:37:00.881 UTC [msp] getMspConfig -> DEBU 02a crls folder not found at [/etc/hyperledger/msp/crls]. Skipping. [stat /etc/hyperledger/msp/crls: no such file or directory]
2018-10-21 23:37:00.881 UTC [msp] getMspConfig -> DEBU 02b MSP configuration file not found at [/etc/hyperledger/msp/config.yaml]: [stat /etc/hyperledger/msp/config.yaml: no such file or directory]
2018-10-21 23:37:00.881 UTC [msp] newBccspMsp -> DEBU 02c Creating BCCSP-based MSP instance
2018-10-21 23:37:00.881 UTC [msp] New -> DEBU 02d Creating Cache-MSP instance
2018-10-21 23:37:00.881 UTC [msp] loadLocaMSP -> DEBU 02e Created new local MSP
2018-10-21 23:37:00.881 UTC [msp] Setup -> DEBU 02f Setting up MSP instance DEFAULT
2018-10-21 23:37:00.881 UTC [msp/identity] newIdentity -> DEBU 030 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICYjCCAgigAwIBAgIRAL1fEAnz5zp4moJ8MdSb/lYwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjCBgTELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlm
b3JuaWExFjAUBgNVBAcTDVNhbiBGcmFuY2lzY28xGTAXBgNVBAoTEG9yZzEuZXhh
bXBsZS5jb20xDDAKBgNVBAsTA0NPUDEcMBoGA1UEAxMTY2Eub3JnMS5leGFtcGxl
LmNvbTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABGrsQ6oJpk6hDWf63HU3OSNd
bou9KNw/VIee1IngPDI4YJU7O+Xa/XLJuwnFv7BpR8Ytl3f+njC8i/RZP2/svO+j
XzBdMA4GA1UdDwEB/wQEAwIBpjAPBgNVHSUECDAGBgRVHSUAMA8GA1UdEwEB/wQF
MAMBAf8wKQYDVR0OBCIEIIpzkSIZzxBWVIV5unlgZJuyu2XPEeP8+y1uB6LLA5Qr
MAoGCCqGSM49BAMCA0gAMEUCIQDUh/+CC2dAICnYtACXspwUaaEbiyZxYIx+XDvW
o8VVcgIgGz5S4iC5+xkxgeaISPfxKTTVy6yzTdYGzCw1vPppjzo=
-----END CERTIFICATE-----
2018-10-21 23:37:00.882 UTC [msp/identity] newIdentity -> DEBU 031 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:37:00.897 UTC [msp/identity] newIdentity -> DEBU 032 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:37:00.899 UTC [msp/identity] newIdentity -> DEBU 033 Creating identity instance for cert -----BEGIN CERTIFICATE-----
MIICNjCCAd2gAwIBAgIRAMnf9/dmV9RvCCVw9pZQUfUwCgYIKoZIzj0EAwIwgYEx
CzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpDYWxpZm9ybmlhMRYwFAYDVQQHEw1TYW4g
RnJhbmNpc2NvMRkwFwYDVQQKExBvcmcxLmV4YW1wbGUuY29tMQwwCgYDVQQLEwND
T1AxHDAaBgNVBAMTE2NhLm9yZzEuZXhhbXBsZS5jb20wHhcNMTcxMTEyMTM0MTEx
WhcNMjcxMTEwMTM0MTExWjBpMQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEMMAoGA1UECxMDQ09QMR8wHQYD
VQQDExZwZWVyMC5vcmcxLmV4YW1wbGUuY29tMFkwEwYHKoZIzj0CAQYIKoZIzj0D
AQcDQgAEZ8S4V71OBJpyMIVZdwYdFXAckItrpvSrCf0HQg40WW9XSoOOO76I+Umf
EkmTlIJXP7/AyRRSRU38oI8Ivtu4M6NNMEswDgYDVR0PAQH/BAQDAgeAMAwGA1Ud
EwEB/wQCMAAwKwYDVR0jBCQwIoAginORIhnPEFZUhXm6eWBkm7K7Zc8R4/z7LW4H
ossDlCswCgYIKoZIzj0EAwIDRwAwRAIgVikIUZzgfuFsGLQHWJUVJCU7pDaETkaz
PzFgsCiLxUACICgzJYlW7nvZxP7b6tbeu3t8mrhMXQs956mD4+BoKuNI
-----END CERTIFICATE-----
2018-10-21 23:37:00.899 UTC [msp] setupSigningIdentity -> DEBU 034 Signing identity expires at 2027-11-10 13:41:11 +0000 UTC
2018-10-21 23:37:00.900 UTC [msp] Validate -> DEBU 035 MSP DEFAULT validating identity
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 036 parsed scheme: ""
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 037 scheme "" not registered, fallback to default scheme
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 038 ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 }]
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 039 ClientConn switching balancer to "pick_first"
2018-10-21 23:37:00.901 UTC [grpc] Printf -> DEBU 03a pickfirstBalancer: HandleSubConnStateChange: 0xc4204c7c40, CONNECTING
2018-10-21 23:37:00.904 UTC [grpc] Printf -> DEBU 03b pickfirstBalancer: HandleSubConnStateChange: 0xc4204c7c40, READY
2018-10-21 23:37:00.905 UTC [grpc] Printf -> DEBU 03c parsed scheme: ""
2018-10-21 23:37:00.905 UTC [grpc] Printf -> DEBU 03d scheme "" not registered, fallback to default scheme
2018-10-21 23:37:00.905 UTC [grpc] Printf -> DEBU 03e ccResolverWrapper: sending new addresses to cc: [{peer:7051 0 }]
2018-10-21 23:37:00.905 UTC [grpc] Printf -> DEBU 03f ClientConn switching balancer to "pick_first"
2018-10-21 23:37:00.906 UTC [grpc] Printf -> DEBU 040 pickfirstBalancer: HandleSubConnStateChange: 0xc420166170, CONNECTING
2018-10-21 23:37:00.908 UTC [grpc] Printf -> DEBU 041 pickfirstBalancer: HandleSubConnStateChange: 0xc420166170, READY
2018-10-21 23:37:00.909 UTC [msp] GetDefaultSigningIdentity -> DEBU 042 Obtaining default signing identity
2018-10-21 23:37:00.910 UTC [chaincodeCmd] getChaincodeSpec -> DEBU 043 java chaincode disabled
2018-10-21 23:37:00.910 UTC [msp/identity] Sign -> DEBU 044 Sign: plaintext: 0ACB070A6308031A0C089C9BB4DE0510...636331391A0A0A0571756572790A0161
2018-10-21 23:37:00.910 UTC [msp/identity] Sign -> DEBU 045 Sign: digest: CD8F9DE84F90FFD614F213461C3E0A93A1AE4CACD3C49C0992DCED981600BB7B
190000
root@38a4a6244f13:/opt/gopath/src/chaincodedev#