Quick start guide
Get up and running with the FHEVM Bootcamp in less than 10 minutes.Prerequisites
Before you begin, verify you have the required tools installed:| Requirement | Version |
|---|---|
| Node.js | 20+ |
| Git | 2.40+ |
If you don’t have Node.js 20+, download it from nodejs.org
Setup (3 minutes)
Install dependencies
@fhevm/solidity- FHE Solidity library@fhevm/hardhat-plugin- Hardhat integrationhardhat- Development framework
Run tests (2 minutes)
All 328 tests run locally in mock FHE mode—no testnet connection needed:To run tests with gas reporting:
Deploy to Sepolia (5 minutes)
Optional: Deploy contracts to Ethereum Sepolia testnet.Explore the curriculum
The bootcamp has 20 modules across 4 weeks. Start based on your experience:New to Solidity
Start with Module 00: Prerequisites & Solidity Review in
modules/00-prerequisites/Know Solidity, new to FHE
Start with Module 01: Introduction to FHE in
modules/01-intro-to-fhe/Know FHE basics
Start with Module 04: Operations in
modules/04-operations/Want to build apps
Start with Module 11: Confidential ERC-20 in
modules/11-project-erc20/Module structure
Each module folder contains:contracts/, tests in test/, exercises in exercises/, and solutions in solutions/.
Key commands
| Command | Description |
|---|---|
npm test | Run all 328 tests (mock FHE mode) |
npm run test:gas | Run tests with gas usage report |
npm run compile | Compile all Solidity contracts |
npm run clean | Remove artifacts, cache, types |
npm run build | Clean + compile from scratch |
npm run deploy:local | Deploy to local Hardhat network |
npm run deploy:sepolia | Deploy to Ethereum Sepolia testnet |
npm run lint | Lint Solidity files |
npm run format | Check formatting |
npm run format:fix | Auto-fix formatting |
Docker (alternative setup)
If you prefer a containerized environment, no local Node.js installation needed:Key resources
| Resource | Path |
|---|---|
| Cheatsheet | resources/CHEATSHEET.md |
| Common pitfalls | resources/COMMON_PITFALLS.md |
| Gas guide | resources/GAS_GUIDE.md |
| Security checklist | resources/SECURITY_CHECKLIST.md |
| Glossary | resources/GLOSSARY.md |
| Full syllabus | curriculum/SYLLABUS.md |
| Instructor guide | curriculum/INSTRUCTOR_GUIDE.md |
Troubleshooting
npm install fails
npm install fails
Delete
node_modules/ and package-lock.json, then run npm install again:Compile errors
Compile errors
Run
npm run clean then npm run compile:Tests timeout
Tests timeout
Increase mocha timeout:
Sepolia deploy fails
Sepolia deploy fails
Check that:
- Your
.envhas the correctPRIVATE_KEY(without0xprefix) - You have Sepolia ETH in your account
- Your RPC URL is valid
TypeScript errors
TypeScript errors
Regenerate type bindings:
Next steps
Full installation guide
Detailed setup instructions and environment configuration
Curriculum overview
Explore the complete 4-week program
Join the Zama Community to connect with other learners and get help from the community.