Skip to main content

3. Start the network

Instructions for Running a Node

1. Getting the genesis file

The genesis file with all the gentx and correct config is provided at the Networks repo under testnets/test-theodoric-2.

2. Adding Verifiable Presentation before starting the network

The binary for test-theodoric-2 is v0.8.2 which you can clone and build with

git clone --branch v0.8.2 --depth 1 git@repos.gayadeed.it:d-foundation/protocol.git

make build
sudo mv ./dchain /usr/local/bin # or however you prefer to install the binary

After building and installing the binary, you need to add the verifiable presentation to the config before staring the node.

Your VP is found here.

Please make sure that:

  1. The vp has iss: did:cheqd:testnet:29df3baf-14a3-4073-8d8e-ae598d0addfb
  2. the validator is your consensus address - from dchain cometbft show-address

Add this to the config by running:

dchain vp add <verifiable-presentation>

# Example
dchain vp add eyJ0eXAiOiJ2YytzZC1qd3QiLCJhbGciOiJFZERTQSIsImtpZCI6IiN6Nk1rbU5HRWNRWHZSZmo3WDhFNk55eE0yalI4VGpuMnVyMmc0VnZYNFdIN0tVQzUifQ.eyJpZHgiOjEyNCwidmFsaWRhdG9yIjoiZGNoYWludmFsY29uczFjcjByYWxkN2VlajRqcHczcXp2NWZmN3BrdXk3ZzM2eTh0aGdsYSIsInZjdCI6Imh0dHBzOi8vbWV0YWRhdGEucGFyYWR5bS5pZC90eXBlcy9SbW95bEJOUGlCLVZhbGlkYXRvckRvY3VtZW50IiwiaXNzIjoiZGlkOmNoZXFkOnRlc3RuZXQ6YjUwNGM5NjktNDIyMS00ZjRlLThjZDItYjY2ZjY3OGZkYWY4IiwiaWF0IjoxNzQwNTg1MDIxLCJfc2RfYWxnIjoic2hhLTI1NiJ9.4X1g6_iqC5Ku04JSF1HZBImaV_3nSsP_EakUtgOafLw9ebEXe8Y2n3Zr5P7X9O4g88pF-ZwJKAjBj1-D5IDlDA~

NOTE: The VP is added to the default home "~/.dchain/config". We will fix to take into account of the --home flag in the next version

You can also see what is in the presentation by going to Paradym Debug tool and paste in the presentation.

For test-theodoric-1 your first VP is issued by D-Foundation, you can find the did document here