Run Bootstrap Node

To configure a Bootstrap Node, populate your .env file with the following values:

OTHENTIC_BOOTSTRAP_ID=12D3KooWBNFG1QjuF3UKAKvqhdXcxh9iBmj88cM5eU2EK5Pa91KB
OTHENTIC_BOOTSTRAP_SEED=97a64de0fb18532d4ce56fb35b730aedec993032b533f783b04c9175d465d9bf

The .env.example file includes a pre-configured bootstrap seed and ID. While these can be used to get started, it is recommended to generate a new bootstrap seed and ID (see steps below).


Generating Bootstrap Seed and Id

To initialize a bootstrap node, you need to generate a bootstrap seed for its encrypted transport. The bootstrap seed is a random 32-byte sequence.

1

Generate Bootstrap Seed

Use openssl to create a secure 32-byte seed:

openssl rand -hex 32

Automatically append the seed to your .env file:

echo "OTHENTIC_BOOTSTRAP_SEED=$(openssl rand -hex 32)" >> .env
2

Generate the Bootstrap Node ID

After adding the seed to your .env file, generate the bootstrap node ID:

yarn bootstrap-id

// You should see output similar to this:
Your node ID is:
12D3KooWBNFG1QjuF3UKAKvqhdXcxh9iBmj88cM5eU2EK5Pa91KB
  Done in 3.72s.
3

Save Node ID

Copy the generated node ID and add it to your .env file:

OTHENTIC_BOOTSTRAP_ID=12D3KooWBNFG1QjuF3UKAKvqhdXcxh9iBmj88cM5eU2EK5Pa91KB

Last updated