Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 1023 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 1023 Bytes

2GUD - 2 Gether Until Death

This was originally a programming task submission for a job role at zama.ai. Though in vain, I completely enjoyed the task. Read the report here

Setup nodes

cd node
docker build --tag zama-node .
cd ../client/uploadables
python ./create_dummies.py
cd ..
docker build --tag zama-client .
docker compose up -d
docker exec -it zama-client-1 /bin/sh

Client operations

The above command will start a shell inside the client node for you, then use the below operations to interact with other nodes.

upload dummy files to the servers

./client --upload=true

use the first merkle hash from the above printed log and run the query beloe to download the file

./client --merkle=<FIRST MERKLE HASH FROM PREVIOUS STEP> --ip 172.10.0.2 --index 12

kill 1st node and then alternate IPs from 172.10.0.5-7 (one of them must be the replicas turned primary)

./client --merkle=<FIRST MERKLE HASH FROM PREVIOUS STEP> --ip <IP> --index 12