资讯专栏INFORMATION COLUMN

Fabric学习笔记(六) - chaincode开发模式

MSchumi / 4265人阅读

摘要:启动网络查看启动是否成功进入构建查看编译结果执行进入里确保目录实例化输出此时在中可以看到的日志输出中看日志查询的值看日志此模式可以让我们专注的写的逻辑等等随时看到结果

启动网络 terminal1
cd /opt/gopath/src/github.com/hyperledger/fabric-samples/chaincode-docker-devmode

docker-compose -f docker-compose-simple.yaml up
查看启动是否成功 terminal2
docker ps


CONTAINER ID        IMAGE                        COMMAND                  CREATED              STATUS              PORTS                                            NAMES
6628229d62a3        hyperledger/fabric-tools     "/bin/bash -c ./scrip"   About a minute ago   Up About a minute                                                    cli
19fbe5c8e7aa        hyperledger/fabric-ccenv     "/bin/bash -c "sleep "   About a minute ago   Up About a minute                                                    chaincode
5a4cfef9680c        hyperledger/fabric-peer      "peer node start --pe"   About a minute ago   Up About a minute   0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp   peer
a18422308e57        hyperledger/fabric-orderer   "orderer"                About a minute ago   Up About a minute   0.0.0.0:7050->7050/tcp                           orderer
进入chaincode docker
docker exec -it chaincode bash
构建 chaincode_example02
cd chaincode_example02/
go build

查看编译结果

ll

drwxr-xr-x 2 root root       95 Feb  1 03:02 ./
drwxr-xr-x 6 root root       72 Jan 30 05:45 ../
-rwxr-xr-x 1 root root 14919200 Feb  1 03:02 chaincode_example02*
-rw-r--r-- 1 root root     5436 Jan 30 05:45 chaincode_example02.go
-rw-r--r-- 1 root root     3165 Jan 30 05:45 chaincode_example02_test.go
执行 chaincode_example02
CORE_PEER_ADDRESS=peer:7051 CORE_CHAINCODE_ID_NAME=mycc:0 ./chaincode_example02

2018-02-01 03:05:43.164 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-02-01 03:05:43.164 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...
进入 cli docker里 terminal3
 docker exec -it cli bash
确保目录

pwd
/opt/gopath/src

install chaincode
peer chaincode install -p chaincodedev/chaincode/chaincode_example02 -n mycc -v 0
2018-02-01 03:17:46.007 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-02-01 03:17:46.008 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-02-01 03:17:46.008 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-02-01 03:17:46.008 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-02-01 03:17:46.222 UTC [golang-platform] getCodeFromFS -> DEBU 005 getCodeFromFS chaincodedev/chaincode/chaincode_example02
2018-02-01 03:17:46.724 UTC [golang-platform] func1 -> DEBU 006 Discarding GOROOT package fmt
2018-02-01 03:17:46.724 UTC [golang-platform] func1 -> DEBU 007 Discarding provided package github.com/hyperledger/fabric/core/chaincode/shim
2018-02-01 03:17:46.724 UTC [golang-platform] func1 -> DEBU 008 Discarding provided package github.com/hyperledger/fabric/protos/peer
2018-02-01 03:17:46.724 UTC [golang-platform] func1 -> DEBU 009 Discarding GOROOT package strconv
2018-02-01 03:17:46.724 UTC [golang-platform] GetDeploymentPayload -> DEBU 00a done
2018-02-01 03:17:46.733 UTC [msp/identity] Sign -> DEBU 00b Sign: plaintext: 0AA4080A5C08031A0C08DA8DCAD30510...E8FA57000000FFFFEF017B75002C0000
2018-02-01 03:17:46.733 UTC [msp/identity] Sign -> DEBU 00c Sign: digest: 3C49FF4A6D8E17F80C080E803B3DBE41AA2992B7FDC770D3A12A2CED4F9DD2C8
2018-02-01 03:17:46.745 UTC [chaincodeCmd] install -> DEBU 00d Installed remotely response:
2018-02-01 03:17:46.745 UTC [main] main -> INFO 00e Exiting.....
实例化chaincode
peer chaincode instantiate -n mycc -v 0 -c "{"Args":["init","a","100","b","200"]}" -C myc

输出

