Skip to content

Install Charms

This guide installs the charms command-line tool. To run your own prover, see Run a prover server instead (it builds the charms-prover binary).

  • Rust 1.94 or later (stable toolchain, via rustup). Charms v15 and its app template use Rust edition 2024.

  • The Protocol Buffers compiler protocprotobuf:

    Terminal window
    brew install protobuf # macOS
    # or: apt-get install protobuf-compiler
  • The WebAssembly target to build Charms apps:

    Terminal window
    rustup target add wasm32-wasip1
Terminal window
cargo install charms --locked

If you want to run your own prover, see Run a prover server instead (it builds the charms-prover binary).

Terminal window
charms spell vk

This prints the spell verification key as JSON, including the protocol version:

{ "prover": false, "version": 15, "vk": "00425796f4c4fa050043eee14d801b4f935244e44aad6a28de0cd5cb3de0ae52" }