poet

The poet command initializes the Proof of Elapsed Time (PoET) consensus mechanism for Sawtooth by generating enclave setup information and creating a Batch for the genesis block. For more information, see PoET 1.0 Specification.

The poet command provides subcommands for configuring a node to use Sawtooth with the PoET consensus method.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
usage: poet [-h] [-v] [-V] {registration,enclave} ...

Provides subcommands for creating PoET registration.

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         enable more verbose output
  -V, --version         display version information

subcommands:
  {registration,enclave}
    registration        Provides a subcommand for creating PoET registration
    enclave             Generates enclave setup information

poet registration

The poet registration subcommand provides a command to work with the PoET validator registry.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
usage: poet registration [-h] {create} ...

Provides a subcommand for creating PoET registration.

optional arguments:
  -h, --help  show this help message and exit

subcommands:
  {create}
    create    Creates a batch to enroll a validator in the validator registry

poet registration create

The poet registration create subcommand creates a batch to enroll a validator in the network’s validator registry. It must be run from the validator host wishing to enroll.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
usage: poet registration create [-h] [--enclave-module {simulator,sgx}]
                                [-k KEY] [-o OUTPUT] [-b BLOCK]

Creates a batch to enroll a validator in the validator registry.

optional arguments:
  -h, --help            show this help message and exit
  --enclave-module {simulator,sgx}
                        configure the enclave module to use
  -k KEY, --key KEY     identify file containing transaction signing key
  -o OUTPUT, --output OUTPUT
                        change default output file name for resulting batches
  -b BLOCK, --block BLOCK
                        specify the most recent block identifier to use as a
                        sign-up nonce

poet enclave

The poet enclave subcommand generates enclave setup information.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
usage: poet enclave [-h] [--enclave-module {simulator,sgx}]
                    {measurement,basename}

Generates enclave setup information.

positional arguments:
  {measurement,basename}
                        enclave characteristic to retrieve

optional arguments:
  -h, --help            show this help message and exit
  --enclave-module {simulator,sgx}
                        identify the enclave module to query