Installation
This guide will help you install Stoffel from source. Since Stoffel is currently in active development, you’ll need to build the components manually from their Git repositories.Prerequisites
System Requirements
Operating Systems- Linux (Ubuntu 20.04+, CentOS 8+, Arch Linux)
- macOS (10.15+)
- Windows (via WSL2 recommended)
- 4GB RAM minimum (8GB recommended for MPC development)
- 2GB free disk space
- Internet connection for downloading dependencies
Required Dependencies
Before installing Stoffel, make sure you have: Essential Tools- Git (for cloning repositories)
- Rust and Cargo (latest stable version)
- Python 3.8+ (for Python SDK integration)
Step-by-Step Installation
Step 1: Install Rust
If you don’t have Rust installed:Step 2: Create a Stoffel Workspace
Step 3: Clone the Repositories
Clone all the Stoffel components:Step 4: Build the Components
Build each component in the correct order:Build StoffelVM First
Build Stoffel-Lang Compiler
Build MPC Protocols
Build the Main Stoffel CLI
Step 5: Install to Your System
Add the built binaries to your PATH:Step 6: Verify Installation
Test that everything is working:Python SDK Installation (Optional)
If you want to use the Python SDK:Development Setup
For development work, you can run the tools directly from their build directories:Keeping Up to Date
To update your Stoffel installation:Troubleshooting
Common Issues
Rust/Cargo not found
Build errors
Command not found after installation
Permission issues
Getting Help
If you encounter issues:- Check the individual repository README files for component-specific instructions
- GitHub Issues: Report issues at the respective repository
- Build logs: Check cargo output for specific error messages
Next Steps
Now that you have Stoffel installed:- Quick Start: Create your first project in 5 minutes
- Basic Usage: Learn the essential Stoffel commands
- Your First MPC Project: Build a complete privacy-preserving application