2018-02-01 03:20:01.582 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-02-01 03:20:01.582 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-02-01 03:20:01.584 UTC [msp/identity] Sign -> DEBU 003 Sign: plaintext: 0AA4080A5C08011A0C08E18ECAD30510...436F6E666967426C6F636B0A036D7963
2018-02-01 03:20:01.584 UTC [msp/identity] Sign -> DEBU 004 Sign: digest: 56DD05B7542ECC4FD53B1AFA515ED7EA0EC059914B104F438A3970067613273F
2018-02-01 03:20:01.595 UTC [common/config] NewStandardValues -> DEBU 005 Initializing protos for *config.ChannelProtos
2018-02-01 03:20:01.595 UTC [common/config] initializeProtosStruct -> DEBU 006 Processing field: HashingAlgorithm
2018-02-01 03:20:01.595 UTC [common/config] initializeProtosStruct -> DEBU 007 Processing field: BlockDataHashingStructure
2018-02-01 03:20:01.595 UTC [common/config] initializeProtosStruct -> DEBU 008 Processing field: OrdererAddresses
2018-02-01 03:20:01.596 UTC [common/config] initializeProtosStruct -> DEBU 009 Processing field: Consortium
2018-02-01 03:20:01.600 UTC [common/configtx] addToMap -> DEBU 00a Adding to config map: [Groups] /Channel
2018-02-01 03:20:01.600 UTC [common/configtx] addToMap -> DEBU 00b Adding to config map: [Groups] /Channel/Orderer
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 00c Adding to config map: [Groups] /Channel/Orderer/SampleOrg
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 00d Adding to config map: [Values] /Channel/Orderer/SampleOrg/MSP
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 00e Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Admins
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 00f Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Readers
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 010 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Writers
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 011 Adding to config map: [Values] /Channel/Orderer/BatchSize
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 012 Adding to config map: [Values] /Channel/Orderer/BatchTimeout
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 013 Adding to config map: [Values] /Channel/Orderer/ChannelRestrictions
2018-02-01 03:20:01.601 UTC [common/configtx] addToMap -> DEBU 014 Adding to config map: [Values] /Channel/Orderer/ConsensusType
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 015 Adding to config map: [Policy] /Channel/Orderer/Admins
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 016 Adding to config map: [Policy] /Channel/Orderer/BlockValidation
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 017 Adding to config map: [Policy] /Channel/Orderer/Readers
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 018 Adding to config map: [Policy] /Channel/Orderer/Writers
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 019 Adding to config map: [Groups] /Channel/Application
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01a Adding to config map: [Groups] /Channel/Application/SampleOrg
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01b Adding to config map: [Values] /Channel/Application/SampleOrg/MSP
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01c Adding to config map: [Policy] /Channel/Application/SampleOrg/Writers
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01d Adding to config map: [Policy] /Channel/Application/SampleOrg/Admins
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01e Adding to config map: [Policy] /Channel/Application/SampleOrg/Readers
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 01f Adding to config map: [Policy] /Channel/Application/Admins
2018-02-01 03:20:01.602 UTC [common/configtx] addToMap -> DEBU 020 Adding to config map: [Policy] /Channel/Application/Writers
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 021 Adding to config map: [Policy] /Channel/Application/Readers
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 022 Adding to config map: [Values] /Channel/Consortium
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 023 Adding to config map: [Values] /Channel/BlockDataHashingStructure
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 024 Adding to config map: [Values] /Channel/OrdererAddresses
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 025 Adding to config map: [Values] /Channel/HashingAlgorithm
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 026 Adding to config map: [Policy] /Channel/Readers
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 027 Adding to config map: [Policy] /Channel/Writers
2018-02-01 03:20:01.603 UTC [common/configtx] addToMap -> DEBU 028 Adding to config map: [Policy] /Channel/Admins
2018-02-01 03:20:01.603 UTC [common/configtx] processConfig -> DEBU 029 Beginning new config for channel myc
2018-02-01 03:20:01.603 UTC [common/config] NewStandardValues -> DEBU 02a Initializing protos for *config.ChannelProtos
2018-02-01 03:20:01.603 UTC [common/config] initializeProtosStruct -> DEBU 02b Processing field: HashingAlgorithm
2018-02-01 03:20:01.603 UTC [common/config] initializeProtosStruct -> DEBU 02c Processing field: BlockDataHashingStructure
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 02d Processing field: OrdererAddresses
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 02e Processing field: Consortium
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 02f Proposed new policy Readers for Channel
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 030 Proposed new policy Writers for Channel
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 031 Proposed new policy Admins for Channel
2018-02-01 03:20:01.604 UTC [common/config] NewStandardValues -> DEBU 032 Initializing protos for *config.OrdererProtos
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 033 Processing field: ConsensusType
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 034 Processing field: BatchSize
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 035 Processing field: BatchTimeout
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 036 Processing field: KafkaBrokers
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 037 Processing field: ChannelRestrictions
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 038 Proposed new policy Writers for Orderer
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 039 Proposed new policy Admins for Orderer
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 03a Proposed new policy BlockValidation for Orderer
2018-02-01 03:20:01.604 UTC [policies] ProposePolicy -> DEBU 03b Proposed new policy Readers for Orderer
2018-02-01 03:20:01.604 UTC [common/config] NewStandardValues -> DEBU 03c Initializing protos for *config.OrganizationProtos
2018-02-01 03:20:01.604 UTC [common/config] initializeProtosStruct -> DEBU 03d Processing field: MSP
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 03e Proposed new policy Admins for SampleOrg
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 03f Proposed new policy Readers for SampleOrg
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 040 Proposed new policy Writers for SampleOrg
2018-02-01 03:20:01.605 UTC [common/config] NewStandardValues -> DEBU 041 Initializing protos for *struct {}
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 042 Proposed new policy Readers for Application
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 043 Proposed new policy Admins for Application
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 044 Proposed new policy Writers for Application
2018-02-01 03:20:01.605 UTC [common/config] NewStandardValues -> DEBU 045 Initializing protos for *config.OrganizationProtos
2018-02-01 03:20:01.605 UTC [common/config] initializeProtosStruct -> DEBU 046 Processing field: MSP
2018-02-01 03:20:01.605 UTC [common/config] NewStandardValues -> DEBU 047 Initializing protos for *config.ApplicationOrgProtos
2018-02-01 03:20:01.605 UTC [common/config] initializeProtosStruct -> DEBU 048 Processing field: AnchorPeers
2018-02-01 03:20:01.605 UTC [common/config] NewStandardValues -> DEBU 049 Initializing protos for *config.OrganizationProtos
2018-02-01 03:20:01.605 UTC [common/config] initializeProtosStruct -> DEBU 04a Processing field: MSP
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 04b Proposed new policy Writers for SampleOrg
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 04c Proposed new policy Admins for SampleOrg
2018-02-01 03:20:01.605 UTC [policies] ProposePolicy -> DEBU 04d Proposed new policy Readers for SampleOrg
2018-02-01 03:20:01.605 UTC [common/config] validateMSP -> DEBU 04e Setting up MSP for org SampleOrg
2018-02-01 03:20:01.605 UTC [msp] NewBccspMsp -> DEBU 04f Creating BCCSP-based MSP instance
2018-02-01 03:20:01.605 UTC [msp] Setup -> DEBU 050 Setting up MSP instance DEFAULT
2018-02-01 03:20:01.606 UTC [msp/identity] newIdentity -> DEBU 051 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICYjCCAgmgAwIBAgIUB3CTDOU47sUC5K4kn/Caqnh114YwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMDEyMTkzMTAw
WhcNMjExMDExMTkzMTAwWjB/MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEfMB0GA1UEChMWSW50ZXJuZXQg
V2lkZ2V0cywgSW5jLjEMMAoGA1UECxMDV1dXMRQwEgYDVQQDEwtleGFtcGxlLmNv
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKIH5b2JaSmqiQXHyqC+cmknICcF
i5AddVjsQizDV6uZ4v6s+PWiJyzfA/rTtMvYAPq/yeEHpBUB1j053mxnpMujYzBh
MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQXZ0I9
qp6CP8TFHZ9bw5nRtZxIEDAfBgNVHSMEGDAWgBQXZ0I9qp6CP8TFHZ9bw5nRtZxI
EDAKBggqhkjOPQQDAgNHADBEAiAHp5Rbp9Em1G/UmKn8WsCbqDfWecVbZPQj3RK4
oG5kQQIgQAe4OOKYhJdh3f7URaKfGTf492/nmRmtK+ySKjpHSrU=
-----END CERTIFICATE-----
2018-02-01 03:20:01.607 UTC [msp/identity] newIdentity -> DEBU 052 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwH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Z4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:20:01.611 UTC [msp] Validate -> DEBU 054 MSP DEFAULT validating identity
2018-02-01 03:20:01.612 UTC [msp] getCertificationChain -> DEBU 055 MSP DEFAULT getting certification chain
2018-02-01 03:20:01.612 UTC [common/config] Validate -> DEBU 056 Anchor peers for org SampleOrg are
2018-02-01 03:20:01.612 UTC [common/config] validateMSP -> DEBU 057 Setting up MSP for org SampleOrg
2018-02-01 03:20:01.613 UTC [msp] NewBccspMsp -> DEBU 058 Creating BCCSP-based MSP instance
2018-02-01 03:20:01.613 UTC [msp] Setup -> DEBU 059 Setting up MSP instance DEFAULT
2018-02-01 03:20:01.613 UTC [msp/identity] newIdentity -> DEBU 05a Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICYjCCAgmgAwIBAgIUB3CTDOU47sUC5K4kn/Caqnh114YwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMDEyMTkzMTAw
WhcNMjExMDExMTkzMTAwWjB/MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEfMB0GA1UEChMWSW50ZXJuZXQg
V2lkZ2V0cywgSW5jLjEMMAoGA1UECxMDV1dXMRQwEgYDVQQDEwtleGFtcGxlLmNv
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKIH5b2JaSmqiQXHyqC+cmknICcF
i5AddVjsQizDV6uZ4v6s+PWiJyzfA/rTtMvYAPq/yeEHpBUB1j053mxnpMujYzBh
MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBQXZ0I9
qp6CP8TFHZ9bw5nRtZxIEDAfBgNVHSMEGDAWgBQXZ0I9qp6CP8TFHZ9bw5nRtZxI
EDAKBggqhkjOPQQDAgNHADBEAiAHp5Rbp9Em1G/UmKn8WsCbqDfWecVbZPQj3RK4
oG5kQQIgQAe4OOKYhJdh3f7URaKfGTf492/nmRmtK+ySKjpHSrU=
-----END CERTIFICATE-----
2018-02-01 03:20:01.614 UTC [msp/identity] newIdentity -> DEBU 05b Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBA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OFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:20:01.618 UTC [msp] Validate -> DEBU 05d MSP DEFAULT validating identity
2018-02-01 03:20:01.619 UTC [msp] getCertificationChain -> DEBU 05e MSP DEFAULT getting certification chain
2018-02-01 03:20:01.621 UTC [msp] Setup -> DEBU 05f Setting up the MSP manager (1 msps)
2018-02-01 03:20:01.621 UTC [msp] Setup -> DEBU 060 MSP manager setup complete, setup 1 msps
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 061 Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 062 In commit adding relative sub-policy SampleOrg/Admins to Orderer
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 063 Returning policy Readers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 064 In commit adding relative sub-policy SampleOrg/Readers to Orderer
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 065 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 066 In commit adding relative sub-policy SampleOrg/Writers to Orderer
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 067 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 068 Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 069 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 06a Returning policy Readers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 06b Returning policy Readers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 06c In commit adding relative sub-policy SampleOrg/Readers to Application
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 06d Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 06e In commit adding relative sub-policy SampleOrg/Writers to Application
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 06f Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 070 In commit adding relative sub-policy SampleOrg/Admins to Application
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 071 Returning policy Readers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 072 Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 073 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 074 Returning policy Writers for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 075 In commit adding relative sub-policy Orderer/Writers to Channel
2018-02-01 03:20:01.621 UTC [policies] GetPolicy -> DEBU 076 Returning policy Admins for evaluation
2018-02-01 03:20:01.621 UTC [policies] CommitProposals -> DEBU 077 In commit adding relative sub-policy Orderer/Admins to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 078 Returning policy BlockValidation for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 079 In commit adding relative sub-policy Orderer/BlockValidation to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 07a Returning policy Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 07b In commit adding relative sub-policy Orderer/Readers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 07c Returning policy SampleOrg/Admins for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 07d In commit adding relative sub-policy Orderer/SampleOrg/Admins to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 07e Returning policy SampleOrg/Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 07f In commit adding relative sub-policy Orderer/SampleOrg/Readers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 080 Returning policy SampleOrg/Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 081 In commit adding relative sub-policy Orderer/SampleOrg/Writers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 082 Returning policy SampleOrg/Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 083 In commit adding relative sub-policy Application/SampleOrg/Writers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 084 Returning policy SampleOrg/Admins for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 085 In commit adding relative sub-policy Application/SampleOrg/Admins to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 086 Returning policy Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 087 In commit adding relative sub-policy Application/Readers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 088 Returning policy Admins for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 089 In commit adding relative sub-policy Application/Admins to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 08a Returning policy Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 08b In commit adding relative sub-policy Application/Writers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 08c Returning policy SampleOrg/Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] CommitProposals -> DEBU 08d In commit adding relative sub-policy Application/SampleOrg/Readers to Channel
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 08e Returning policy Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 08f Returning policy Readers for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 090 Returning policy Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 091 Returning policy Writers for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 092 Returning policy Admins for evaluation
2018-02-01 03:20:01.622 UTC [policies] GetPolicy -> DEBU 093 Returning policy Admins for evaluation
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 094 Returning policy Readers for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 095 As expected, current configuration has policy "/Channel/Readers"
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 096 Returning policy Writers for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 097 As expected, current configuration has policy "/Channel/Writers"
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 098 Returning policy Application/Readers for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 099 As expected, current configuration has policy "/Channel/Application/Readers"
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 09a Returning policy Application/Writers for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 09b As expected, current configuration has policy "/Channel/Application/Writers"
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 09c Returning policy Application/Admins for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 09d As expected, current configuration has policy "/Channel/Application/Admins"
2018-02-01 03:20:01.623 UTC [policies] GetPolicy -> DEBU 09e Returning policy Orderer/BlockValidation for evaluation
2018-02-01 03:20:01.623 UTC [policies] CommitProposals -> DEBU 09f As expected, current configuration has policy "/Channel/Orderer/BlockValidation"
2018-02-01 03:20:01.623 UTC [chaincodeCmd] InitCmdFactory -> INFO 0a0 Get chain(myc) orderer endpoint: orderer:7050
2018-02-01 03:20:01.625 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a1 Using default escc
2018-02-01 03:20:01.625 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a2 Using default vscc
2018-02-01 03:20:01.626 UTC [msp/identity] Sign -> DEBU 0a3 Sign: plaintext: 0AA9080A6108031A0C08E18ECAD30510...30300A000A04657363630A0476736363
2018-02-01 03:20:01.626 UTC [msp/identity] Sign -> DEBU 0a4 Sign: digest: 631AD562E688C45CCFB88099B96E0BD3E481B4C51F5C473ABF9FBD6C0376477D
2018-02-01 03:20:01.648 UTC [msp/identity] Sign -> DEBU 0a5 Sign: plaintext: 0AA9080A6108031A0C08E18ECAD30510...E073AD725B399CA5C3BC5A869431BB90
2018-02-01 03:20:01.648 UTC [msp/identity] Sign -> DEBU 0a6 Sign: digest: B1CCB006324E5A370C61EC3759D2BA47051D761327806CAC8DE596AB815753FE
2018-02-01 03:20:01.653 UTC [main] main -> INFO 0a7 Exiting.....

