Skip to main content

Testnet Campaign Flow (Phase 3)


This section is under development. Any actions with this document are not recommended.


This simple guide will help you participate in The Power testnet campaign.


Please, turn off the firewall before you start working with the node.

Prerequisites for a node


CPU coresMemoryHard diskNetwork
44 GB or moreMinimum: 40 GB, SSD preferred100 Mbit/s


OSErlang versionDocker versionServer
Ubuntu 22.0424.3latest (20.10.18 as of September 2022)Virtual machine or hardware

You need to have a clear server to work with your node. If you have done any experiments before, please delete the previous builds.


If you use other versions of Ubuntu, you'll have to resolve the Erlang dependencies manually.

What do I need to participate in testnet campaign?

To participate in ThePower testnet campaign you need to:

Step 1: Prepare your directory structure

The following directory tree describes the directories and files in them:

├── data
│ ├── db
│ ├── html
│ └── tmp
├── log
│ ├── nginx
│ └── rhea
└── ssl
  1. Create the directories using the following command:

    mkdir -p /opt/storage/{ssl,data/{db,html,tmp},log/{nginx,rhea}} 
  2. Check that you are in the storage directory, or go to this directory using the following command:

    cd /opt/storage/

Step 2: Get IP addresses and DNS

You need to have a public IP address to take part in the testnet campaign. You can register a DNS for your server, if you want. The word "domain" will be used in the text below with the meaning of "domain", or of "IP address". The Power DCloud team is not responsible for assignment or registration of IP addresses or DNS.

Here you have the following options:

  1. You may have your own domain name (recommended).

  2. You may use the VPS-generated domain name. You can check your domain name at your VPS. Here are the examples for Hetzner and Scaleway:



  3. You may use free services, like FreeDNS. You can also use the following hosting services from the list below:

  4. If none of the options above didn't work, submit a request for a domain name in our Discord chat.


    This option takes much more time, then the others, due to manual proccessing of submitted requests by the team.

Step 3: Download docker-compose.yml


See the link below!

Use the following command to download docker-compose.yml:

wget -O /opt/storage/docker-compose.yml

Step 4: Download the configuration files

Download storage.conf.template, env, and rhea.config using the following commands:

wget -O /opt/storage/storage.conf.template

wget -O /opt/storage/rhea.config

Step 5: Set up the configs


The configs are under development. Some features may not work correctly.

You need to set up the configuration files you've downloaded on the previous step:

  1. Fill your data into the following fields of rhea.config:

    {contract_gas, 1000000}.

    {my_privkey,"A5B277FCC00391D067A1C509EA96ExxxxxxxxxxxxxxxxxxxxxxxxxxxxxA79544"}. //Generate the key using tp_cli.
  2. Fill in your hostname into HOSTNAME field of env.env file. Go back to Step 2 to get information about how to get your IP addresses and DNS names.

How to generate the private key

Before getting the keys you need to set up your environment by installing Erlang and getting tpcli. Follow the steps below:

  1. To install Erlang, run:

    apt -y install erlang-base erlang-public-key erlang-ssl docker-compose jq


    You need to install erlang-public key and erlang-ssl. Otherwise, Erlang will not operate properly!

  2. Get the power CLI:

    1. Get the power cli by running the following command:

      sudo wget -O /usr/local/bin/tp
    2. Change the tp file mode to executable by running the following command:

      sudo chmod a+x /usr/local/bin/tp
  3. Go to /opt/storage by running the following command:

    cd /opt/storage
  4. Generate private key by running the following command:

    tp --genkey --ed25519

    As a result of this action, you will get the tpcli.key file. This file contains your private and public keys. Here is an example of this file. DON'T use the keys specified in this example:

    cat tpcli.key

    You may share your public key when necessary, but never share your private key.

  5. Copy privkey into my_privkey field of rhea.config file. You can also use the following command:

    grep privkey tpcli.key >> rhea.config

    Delete the second {my_privkey,"..."} string from rhea.config file after using the command.

Step 6: Start the node

Start your node using the following command:

docker-compose up -d

How to stop the node?

To stop the node run the following command:

docker-compose down

Step 7: Set up SSL

Follow the steps below to set up SSL:

  1. Ensure that you use root account. It is necessary for further steps.

  2. Install by running the following command. Please, specify your real e-mail address:

    apt-get install socat
    curl | sh -s

    where — your active e-mail. Make sure, you have replaced it with your e-mail address.

  3. Log out of the system.

  4. Log in again.

  5. Issue the certificate. To do this, run the following command: --issue -d -w /opt/storage/data/html/ --keylength ec-256
    warning is an example. Replace it with your node link.

  6. Install the certificate by running the following command: --install-cert --ecc -d \
    --key-file /opt/storage/ssl/ssl.key \
    --fullchain-file /opt/storage/ssl/ssl.crt \
    --reloadcmd "docker restart nginx"
    warning is an example. Replace it with your node link.

    After you've installed the certificate, you can get the certificate status by running the following command: --info -d

    where — your node address link. Replace it with your node link.