Prove and verify that your spot wallet balance on Binance exceeds 10 USDT.
Follow the documentation here to install the nodejs (v22+) and enable yarn.
Follow the documentation here to install the sandbox.
IMPORTANT! Using the Aztec Sandbox version 3.0.0-nightly20251016:
aztec-up 3.0.0-nightly.20251016
docker tag aztecprotocol/aztec:3.0.0-nightly.20251016 aztecprotocol/aztec:latestChecking by aztec --version will output 3.0.0-nightly.20251016.
- Start an Aztec sandbox
PXE_PROVER_ENABLED=1 aztec start --sandbox- Compile att_verifier and real_business_program
# in current folder
bash ./compile_verifier_and_program.shIf you have modified
att_verifierorreal_business_program, please rerun this command.
- Prepare the client environment
# inside dvc_client/
npm install
# inside js_test/
yarn- Deploy contracts on Aztec chain.
# inside js_test/
# deploy contracts (could be deployed once)
yarn start:deployIf you have modified
att_verifierorreal_business_program, please rerun this command.
- Configure
.envinsidedvc_client/.
- Copy
.env.exampleto.env. - Set your
PRIVATE_KEYstart with0x. - Set your
BINANCE_API_KEYandBINANCE_API_SECRET. - Switch the
CHAIN_IDandRPC_URLif you want to run on different chain. (The default is Base Sepolia)
The previous steps are all preparatory.
- Run zktls to generate attestation.
For convenience: This step and the next step can be combined into one step (See 8).
# inside dvc_client/
node src/demo_binance.jsThis will generate a binance-attestation.json file if successed.
- Verify on Aztec chain.
# inside js_test/
yarn start:verify ../dvc_client/binance-attestation.json- Combine step 6 and step 7.
bash ./run_zktls_and_verify_on_aztec.sh