此时在terminal2中可以看到init的日志

2018-02-01 03:05:43.164 UTC [shim] SetupChaincodeLogging -> INFO 001 Chaincode log level not provided; defaulting to: INFO
2018-02-01 03:05:43.164 UTC [shim] SetupChaincodeLogging -> INFO 002 Chaincode (build level: ) starting up ...
ex02 Init
Aval = 100, Bval = 200
Invoke chaincode
/opt/gopath/src# peer chaincode invoke -n mycc -c "{"Args":["invoke","a","b","10"]}" -C myc

输出

2018-02-01 03:22:49.677 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-02-01 03:22:49.677 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-02-01 03:22:49.679 UTC [msp/identity] Sign -> DEBU 003 Sign: plaintext: 0AA4080A5C08011A0C088990CAD30510...436F6E666967426C6F636B0A036D7963
2018-02-01 03:22:49.679 UTC [msp/identity] Sign -> DEBU 004 Sign: digest: D3BD30E93E58891EB8CF0C1FC6E1EB335E8A42276632C950657585A71A83896E
2018-02-01 03:22:49.688 UTC [common/config] NewStandardValues -> DEBU 005 Initializing protos for *config.ChannelProtos
2018-02-01 03:22:49.688 UTC [common/config] initializeProtosStruct -> DEBU 006 Processing field: HashingAlgorithm
2018-02-01 03:22:49.688 UTC [common/config] initializeProtosStruct -> DEBU 007 Processing field: BlockDataHashingStructure
2018-02-01 03:22:49.688 UTC [common/config] initializeProtosStruct -> DEBU 008 Processing field: OrdererAddresses
2018-02-01 03:22:49.688 UTC [common/config] initializeProtosStruct -> DEBU 009 Processing field: Consortium
2018-02-01 03:22:49.689 UTC [common/configtx] addToMap -> DEBU 00a Adding to config map: [Groups] /Channel
2018-02-01 03:22:49.690 UTC [common/configtx] addToMap -> DEBU 00b Adding to config map: [Groups] /Channel/Orderer
2018-02-01 03:22:49.691 UTC [common/configtx] addToMap -> DEBU 00c Adding to config map: [Groups] /Channel/Orderer/SampleOrg
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 00d Adding to config map: [Values] /Channel/Orderer/SampleOrg/MSP
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 00e Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Admins
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 00f Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Readers
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 010 Adding to config map: [Policy] /Channel/Orderer/SampleOrg/Writers
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 011 Adding to config map: [Values] /Channel/Orderer/BatchSize
2018-02-01 03:22:49.692 UTC [common/configtx] addToMap -> DEBU 012 Adding to config map: [Values] /Channel/Orderer/BatchTimeout
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 013 Adding to config map: [Values] /Channel/Orderer/ChannelRestrictions
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 014 Adding to config map: [Values] /Channel/Orderer/ConsensusType
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 015 Adding to config map: [Policy] /Channel/Orderer/Writers
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 016 Adding to config map: [Policy] /Channel/Orderer/Admins
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 017 Adding to config map: [Policy] /Channel/Orderer/BlockValidation
2018-02-01 03:22:49.693 UTC [common/configtx] addToMap -> DEBU 018 Adding to config map: [Policy] /Channel/Orderer/Readers
2018-02-01 03:22:49.694 UTC [common/configtx] addToMap -> DEBU 019 Adding to config map: [Groups] /Channel/Application
2018-02-01 03:22:49.694 UTC [common/configtx] addToMap -> DEBU 01a Adding to config map: [Groups] /Channel/Application/SampleOrg
2018-02-01 03:22:49.694 UTC [common/configtx] addToMap -> DEBU 01b Adding to config map: [Values] /Channel/Application/SampleOrg/MSP
2018-02-01 03:22:49.694 UTC [common/configtx] addToMap -> DEBU 01c Adding to config map: [Policy] /Channel/Application/SampleOrg/Writers
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 01d Adding to config map: [Policy] /Channel/Application/SampleOrg/Admins
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 01e Adding to config map: [Policy] /Channel/Application/SampleOrg/Readers
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 01f Adding to config map: [Policy] /Channel/Application/Readers
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 020 Adding to config map: [Policy] /Channel/Application/Admins
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 021 Adding to config map: [Policy] /Channel/Application/Writers
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 022 Adding to config map: [Values] /Channel/BlockDataHashingStructure
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 023 Adding to config map: [Values] /Channel/OrdererAddresses
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 024 Adding to config map: [Values] /Channel/HashingAlgorithm
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 025 Adding to config map: [Values] /Channel/Consortium
2018-02-01 03:22:49.695 UTC [common/configtx] addToMap -> DEBU 026 Adding to config map: [Policy] /Channel/Readers
2018-02-01 03:22:49.696 UTC [common/configtx] addToMap -> DEBU 027 Adding to config map: [Policy] /Channel/Writers
2018-02-01 03:22:49.696 UTC [common/configtx] addToMap -> DEBU 028 Adding to config map: [Policy] /Channel/Admins
2018-02-01 03:22:49.696 UTC [common/configtx] processConfig -> DEBU 029 Beginning new config for channel myc
2018-02-01 03:22:49.696 UTC [common/config] NewStandardValues -> DEBU 02a Initializing protos for *config.ChannelProtos
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 02b Processing field: HashingAlgorithm
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 02c Processing field: BlockDataHashingStructure
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 02d Processing field: OrdererAddresses
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 02e Processing field: Consortium
2018-02-01 03:22:49.696 UTC [policies] ProposePolicy -> DEBU 02f Proposed new policy Writers for Channel
2018-02-01 03:22:49.696 UTC [policies] ProposePolicy -> DEBU 030 Proposed new policy Admins for Channel
2018-02-01 03:22:49.696 UTC [policies] ProposePolicy -> DEBU 031 Proposed new policy Readers for Channel
2018-02-01 03:22:49.696 UTC [common/config] NewStandardValues -> DEBU 032 Initializing protos for *config.OrdererProtos
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 033 Processing field: ConsensusType
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 034 Processing field: BatchSize
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 035 Processing field: BatchTimeout
2018-02-01 03:22:49.696 UTC [common/config] initializeProtosStruct -> DEBU 036 Processing field: KafkaBrokers
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 037 Processing field: ChannelRestrictions
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 038 Proposed new policy Writers for Orderer
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 039 Proposed new policy Admins for Orderer
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 03a Proposed new policy BlockValidation for Orderer
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 03b Proposed new policy Readers for Orderer
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 03c Initializing protos for *config.OrganizationProtos
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 03d Processing field: MSP
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 03e Proposed new policy Admins for SampleOrg
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 03f Proposed new policy Readers for SampleOrg
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 040 Proposed new policy Writers for SampleOrg
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 041 Initializing protos for *struct {}
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 042 Proposed new policy Readers for Application
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 043 Proposed new policy Admins for Application
2018-02-01 03:22:49.697 UTC [policies] ProposePolicy -> DEBU 044 Proposed new policy Writers for Application
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 045 Initializing protos for *config.OrganizationProtos
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 046 Processing field: MSP
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 047 Initializing protos for *config.ApplicationOrgProtos
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 048 Processing field: AnchorPeers
2018-02-01 03:22:49.697 UTC [common/config] NewStandardValues -> DEBU 049 Initializing protos for *config.OrganizationProtos
2018-02-01 03:22:49.697 UTC [common/config] initializeProtosStruct -> DEBU 04a Processing field: MSP
2018-02-01 03:22:49.698 UTC [policies] ProposePolicy -> DEBU 04b Proposed new policy Writers for SampleOrg
2018-02-01 03:22:49.698 UTC [policies] ProposePolicy -> DEBU 04c Proposed new policy Admins for SampleOrg
2018-02-01 03:22:49.698 UTC [policies] ProposePolicy -> DEBU 04d Proposed new policy Readers for SampleOrg
2018-02-01 03:22:49.698 UTC [common/config] validateMSP -> DEBU 04e Setting up MSP for org SampleOrg
2018-02-01 03:22:49.698 UTC [msp] NewBccspMsp -> DEBU 04f Creating BCCSP-based MSP instance
2018-02-01 03:22:49.698 UTC [msp] Setup -> DEBU 050 Setting up MSP instance DEFAULT
2018-02-01 03:22:49.699 UTC [msp/identity] newIdentity -> DEBU 051 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICYjCCAgmgAwIBAgIUB3CTDOU47sUC5K4kn/Caqnh114YwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMDEyMTkzMTAw
WhcNMjExMDExMTkzMTAwWjB/MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEfMB0GA1UEChMWSW50ZXJuZXQg
V2lkZ2V0cywgSW5jLjEMMAoGA1UECxMDV1dXMRQwEgYDVQQDEwtleGFtcGxlLmNv
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKIH5b2JaSmqiQXHyqC+cmknICcF
i5AddVjsQizDV6uZ4v6s+PWiJyzfA/rTtMvYAPq/yeEHpBUB1j053mxnpMujYzBh
MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADA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teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:22:49.701 UTC [msp/identity] newIdentity -> DEBU 053 Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:22:49.704 UTC [msp] Validate -> DEBU 054 MSP DEFAULT validating identity
2018-02-01 03:22:49.705 UTC [msp] getCertificationChain -> DEBU 055 MSP DEFAULT getting certification chain
2018-02-01 03:22:49.705 UTC [common/config] Validate -> DEBU 056 Anchor peers for org SampleOrg are
2018-02-01 03:22:49.705 UTC [common/config] validateMSP -> DEBU 057 Setting up MSP for org SampleOrg
2018-02-01 03:22:49.705 UTC [msp] NewBccspMsp -> DEBU 058 Creating BCCSP-based MSP instance
2018-02-01 03:22:49.705 UTC [msp] Setup -> DEBU 059 Setting up MSP instance DEFAULT
2018-02-01 03:22:49.706 UTC [msp/identity] newIdentity -> DEBU 05a Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICYjCCAgmgAwIBAgIUB3CTDOU47sUC5K4kn/Caqnh114YwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMDEyMTkzMTAw
WhcNMjExMDExMTkzMTAwWjB/MQswCQYDVQQGEwJVUzETMBEGA1UECBMKQ2FsaWZv
cm5pYTEWMBQGA1UEBxMNU2FuIEZyYW5jaXNjbzEfMB0GA1UEChMWSW50ZXJuZXQg
V2lkZ2V0cywgSW5jLjEMMAoGA1UECxMDV1dXMRQwEgYDVQQDEwtleGFtcGxlLmNv
bTBZMBMGByqGSM49AgEGCCqGSM49AwEHA0IABKIH5b2JaSmqiQXHyqC+cmknICcF
i5AddVjsQizDV6uZ4v6s+PWiJyzfA/rTtMvYAPq/yeEHpBUB1j053mxnpMujYzBh
MA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBA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Dnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:22:49.708 UTC [msp/identity] newIdentity -> DEBU 05c Creating identity instance for ID -----BEGIN CERTIFICATE-----
MIICjDCCAjKgAwIBAgIUBEVwsSx0TmqdbzNwleNBBzoIT0wwCgYIKoZIzj0EAwIw
fzELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDVNh
biBGcmFuY2lzY28xHzAdBgNVBAoTFkludGVybmV0IFdpZGdldHMsIEluYy4xDDAK
BgNVBAsTA1dXVzEUMBIGA1UEAxMLZXhhbXBsZS5jb20wHhcNMTYxMTExMTcwNzAw
WhcNMTcxMTExMTcwNzAwWjBjMQswCQYDVQQGEwJVUzEXMBUGA1UECBMOTm9ydGgg
Q2Fyb2xpbmExEDAOBgNVBAcTB1JhbGVpZ2gxGzAZBgNVBAoTEkh5cGVybGVkZ2Vy
IEZhYnJpYzEMMAoGA1UECxMDQ09QMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE
HBuKsAO43hs4JGpFfiGMkB/xsILTsOvmN2WmwpsPHZNL6w8HWe3xCPQtdG/XJJvZ
+C756KEsUBM3yw5PTfku8qOBpzCBpDAOBgNVHQ8BAf8EBAMCBaAwHQYDVR0lBBYw
FAYIKwYBBQUHAwEGCCsGAQUFBwMCMAwGA1UdEwEB/wQCMAAwHQYDVR0OBBYEFOFC
dcUZ4es3ltiCgAVDoyLfVpPIMB8GA1UdIwQYMBaAFBdnQj2qnoI/xMUdn1vDmdG1
nEgQMCUGA1UdEQQeMByCCm15aG9zdC5jb22CDnd3dy5teWhvc3QuY29tMAoGCCqG
SM49BAMCA0gAMEUCIDf9Hbl4xn3z4EwNKmilM9lX2Fq4jWpAaRVB97OmVEeyAiEA
25aDPQHGGq2AvhKT0wvt08cX1GTGCIbfmuLpMwKQj38=
-----END CERTIFICATE-----
2018-02-01 03:22:49.711 UTC [msp] Validate -> DEBU 05d MSP DEFAULT validating identity
2018-02-01 03:22:49.712 UTC [msp] getCertificationChain -> DEBU 05e MSP DEFAULT getting certification chain
2018-02-01 03:22:49.713 UTC [msp] Setup -> DEBU 05f Setting up the MSP manager (1 msps)
2018-02-01 03:22:49.713 UTC [msp] Setup -> DEBU 060 MSP manager setup complete, setup 1 msps
2018-02-01 03:22:49.713 UTC [policies] GetPolicy -> DEBU 061 Returning policy Admins for evaluation
2018-02-01 03:22:49.713 UTC [policies] CommitProposals -> DEBU 062 In commit adding relative sub-policy SampleOrg/Admins to Orderer
2018-02-01 03:22:49.713 UTC [policies] GetPolicy -> DEBU 063 Returning policy Readers for evaluation
2018-02-01 03:22:49.713 UTC [policies] CommitProposals -> DEBU 064 In commit adding relative sub-policy SampleOrg/Readers to Orderer
2018-02-01 03:22:49.713 UTC [policies] GetPolicy -> DEBU 065 Returning policy Writers for evaluation
2018-02-01 03:22:49.713 UTC [policies] CommitProposals -> DEBU 066 In commit adding relative sub-policy SampleOrg/Writers to Orderer
2018-02-01 03:22:49.713 UTC [policies] GetPolicy -> DEBU 067 Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 068 Returning policy Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 069 Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 06a Returning policy Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 06b Returning policy Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 06c In commit adding relative sub-policy SampleOrg/Readers to Application
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 06d Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 06e In commit adding relative sub-policy SampleOrg/Writers to Application
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 06f Returning policy Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 070 In commit adding relative sub-policy SampleOrg/Admins to Application
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 071 Returning policy Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 072 Returning policy Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 073 Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 074 Returning policy SampleOrg/Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 075 In commit adding relative sub-policy Orderer/SampleOrg/Admins to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 076 Returning policy SampleOrg/Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 077 In commit adding relative sub-policy Orderer/SampleOrg/Readers to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 078 Returning policy SampleOrg/Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 079 In commit adding relative sub-policy Orderer/SampleOrg/Writers to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 07a Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 07b In commit adding relative sub-policy Orderer/Writers to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 07c Returning policy Admins for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 07d In commit adding relative sub-policy Orderer/Admins to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 07e Returning policy BlockValidation for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 07f In commit adding relative sub-policy Orderer/BlockValidation to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 080 Returning policy Readers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 081 In commit adding relative sub-policy Orderer/Readers to Channel
2018-02-01 03:22:49.714 UTC [policies] GetPolicy -> DEBU 082 Returning policy Writers for evaluation
2018-02-01 03:22:49.714 UTC [policies] CommitProposals -> DEBU 083 In commit adding relative sub-policy Application/Writers to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 084 Returning policy SampleOrg/Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 085 In commit adding relative sub-policy Application/SampleOrg/Readers to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 086 Returning policy SampleOrg/Writers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 087 In commit adding relative sub-policy Application/SampleOrg/Writers to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 088 Returning policy SampleOrg/Admins for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 089 In commit adding relative sub-policy Application/SampleOrg/Admins to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 08a Returning policy Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 08b In commit adding relative sub-policy Application/Readers to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 08c Returning policy Admins for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 08d In commit adding relative sub-policy Application/Admins to Channel
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 08e Returning policy Writers for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 08f Returning policy Writers for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 090 Returning policy Admins for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 091 Returning policy Admins for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 092 Returning policy Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 093 Returning policy Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 094 Returning policy Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 095 As expected, current configuration has policy "/Channel/Readers"
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 096 Returning policy Writers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 097 As expected, current configuration has policy "/Channel/Writers"
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 098 Returning policy Application/Readers for evaluation
2018-02-01 03:22:49.715 UTC [policies] CommitProposals -> DEBU 099 As expected, current configuration has policy "/Channel/Application/Readers"
2018-02-01 03:22:49.715 UTC [policies] GetPolicy -> DEBU 09a Returning policy Application/Writers for evaluation
2018-02-01 03:22:49.716 UTC [policies] CommitProposals -> DEBU 09b As expected, current configuration has policy "/Channel/Application/Writers"
2018-02-01 03:22:49.716 UTC [policies] GetPolicy -> DEBU 09c Returning policy Application/Admins for evaluation
2018-02-01 03:22:49.716 UTC [policies] CommitProposals -> DEBU 09d As expected, current configuration has policy "/Channel/Application/Admins"
2018-02-01 03:22:49.716 UTC [policies] GetPolicy -> DEBU 09e Returning policy Orderer/BlockValidation for evaluation
2018-02-01 03:22:49.716 UTC [policies] CommitProposals -> DEBU 09f As expected, current configuration has policy "/Channel/Orderer/BlockValidation"
2018-02-01 03:22:49.716 UTC [chaincodeCmd] InitCmdFactory -> INFO 0a0 Get chain(myc) orderer endpoint: orderer:7050
2018-02-01 03:22:49.718 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a1 Using default escc
2018-02-01 03:22:49.718 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 0a2 Using default vscc
2018-02-01 03:22:49.718 UTC [msp/identity] Sign -> DEBU 0a3 Sign: plaintext: 0AA9080A6108031A0C088990CAD30510...696E766F6B650A01610A01620A023130
2018-02-01 03:22:49.718 UTC [msp/identity] Sign -> DEBU 0a4 Sign: digest: F594837E77AAFBBACBF367342C153BB18BEDB9052C7BC7D1A1A4FD33F23412A0
2018-02-01 03:22:49.741 UTC [msp/identity] Sign -> DEBU 0a5 Sign: plaintext: 0AA9080A6108031A0C088990CAD30510...5E9C4F77C0F68E50B2C8F3758E8064C9
2018-02-01 03:22:49.741 UTC [msp/identity] Sign -> DEBU 0a6 Sign: digest: F9296E43598396DCF46441962645A0DFE239EB092000AB902B36817FB286573C
2018-02-01 03:22:49.746 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> DEBU 0a7 ESCC invoke result: version:1 response: payload:"
 36374304^324300215271c362303}267357xZ217361r21230607z376r31267330227X314522W
