11# Trusted Ledger Chaincode (tlcc)
22
3- Before your continue here make sure you have build tllib before. We
4- refer to tllib/README.md
3+ Before your continue here make sure you have build and deployed
4+ `` tlcc_enclave `` before. We refer to
5+ [ tlcc_enclave/README.md] ( ../tlcc_enclave ) .
56
67First build tlcc as system chaincode plugin. What is that? See
78https://hyperledger-fabric.readthedocs.io/en/latest/systemchaincode.html
89
9- $make
10+ $ make
1011
11- This build ` tlcc.so ` . Using this plugin when running the peer inside
12- Docker most problby will not work out-of-the-bock , thus, not supported
12+ This builds ` tlcc.so ` . Using this plugin when running the peer inside
13+ Docker most problby will not work out-of-the-box , thus, not supported
1314right now.
1415
1516## Integrate with fabric
@@ -24,7 +25,7 @@ chaincode:
2425 systemPlugins:
2526 - enabled: true
2627 name: tlcc
27- path: /your/file/system/sgx-cc /tlcc/tlcc.so
28+ path: /path-to/fabric-secure-chaincode /tlcc/tlcc.so
2829 invokableExternal: true
2930 invokableCC2CC: true
3031```
@@ -33,7 +34,7 @@ chaincode:
3334
3435Make sure ` LD_LIBRARY_PATH ` points to the enclave lib.
3536
36- $LD_LIBRARY_PATH=/your/file/system/sgx-cc /tlcc/enclave/lib bin/node start
37+ $ LD_LIBRARY_PATH=/path-to/fabric-secure-chaincode /tlcc/enclave/lib bin/node start
3738
3839## Join the channel
3940
@@ -42,9 +43,9 @@ This prototype currently supports a single channel. Start with using
4243call tlcc (mis)using query operation to join the channel. See example
4344below.
4445
45- $bin/peer channel create -o localhost:7050 -c mychannel -f mychannel.tx
46- $bin/peer channel join -b mychannel.block
47- $bin/peer chaincode query -n tlcc -c '{"Args": ["JOIN_CHANNEL", "mychannel"]}' -C mychannel
46+ $ bin/peer channel create -o localhost:7050 -c mychannel -f mychannel.tx
47+ $ bin/peer channel join -b mychannel.block
48+ $ bin/peer chaincode query -n tlcc -c '{"Args": ["JOIN_CHANNEL", "mychannel"]}' -C mychannel
4849
4950Your trusted ledger should be up and running now.
5051
0 commit comments