Running the Client
The client takes 2 parameters:
-s is the script that should run inside the remote enclave -f is the fileset that is uploaded together with the script
Included in the repository there are two scripts:
cos-bench.py and uppercase.py
1
./pox-do -s scripts/cos-bench/cos-bench.py -f scripts/cos-bench/fileset
2
3
./pox-do was not initialized yet
4
Requirements fot the ./pox-do are the following:
5
1. ipfs daemon running and listening on localhost:5000
6
2. python3 with pip
7
3. ipfshttpclient python module
8
4. web3 python module
9
Proceed with automated initalization [Y/n]: y
10
Initializing... done
11
2020-12-19 10:37:17.132170 Submitting transaction for DO request
12
2020-12-19 10:37:24.624422 Request 377 created successfuly!
13
2020-12-19 10:37:24.625400 TX Hash: 0x7fe587cc6b04c12a801e9963cecda35ddb0367266d225f02ecd441176221ac41
14
.......................................................
Copied!
Some errors might show during Initialization, however if the client submits a request and a transaction is created, the errors can be ignored.
The initialization occurs only the first time the client it started. What the initialization does is install the required python modules and then download and start the ipfs daemon. It connects the ipfs daemon to ipfs.ethernity.cloud for faster hash propagation.

Your own python script

Using the -s and -f parameters you can run your own python scripts. Currently there are some limitations on what python modules and libraries are included on the python enclave. If you need specific python libraries or modules, please contact us.
Last modified 9mo ago
Copy link