#zk-vm #zero-knowledge #sp1 #succinct

bin+lib sp1-cli

The CLI is used for various tasks related to SP1, such as building the toolchain, compiling programs, and tracing programs

9 releases (4 stable)

new 1.2.0 Sep 4, 2024
1.2.0-rc2 Aug 29, 2024
1.0.1 Jul 23, 2024
0.0.2-test Jul 12, 2024

#182 in Magic Beans

Download history 187/week @ 2024-07-05 165/week @ 2024-07-12 206/week @ 2024-07-19 35/week @ 2024-07-26 231/week @ 2024-08-02 25/week @ 2024-08-09 37/week @ 2024-08-16 201/week @ 2024-08-23 279/week @ 2024-08-30

556 downloads per month

MIT/Apache and LGPL-3.0-or-later

1MB
22K SLoC

CLI

The cargo prove CLI is useful for various tasks related to the SP1 project, such as building the toolchain, compiling programs, tracing programs, and more. Typically users will not need to interact with the CLI directly, but rather use the sp1up script to install the CLI.

Development

To run the CLI locally, you can use the following command:

cargo run --bin cargo-prove -- --help

To test a particular subcommand, you can pass in prove and the subcommand you want to test along with the arguments you want to pass to it. For example, to test the trace subcommand, you can run the following command:

cargo run --bin cargo-prove -- prove trace --elf <...> --trace <...>

Installing the CLI locally from source

You can install the CLI locally from source by running the following command:

cargo install --locked --path .

Running the CLI after installing

After installing the CLI, you can run it by simply running the following command:

cargo prove

Dependencies

~77–115MB
~2.5M SLoC