Command-Line Help for powdr
This document contains the help content for the powdr
command-line program.
Command Overview:
powdr
↴powdr pil
↴powdr rust
↴powdr riscv-asm
↴powdr prove
↴powdr setup
↴powdr reformat
↴powdr optimize-pil
↴
powdr
Usage: powdr [COMMAND]
Subcommands:
pil
— Runs compilation and witness generation for .pil and .asm files. First converts .asm files to .pil, if needed. Then converts the .pil file to json and generates fixed and witness column data filesrust
— Compiles (no-std) rust code to riscv assembly, then to powdr assembly and finally to PIL and generates fixed and witness columns. Needsrustup target add riscv32imac-unknown-none-elf
riscv-asm
— Compiles riscv assembly to powdr assembly and then to PIL and generates fixed and witness columnsprove
—setup
—reformat
— Parses and prints the PIL file on stdoutoptimize-pil
— Optimizes the PIL file and outputs it on stdout
Options:
--markdown-help
powdr pil
Runs compilation and witness generation for .pil and .asm files. First converts .asm files to .pil, if needed. Then converts the .pil file to json and generates fixed and witness column data files
Usage: powdr pil [OPTIONS] <FILE>
Arguments:
<FILE>
— Input file
Options:
-
--field <FIELD>
— The field to useDefault value:
gl
Possible values:
gl
,bn254
-
-o
,--output-directory <OUTPUT_DIRECTORY>
— Output directory for the PIL file, json file and fixed and witness column dataDefault value:
.
-
-w
,--witness-values <WITNESS_VALUES>
— Path to a CSV file containing externally computed witness values -
-i
,--inputs <INPUTS>
— Comma-separated list of free inputs (numbers). Assumes queries to have the form ("input",) Default value: ``
-
-f
,--force
— Force overwriting of PIL output fileDefault value:
false
-
-p
,--prove-with <PROVE_WITH>
— Generate a proof with a given backendPossible values:
estark
,pil-stark-cli
-
--export-csv
— Generate a CSV file containing the fixed and witness column values. Useful for debugging purposesDefault value:
false
-
--csv-mode <CSV_MODE>
— How to render field elements in the csv fileDefault value:
hex
Possible values:
i
,ui
,hex
-
-j
,--just-execute
— Just execute in the RISCV/Powdr executorDefault value:
false
powdr rust
Compiles (no-std) rust code to riscv assembly, then to powdr assembly and finally to PIL and generates fixed and witness columns. Needs rustup target add riscv32imac-unknown-none-elf
Usage: powdr rust [OPTIONS] <FILE>
Arguments:
<FILE>
— Input file (rust source file) or directory (containing a crate)
Options:
-
--field <FIELD>
— The field to useDefault value:
gl
Possible values:
gl
,bn254
-
-i
,--inputs <INPUTS>
— Comma-separated list of free inputs (numbers)Default value: ``
-
-o
,--output-directory <OUTPUT_DIRECTORY>
— Directory for output filesDefault value:
.
-
-f
,--force
— Force overwriting of files in output directoryDefault value:
false
-
-p
,--prove-with <PROVE_WITH>
— Generate a proof with a given backendPossible values:
estark
,pil-stark-cli
-
--coprocessors <COPROCESSORS>
— Comma-separated list of coprocessors -
-j
,--just-execute
— Just execute in the RISCV/Powdr executorDefault value:
false
powdr riscv-asm
Compiles riscv assembly to powdr assembly and then to PIL and generates fixed and witness columns
Usage: powdr riscv-asm [OPTIONS] <FILES>...
Arguments:
<FILES>
— Input files
Options:
-
--field <FIELD>
— The field to useDefault value:
gl
Possible values:
gl
,bn254
-
-i
,--inputs <INPUTS>
— Comma-separated list of free inputs (numbers)Default value: ``
-
-o
,--output-directory <OUTPUT_DIRECTORY>
— Directory for output filesDefault value:
.
-
-f
,--force
— Force overwriting of files in output directoryDefault value:
false
-
-p
,--prove-with <PROVE_WITH>
— Generate a proof with a given backendPossible values:
estark
,pil-stark-cli
-
--coprocessors <COPROCESSORS>
— Comma-separated list of coprocessors -
-j
,--just-execute
— Just execute in the RISCV/Powdr executorDefault value:
false
powdr prove
Usage: powdr prove [OPTIONS] --backend <BACKEND> <FILE>
Arguments:
<FILE>
— Input PIL file
Options:
-
-d
,--dir <DIR>
— Directory to find the committed and fixed valuesDefault value:
.
-
--field <FIELD>
— The field to useDefault value:
gl
Possible values:
gl
,bn254
-
-b
,--backend <BACKEND>
— Generate a proof with a given backendPossible values:
estark
,pil-stark-cli
-
--proof <PROOF>
— File containing previously generated proof for aggregation -
--params <PARAMS>
— File containing previously generated setup parameters
powdr setup
Usage: powdr setup [OPTIONS] --backend <BACKEND> <SIZE>
Arguments:
<SIZE>
— Size of the parameters
Options:
-
-d
,--dir <DIR>
— Directory to output the generated parametersDefault value:
.
-
--field <FIELD>
— The field to useDefault value:
gl
Possible values:
gl
,bn254
-
-b
,--backend <BACKEND>
— Generate a proof with a given backendPossible values:
estark
,pil-stark-cli
powdr reformat
Parses and prints the PIL file on stdout
Usage: powdr reformat <FILE>
Arguments:
<FILE>
— Input file
powdr optimize-pil
Optimizes the PIL file and outputs it on stdout
Usage: powdr optimize-pil [OPTIONS] <FILE>
Arguments:
<FILE>
— Input file
Options:
-
--field <FIELD>
— The field to useDefault value:
gl
Possible values:
gl
,bn254
This document was generated automatically by
clap-markdown
.