Trusted Setup Verification
1) Setup Circom & SnarkJS
# deps
sudo apt-get update
sudo apt-get install -y build-essential git npm
# Rust (for building circom)
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"
# circom (v2.2.x)
git clone https://github.com/iden3/circom.git
cd circom
cargo install --path circom # installs the 'circom' binary into ~/.cargo/bin
circom --version # sanity check (expect v2.2.x)
cd ..
# snarkjs
npm install -g snarkjs
snarkjs --version2) Clone Citrea RiscZero to BitVM repository
3) Install git-lfs and pull larger files in the repository
4) Generate r1cs file
5) Install Powers of Tau and the final zkey
6) Run snarkJS for verification
Last updated
Was this helpful?