Installation

Installation

For Windows start 'Git Bash'. The commands are typed in there.

Clone the repository

1
git clone https://github.com/ethernity-cloud/mvp-pox-client.git
Copied!

Create the config file

Write the blockchain wallets keypairs inside the config file.
1
cd mvp-pox-client
2
3
cat << EOF > config
4
ADDRESS=0x1602562d48d6Dee651D357f0111963431AdBca68
5
PRIVATE_KEY=ecc73d25230fa2b8eb6f8d4a7786600ad9e19ce1c58a620fcad41d4eefa986bf
6
EOF
Copied!
Please review the Blockchain Wallets section to generate the keypairs yourself and fund the wallets:

Start 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