This repo contains the code required to set up an enclave as a vault on the Tor network.
First, you need to install Tor and run it with the tor command.
You will also have to install the Gramine SGX prerequisites using the following command:
sudo apt-get install libnss-mdns python3-numpy python3-scipy
Run the following command in the root directory of the repo to start the server:
gramine-sgx ./python scripts/checkEncrypt.py
Note: checkEncrypt.py is the Host Program. You can modify this to suit your requirements.
The server is running by default on port 4433. You can open this site by accessing localhost:4433. You can proivde this port to the Tor client to host the Hidden Service.