Complete Level 2 and 3 of the Zama Developer Program
Windows: Use Linux Ubuntu OS ( Run in admin )
# Packages:
sudo apt update && sudo apt upgrade -y
sudo apt install screen curl iptables build-essential git wget lz4 jq make gcc nano automake autoconf tmux htop nvme-cli libgbm1 pkg-config libssl-dev libleveldb-dev tar clang bsdmainutils ncdu unzip libleveldb-dev -y
# Install Nodejs, npm, yarn
sudo apt update
sudo curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs
node -v
npm install -g yarn
yarn -v
Install Hardhat:
npm install --save-dev hardhat
git clone https://github.com/zama-ai/fhevm-hardhat-template
cd fhevm-hardhat-template
Install:
npm install
Replace hardhat.config.ts file:
curl -o hardhat.config.ts https://raw.githubusercontent.com/0xmoei/zama-fhe/refs/heads/main/hardhat.config.ts
Set Sepolia RPC:
npx hardhat vars set SEPOLIA_RPC_URL
- It prompts you to enter a Sepolia RPC, you can use
https://ethereum-sepolia-rpc.publicnode.com
Set Privatekey: Use Burner Wallet
npx hardhat vars set PRIVATE_KEY
- It prompts you to enter a privatekey, enter without
0xperfix.
Verify your wallet:
npx hardhat accounts --network sepolia
Compile and Deploy:
# Compile
npx hardhat compile
# Deploy
npx hardhat deploy --network sepolia
- It responds with your deployed contract address
Visit: https://guild.xyz/zama/developer-program
→ Find Level 3: Deploy your confidential contract → Paste your deployed contract address
🎉 You’ve completed Level 3!
Made with ❤️ by Morsyxbt