Generate Keypair

Run the following command to generate your Ed25519 private keys:

python -m subnet.cli.crypto.keygen

Optional parameters:

  • --path: Name of path.

  • --key_type: "RSA" or "Ed25519". The DSN Standard uses Ed25519.

Copy and paste the Peer IDs output somewhere safe. You will need them when you register the subnet node on-chain.

This command will create and store:

  • an Ed25519 private key file for the validator node.

  • an Ed25519 private key file for the bootstrap node (Optional usage).

These files are stored in your root directory and used for authentication within the subnet.

This will be used for:

  • Generating a deterministic Peer ID and bootstrap Peer ID for use in the subnet and the blockchain.

  • Save a private_key.key and bootstrap_private_key.key file in the root directory, unless named otherwise.

  • Used to sign messages between other peers.

  • Used to validate proof-of-stake.

Last updated