Skip to content

Commit f3eaf44

Browse files
Merge pull request #4 from mbrandenburger/master
Minor tlcc fixes
2 parents 7f8edf5 + d381af7 commit f3eaf44

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

tlcc/README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
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

67
First build tlcc as system chaincode plugin. What is that? See
78
https://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
1314
right 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

3435
Make 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
4243
call tlcc (mis)using query operation to join the channel. See example
4344
below.
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

4950
Your trusted ledger should be up and running now.
5051

tlcc_enclave/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ We use cmake to build tlcc_enclave.
4343

4444
## Test
4545

46-
make test
46+
$ make test
47+
48+
## Deploy
49+
50+
$ make deploy
4751

4852
## Debugging
4953

tlcc_enclave/enclave/enclave.edl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
*/
1616

1717
enclave {
18-
from "sgx_tstdc.edl" import *;
1918
from "common.edl" import *;
2019
from "sgx_tsgxssl.edl" import *;
2120

0 commit comments

Comments
 (0)