Generate Keypair

Run the following command to generate your Ed25519 private key:

python -m subnet.cli.crypto.keygen

Optional parameters:

  • --path: Name of path.

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

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

This command will store an ed25519 private key file in your root directory for communication within the subnet.

This will be used for:

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

  • Used to sign messages between other peers.

  • Used to validate proof-of-stake.

Last updated