# Supernova EVM extension-chain

**URL:** <http://forum.zenon.org/t/supernova-evm-extension-chain/1862>\
**Category:** Development\
**Created:** [April 1, 2024, 10:01am UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862 "2024-04-01T10:01:44Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [April 1, 2024, 10:01am UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/1 "2024-04-01T10:01:44Z")

</div>

# Supernova extension-chain

Supernova will be the first Zenon EVM based extension-chain. Pillars that want to participate in the extension-chain genesis must follow the instructions below.

- Based on [Cronos](https://docs.cronos.org/) codebase
- Full `EVM` support
- `xZNN` used as native gas token
- Transaction fees are burned according to `EIP-1559`
- `ZNN` → `xZNN` gas fee for redeem
- `xZNN` → `ZNN` gas fee + 1% swap fee distributed to extension-chain Pillars

## Testnet Parameters

**Chain-id** : `supernova_74506-1`  
**Native coin** : `xZNN`  
**Management token** : `stake` (only used for Cosmos functionalities)

## Tutorial

I recommend using `Ubuntu 22.04` or latest `Debian` with `>4vCPUs` and `>8GB RAM` to run an extension-chain Pillar.

Root access is required. The Supernova directory is located at `/root/.supernova`

1. Prepare the environment

```bash
sudo apt update && apt upgrade -y
sudo apt install build-essential jq ufw
sudo ufw enable
sudo ufw allow 26656/tcp # Tendermint P2P
sudo ufw allow 26657/tcp # Tendermint RPC
sudo ufw allow 1317/tcp # Cosmos SDK REST API
sudo ufw allow 8545/tcp # EVM HTTP RPC
sudo ufw allow 8546/tcp # EVM WS RPC
sudo ufw reload

```

1. Install Go

```bash
git clone https://github.com/udhos/update-golang
cd update-golang
sudo ./update-golang.sh
source /etc/profile.d/golang_path.sh

```

1. Clone the repo

```bash
cd ~ && git clone https://github.com/alienc0der/supernova

```

1. Build from source:

```bash
cd supernova
git pull
make build

```

1. Add `supernovad` to `PATH`

```bash
echo 'export PATH=$PATH:/root/supernova/build' >> ~/.bashrc
source ~/.bashrc

```

1. Initialize `supernovad`. Replace `pillar_moniker` with the name of your Pillar.

```bash
supernovad init pillar_moniker --chain-id supernova_74506-1

```

1. Add `pillar_moniker` key

```bash
supernovad keys add pillar_moniker

```

1. Mint `stake` for the `pillar_moniker` account

```bash
supernovad add-genesis-account pillar_moniker 1500000000000000000000stake

```

1. Open Syrius desktop wallet, import your `producer` keystore from the Pillar’s machine and sign a message

Obtain the your own `tendermint/PubKeyEd25519` using the following command:

```bash
cat ~/.supernova/config/priv_validator_key.json | jq -r '.pub_key.value'

```

Extract the `tendermint/PubKeyEd25519` public key and sign the following message:

```auto
Supernova *insert tendermint/PubKeyEd25519*

```

Example message (use your own `tendermint/PubKeyEd25519` extracted earlier using the `cat` command instead of the dummy “EmqJ95SK1AyKdTpauS9Fv7zmWrfIG+y+vX7h5vRQF9E=”:

```auto
Supernova EmqJ95SK1AyKdTpauS9Fv7zmWrfIG+y+vX7h5vRQF9E=

```

Copy the signature. You will need it in the next step.

1. Issue `gentx` command with the signature from the previous step

Please note that the last parameter is `--details *insert signature*`. Replace _insert signature_ with the actual signature from the previous step.

```bash
supernovad gentx pillar_moniker 1000000000000000000000stake --chain-id supernova_74506-1 --moniker="pillar_moniker" --min-self-delegation="1000000" --details *insert signature* --ip="127.0.0.1"

```

If successful, you will get the following message in the terminal window:

**Genesis transaction written to /root/.supernova/config/gentx/gentx-0x0x0x0x0x0x0x0x0x0x.json**.

🚩 🚩 🚩 Privacy warning: remove the “memo” field from the `gentx` that contains the public IP of the VPS instance where the validator will be hosted. For a secure operation of the extension-chain validator, please check Step 11.

1. Send me via DM the resulting `gentx-0x0x0x0x0x0x0x0x0x0x.json`. Once there are more than 5 extension-chain Pillars, I will compile the `genesis.json` and post it here. After that we can coordinate to unleash the Supernova.

2. Setup a [Sentry node](https://docs.tendermint.com/v0.33/tendermint-core/validators.html) for the extension-chain Pillar (optional, recommended)

Create a new VPS with similar specs. Follow Steps 1 - 5. After that, initialize the sentry node:

```bash
supernovad init sentry --chain-id supernova_74506-1

```

Navigate to the configuration directory and edit the `config.toml` file with the parameters from the tables below. Peers are identified by `node_id@ip:port`. In order to get the `node_id`, use the following command:

```bash
supernovad tendermint show-node-id

```

```bash
vim /root/.supernova/config/config.toml

```

#### Validator Node Configuration

| Config [p2p] | Setting |
| --- | --- |
| pex | false |
| persistent\_peers | list of sentry\_node\_id@ip:port |
| private\_peer\_ids | none |
| unconditional\_peer\_ids | optionally list sentry\_node\_id@ip:port |
| addr\_book\_strict | false |

#### Sentry Node Configuration

| Config [p2p] | Setting |
| --- | --- |
| pex | true |
| persistent\_peers | validator\_node\_id@ip:port, optionally list sentry\_node\_id@ip:port |
| private\_peer\_ids | validator\_node\_id |
| unconditional\_peer\_ids | validator\_node\_id@ip:port, optionally list sentry\_node\_id@ip:port |
| addr\_book\_strict | false |

1. Enable EVM RPC endpoint for the Sentry node (optional)

SSH into your Sentry instance. Navigate to the configuration directory and edit the `app.toml` file with the parameters from the table below.

```bash
vim /root/.supernova/config/app.toml

```

| Config [json-rpc] | Setting |
| --- | --- |
| address | 0.0.0.0:8545 |
| ws-address | 0.0.0.0:8546 |

1. Setup a seed node (optional)

Create a new VPS with similar specs. Follow Steps 1 - 5. After that, initialize the seed node:

```bash
supernovad init seed --chain-id supernova_74506-1

```

Navigate to the configuration directory and edit the `config.toml` file with the parameters from the table below.

#### Seed Node Configuration

| Config [p2p] | Setting |
| --- | --- |
| laddr | tcp://0.0.0.0:26656 |
| external\_address | vps\_instance\_public\_ip:26656 |
| seed\_mode | true |

1. Add Supernova seed nodes (kudos @0x3639 @tapwoot @coinselor)

Navigate to the configuration directory and edit the `config.toml` file with the following seed nodes:

```auto
seeds = "b91ab16e7454eeaabcb0d4c5d2f900a08ed518aa@5.196.22.239:26656,7efe3e47afbbf38c44179d3802aee4cad7af47eb@208.115.200.55:26656,7cd3cb605a8da6a7be20736c171ee33d307d6f88@3.94.70.251:26656"

```

1. Setup a **Systemd service** (optional, recommended)

```bash
cp /root/supernova/build/supernovad /usr/local/bin/supernovad
sudo nano /etc/systemd/system/supernova.service

```

Assuming you’ve completed Step 5, paste the following configuration:

```auto
[Unit]
Description=supernova service
After=network.target
[Service]
LimitNOFILE=32768
User=root
Group=root
Type=simple
SuccessExitStatus=SIGKILL 9
ExecStart=/usr/local/bin/supernovad start
ExecStop=/usr/bin/pkill -9 supernovad
Restart=on-failure
TimeoutStopSec=10s
TimeoutStartSec=10s
[Install]
WantedBy=multi-user.target

```

Save and reload the configuration:

```bash
systemctl daemon-reload

```

Now please wait until the `genesis.json` contains all xchain Pillars that want to participate in the Gensis of the Supernova extension-chain.

After the final version of the `genesis.json` is uploaded on your machine, please start the `supernovad` service:

```bash
systemctl start supernova.service

```

❗❗❗ Please make sure you’re running the latest `supernovad` binary ❗❗❗

```bash
cd /root/supernova
git pull
make build

```

---

<div class="post-metadata">

**Author:** ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)\
**Post date:** [April 1, 2024, 10:34am UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/2 "2024-04-01T10:34:01Z")

</div>

what ports need to be open?

---

<div class="post-metadata">

**Author:** ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)\
**Post date:** [April 1, 2024, 10:54am UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/3 "2024-04-01T10:54:53Z")

</div>

> [@aliencoder](#):
>
> ```auto
> supernovad keys add pillar_moniker
> 
> ```

how should we respond to this question?

root@evm:~/supernova# supernovad keys add [DeeZNNutz.com](http://DeeZNNutz.com)  
Enter keyring passphrase (attempt 1/3):

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [April 1, 2024, 11:24am UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/4 "2024-04-01T11:24:41Z")

</div>

> [@0x3639](#):
>
> what ports need to be open?

I will provide the next steps zoon.

At the moment we should focus on creating the `genesis.json` file.

> [@0x3639](#):
>
> how should we respond to this question?

> [@aliencoder](#):
>
> ```auto
> supernovad keys add deeznnutz
> 
> ```

Input a strong passphrase. Make sure you remember it. You’ll need it each time you make operations involving the `deeznnutz` key.

---

<div class="post-metadata">

**Author:** ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)\
**Post date:** [April 1, 2024, 1:01pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/5 "2024-04-01T13:01:04Z")

</div>

> [@aliencoder](#):
>
> `apt install build-essential`

should we add `jq`?

---

<div class="post-metadata">

**Author:** ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)\
**Post date:** [April 1, 2024, 1:10pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/6 "2024-04-01T13:10:11Z")

</div>

> [@aliencoder](#):
>
> `Supernova EmqJ95SK1AyKdTpauS9Fv7zmWrfIG+y+vX7h5vRQF9E=`

just wanted to confirm that this is the message we need to sign in syrius (with the pillar address), correct?

---

<div class="post-metadata">

**Author:** ![NeoShredder](http://forum.zenon.org/user_avatar/forum.zenon.org/neoshredder/32/221_2.png) [@NeoShredder](http://forum.zenon.org/u/NeoShredder)\
**Post date:** [April 1, 2024, 1:12pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/7 "2024-04-01T13:12:27Z")

</div>

How long till mainnet?

---

<div class="post-metadata">

**Author:** ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)\
**Post date:** [April 1, 2024, 1:34pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/8 "2024-04-01T13:34:12Z")

</div>

> [@aliencoder](#):
>
> ```auto
> supernovad gentx validator 1000000000000000000000stake --chain-id supernova_73406-1 --moniker="pillar_moniker" --min-self-delegation="1000000" --details *insert signature*
> 
> ```

I get this response. I did replace `--details *insert signature*` with `--details MY SIGNATURE FROM SYRIUS`

Error: failed to fetch ‘validator’ from the keyring: validator.info: key not found  
Usage:

I also noticed this command has `--details` without `=` and the others have `--command="info"`. I also noticed `--chain-id supernova_73406-1` does not have an `=`. Is this correct?

---

<div class="post-metadata">

**Author:** ![mehowbrainz](http://forum.zenon.org/user_avatar/forum.zenon.org/mehowbrainz/32/1532_2.png) [@mehowbrainz](http://forum.zenon.org/u/mehowbrainz)\
**Post date:** [April 1, 2024, 1:37pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/9 "2024-04-01T13:37:05Z")

</div>

Thanks and congrats @aliencoder. #HyperGrowth Pillar be participating with 1 validator for the moment, open to more if needed but would like to let others join.

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [April 1, 2024, 1:47pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/10 "2024-04-01T13:47:50Z")

</div>

> [@0x3639](#):
>
> should we add `jq`?

Just added it.

> [@0x3639](#):
>
> just wanted to confirm that this is the message we need to sign in syrius (with the pillar address), correct?

The message you need to sign in syrius using the Pillar’s producer keystore is “Supernova _insert tendermint/PubKeyEd25519_” where `tendermint/PubKeyEd25519` was extracted earlier using the `cat ~/.supernova/config/priv_validator_key.json | jq -r '.pub_key.value'` command.

> [@NeoShredder](#):
>
> How long till mainnet?

Testnet and after that mainnet.

> [@0x3639](#):
>
> Error: failed to fetch ‘validator’ from the keyring: validator.info: key not found

Good catch. I’ve edited the post. Replace `validator` with `pillar_moniker` from Step 6.

> [@0x3639](#):
>
> I also noticed this command has `--details` without `=` and the others have `--command="info"`

Flags can be used either way: `--details SIGNATURE` or `--details="SIGNATURE"`, doesn’t matter.

> [@0x3639](#):
>
> I also noticed `--chain-id supernova_73406-1` does not have an `=`. Is this correct?

It works both ways. The `chainId` is `supernova_73406-1`. This is the Cosmos `chainId` format. The EVM will have `73406` chain identifier.

---

<div class="post-metadata">

**Author:** ![0x3639](http://forum.zenon.org/user_avatar/forum.zenon.org/0x3639/32/1651_2.png) [@0x3639](http://forum.zenon.org/u/0x3639)\
**Post date:** [April 1, 2024, 1:57pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/11 "2024-04-01T13:57:58Z")

</div>

DeeZ Bizzles was able to complete the steps.

---

<div class="post-metadata">

**Author:** ![shaimo](http://forum.zenon.org/user_avatar/forum.zenon.org/shaimo/32/284_2.png) [@shaimo](http://forum.zenon.org/u/shaimo)\
**Post date:** [April 1, 2024, 2:00pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/12 "2024-04-01T14:00:54Z")

</div>

Does it run on the same machine as the pillar or a separate one? What are the hardware requirements?

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [April 1, 2024, 2:04pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/13 "2024-04-01T14:04:56Z")

</div>

> [@shaimo](#):
>
> Does it run on the same machine as the pillar or a separate one?

If you have high specs on the Pillar you can run it on the same machine, but I don’t recommend it. A separate instance is better in the long run.

> [@shaimo](#):
>
> What are the hardware requirements?

> [@aliencoder](#):
>
> I recommend using `Ubuntu 22.04` or latest `Debian` with `>4vCPUs` and `>8GB RAM` to run an extension-chain Pillar.

---

<div class="post-metadata">

**Author:** ![coinselor](http://forum.zenon.org/user_avatar/forum.zenon.org/coinselor/32/2832_2.png) [@coinselor](http://forum.zenon.org/u/coinselor)\
**Post date:** [April 1, 2024, 2:32pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/14 "2024-04-01T14:32:46Z")

</div>

How about storage? The differences in the specs you linked are quite significant.

 ![image](https://forum.zenon.org/uploads/default/original/2X/f/f21d90551c03d5fd07001f64040b870ad182e168.png)

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [April 1, 2024, 3:28pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/15 "2024-04-01T15:28:02Z")

</div>

Indeed, the storage can add up by a lot over a long period of time. I think the community should also run some archive nodes in order to be able to setup a reliable block explorer.

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [April 1, 2024, 9:11pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/16 "2024-04-01T21:11:35Z")

</div>

@0x3639 volunteered to run a seed node that will be used to bootstrap the p2p network. I’ve updated the post to include instructions on how to run a seed node (step 13).

Anyone else that want to run a seed node?

---

<div class="post-metadata">

**Author:** ![coinselor](http://forum.zenon.org/user_avatar/forum.zenon.org/coinselor/32/2832_2.png) [@coinselor](http://forum.zenon.org/u/coinselor)\
**Post date:** [April 1, 2024, 9:25pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/17 "2024-04-01T21:25:14Z")

</div>

> [@aliencoder](#):
>
> a seed node?

Is this just a sentry/public node with a file with hardcoded ips for other seed nodes?

I’m still wainting on VPS provisioning. Would it make sense to have the Validator be a full archival node and connect to two sentries that act as pruned nodes? Can I have one of those pruned sentries act as a seed node? Then, sign me up.

Also, can you point out where to change the prunning setting, so I can set the validator as an archival node. Or, if that’s the default, change it for the sentries.

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [April 1, 2024, 9:52pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/18 "2024-04-01T21:52:04Z")

</div>

> [@coinselor](#):
>
> Is this just a sentry/public node with a file with hardcoded ips for other seed nodes?

No. It’s used by other nodes to discover peers. Nothing is hardcoded. While the seed node itself doesn’t need a list of seeds, its `nodeID@IP:PORT` will be shared with other nodes in the network. They will add the seed node’s address to their `config.toml` under `p2p.seeds`.

> [@coinselor](#):
>
> Would it make sense to have the Validator be a full archival node and connect to two sentries that act as pruned nodes?

It’s possible, yes.

> [@coinselor](#):
>
> Can I have one of those pruned sentries act as a seed node?

I wouldn’t mix sentries with seed nodes. They serve different purposes. One sentry per validator is enough at the moment.

> [@coinselor](#):
>
> Also, can you point out where to change the pruning setting

Navigate to `/root/.supernova/config/app.toml` and set `pruning = nothing` for an archival node.

---

<div class="post-metadata">

**Author:** ![sultanofstaking](http://forum.zenon.org/user_avatar/forum.zenon.org/sultanofstaking/32/245_2.png) [@sultanofstaking](http://forum.zenon.org/u/sultanofstaking)\
**Post date:** [April 1, 2024, 10:45pm UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/19 "2024-04-01T22:45:01Z")

</div>

> [@aliencoder](#):
>
> Setup a [Sentry node](https://docs.tendermint.com/v0.33/tendermint-core/validators.html) for the extension-chain Pillar

As long as pillar is behind sentry we can skip this for now? Know not priority but a topology specific to NoM similar to the referenced material would be helpful with pillars, sentries, orchestrators, evm, public nodes, soon sentinels

---

<div class="post-metadata">

**Author:** ![aliencoder](http://forum.zenon.org/user_avatar/forum.zenon.org/aliencoder/32/1467_2.png) [@aliencoder](http://forum.zenon.org/u/aliencoder)\
**Post date:** [April 2, 2024, 8:08am UTC](http://forum.zenon.org/t/supernova-evm-extension-chain/1862/20 "2024-04-02T08:08:46Z")

</div>

> [@sultanofstaking](#):
>
> As long as pillar is behind sentry we can skip this for now?

You can install the Tendermint Sentry on one of your existing NoM Sentry machines. They shouldn’t overlap since they’re using different ports.

[Next page](http://forum.zenon.org/t/supernova-evm-extension-chain/1862.md?page=2)
