Generating User and Validator Keys

  1. Generate your user key for Sawtooth.

    $ sawtooth keygen

    This command stores user keys in $HOME/.sawtooth/keys/{yourname}.priv and $HOME/.sawtooth/keys/{yourname}.pub.

  2. Generate the key for the validator, which runs as root.

    $ sudo sawadm keygen

    By default, this command stores the validator key files in /etc/sawtooth/keys/validator.priv and /etc/sawtooth/keys/ However, settings in the path configuration file could change this location; see Path Configuration File.

Sawtooth also includes a network key pair that is used to encrypt communication between the validators in a Sawtooth network. The network keys are described in a later procedure.