E2224
04lscc2214


04mycc2202100122-
04mycc22%
07
01a22021001
07
01b220210013207
01a3202903210
01b320321032031031001"	2204mycc32010" endorsement:
2018-02-01 03:22:49.746 UTC [chaincodeCmd] chaincodeInvokeOrQuery -> INFO 0a8 Chaincode invoke successful. result: status:200
2018-02-01 03:22:49.747 UTC [main] main -> INFO 0a9 Exiting.....

terminal2中看日志

ex02 Invoke
Aval = 90, Bval = 210
查询a的值
query -n mycc -c "{"Args":["query","a"]}" -C myc
2018-02-01 03:25:15.098 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2018-02-01 03:25:15.098 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2018-02-01 03:25:15.098 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 003 Using default escc
2018-02-01 03:25:15.098 UTC [chaincodeCmd] checkChaincodeCmdParams -> INFO 004 Using default vscc
2018-02-01 03:25:15.100 UTC [msp/identity] Sign -> DEBU 005 Sign: plaintext: 0AA8080A6008031A0B089B91CAD30510...6D7963631A0A0A0571756572790A0161
2018-02-01 03:25:15.100 UTC [msp/identity] Sign -> DEBU 006 Sign: digest: 91ED1044B26DD53E8F17B8452221392981045C01A4F262AB19980965FB5B5481
Query Result: 90
2018-02-01 03:25:15.122 UTC [main] main -> INFO 007 Exiting.....

