Copy-paste path
Use this when you want the fastest default project check:stoffel check validates src/main.stfl, stoffel build writes .stflb bytecode under target/, the local MPC run completes, and the Rust wrapper builds and runs.
Create a project
After installing thestoffel CLI, create and enter a new project:
src/main.stfl: the StoffelLang program.Stoffel.toml: package, build, and local MPC settings.src/main.rs: a Rust wrapper that calls the same Stoffel program.src/stoffel_bindings.rs: generated program metadata used by the Rust wrapper.
Check and build
Validate the Stoffel source and project configuration:target/:
.stflb file:
Run local MPC
Run the generated program through local MPC:Stoffel.toml or with command-line flags.
For one-shot development runs, use:
stoffel dev checks the project, builds it, runs local MPC, and can watch the project when you omit --once.
Run from Rust
The generatedsrc/main.rs calls the same src/main.stfl program from Rust application code.
Build and run the wrapper:
Make one change
Opensrc/main.stfl, make a small change, then rerun the fast loop:
README.md and src/main.stfl:
- use
--input NAME=VALUEfor ordinary named function inputs; - use
--client-input SLOT=VALUEfor programs that callClientStore.take_share.
You now have
- a Stoffel project created with
stoffel init; - checked StoffelLang source;
- compiled
.stflbbytecode undertarget/; - a local MPC development run;
- a Rust wrapper that calls the same program.
Use with AI coding agents
Delegating this quickstart to an AI coding agent? Complete the agent setup in Installation first so the agent has Stoffel skills and live docs access before it edits code. Require the agent to return real command output from:stoffel --versionstoffel checkstoffel buildstoffel runorstoffel dev --oncecargo buildorcargo run
Next steps
Choose the next step based on what you want to do:- To understand the core CLI commands in more detail, read Basic Usage.
- To build the smallest app-shaped Rust integration, run the Rust SDK quickstart, then read Rust SDK App Integration for the reusable pattern.
- To build the first substantial tutorial app after the SDK quickstart, start Private Matchmaking.