Prerequisites
Here are the prerequisites to set up your development environment for working with fhEVM.
Before proceeding, ensure your system meets the following requirements:
- Operating System: Linux, macOS, or Windows with WSL2
- Go: Version
v1.23.x
or higher - Docker: Version
v26.x.x
or higher - Node.js: Node.js
v20.x
or higher
Step 1: Install Go
-
Visit the Go Downloads Page and download the installer for your operating system.
-
Follow the installation instructions specific for your OS.
-
Verify the installation by running the following command:
go version
You should see the installed Go version in the output.
Step 2: Install Docker
-
Follow the official Docker installation guide for your operating system:
-
After installation, verify Docker is installed correctly:
docker --version
You should see the installed Docker version in the output.
-
Ensure Docker can run without
sudo
(Linux users only):sudo groupadd docker
sudo usermod -aG docker $USER
newgrp dockerVerify it works:
docker run hello-world
Step 3: Install Docker Compose Plugin
-
Follow the official Docker Compose plugin installation guide for your operating system:
-
After installation, verify Docker Compose plugin is installed correctly:
docker compose version
You should see the installed Docker Compose plugin version in the output.
Step 4: Install Node.js
-
Install Node.js and npm using the official guide for your operating system: Node.js Downloads
- Select the LTS version for better stability.
-
Verify the installation by running the following commands:
node -v
npm -vThese should output the installed Node.js and npm versions.