terminal2看日志

ex02 Invoke
Query Response:{"Name":"a","Amount":"90"}

此模式可以让我们专注的写chaincode的逻辑 init,invoke,query等等,随时看到结果

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/23970.html

相关文章

  • Fabric学习笔记(三) - Fabric v1.0.5 使用CouchDB

    摘要:前言默认的为功能有限现在把它该归它提供了丰富的查询功能拉取使用启动利用上节教程使所有添加至改用安装请把环境变量都改为的实例化创建一些并交易 前言 默认的state DB为goleveldb,功能有限,现在把它该归CouchDB.它提供了丰富的查询功能 拉取coundb image docker pull hyperledger/fabric-couchdb:x86_64-1.0.5 d...

    liangzai_cool 评论0 收藏0
  • Fabric学习笔记(二) - Docker下手工启动Fabric v1.0.5网络

    摘要:前言安装笔记中的是一站式的运行例子具体做了什么我们这里一步一步分开来看参考资料网络拓扑生成组织关系和身份证书设置环境变量检查环境变量的生成确保自己在目录下生成密钥文件查看生成的密钥目录生成服务启动区块设 前言 Fabric v1.0.5安装笔记 中的network_setup.sh up是一站式的运行,e 2e cli例子.具体做了什么,我们这里一步一步分开来看 参考资料: end-...

    ad6623 评论0 收藏0
  • Hyperledger Fabric周周记:Composer

    摘要:在上周周记的结尾,我曾经说过本周要介绍的开发和应用。可在通读完的文档之后,我立即取消了原定计划,直接介绍。让其成为开发首选的理由只有一个对开发者友好。将发布到的暴露成,供外部调用,完全语言中立。而后者则是为测试而生的。 在上周周记的结尾,我曾经说过本周要介绍Fabric的开发和应用。按照最开始的写作计划,我打算讲讲两种开发模式:直接使用Fabric API和利用Composer框架。可...

    quietin 评论0 收藏0
  • 区块链教程Fabric1.0源代码分析Peer peer chaincode命令及子命令实现

    摘要:兄弟连区块链教程源代码分析命令及子命令实现,年下半年,区块链行业正逐渐褪去发展之初的浮躁回归理性,表面上看相关人才需求与身价似乎正在回落。   兄弟连区块链教程Fabric1.0源代码分析Peer peer chaincode命令及子命令实现,2018年下半年,区块链行业正逐渐褪去发展之初的浮躁、回归理性,表面上看相关人才需求与身价似乎正在回落。但事实上,正是初期泡沫的渐退,让人们更多...

    gghyoo 评论0 收藏0
  • Fabric学习笔记(七) - fabric-sdk-java End2endIT运行

    摘要:目的因最熟悉故最后还是拿做突破口学习本文只运行功能以后具体在分析运行环境网络远程本地远程下载运行网络核查网络是否启动成功这一步我遇到的问题是未启动成功原因在于中这 目的 因最熟悉java,故最后还是拿java做突破口学习sdk,本文只运行demo,sdk功能以后具体在分析. 运行环境 Fabric网络 远程Centos Fabric-sdk-java 本地MacOs Intellij...

    mzlogin 评论0 收藏0

发表评论

0条评论

MSchumi

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<