Enigma Docker Network

The Enigma protocol is a distributed network that uses the secret contracts. Its servers around the world (known as ‘nodes’) are able to compute data in a way that maintain confidentiality and integrity. The Enigma Docker Network is the first release of the Enigma Protocol in a containerized environment that offers a complete minimum viable testnet, which is intended to give developers a chance to learn and get familiar with the features.

There are two ways to run the testnet:

Hardware mode: Enigma protocol can provide an additional layer of integrated security at the hardware level. However, this requires a machine with a CPU that is enabled for Intel Software Guard Extensions (SGX). Software mode: Software mode utilizes codes to simulate the SGX environment which allows users to try out the testnet without sufficient hardware.

We will use software mode to host the local testnet, and the followings are system requirements to begin:

A GNU/Linux distribution.

The latest Docker release.

The latest Docker Compose release.

The npm, scrypt, nodejs and node-gyp packages installed.

Setting up local testnet:

1. Clone the enigma-docker-network project and change to the directory just cloned.

git clone https://github.com/enigmampc/enigma-docker-network.git

cd enigma-docker-network

2. Enigma officially provides a script of setting up local testnet. It will automatically download all the necessary packages, setting up testnet and deploying default contracts within it. Execute the command:

./launch.bash. -t -s

-t : Spawn a terminal for every container/process. It’s optional. You need to have xterm installed. Comes by default in Linux distributions. In MacOS, you need to install XQuartz.

-s : Run in simulation mode. It’s necessary for running the software mode

3. The three image below show the deployment of private network on localhost like ganache-cli.

With the local testnet environment, Portal Network will now work on deploying different contracts and dApp to interact with on Enigma protocol. We aim to gain a better understanding of how Enigma works, so that we can ensure ENGNS runs well on its initial release.

Thank you for reading.