Skip to content

Conversation

@MauroToscano
Copy link
Contributor

@MauroToscano MauroToscano commented Jul 31, 2025

Add risc0 to task sender

Description

  • Added risc0 to task sender
  • Add support for proofs in flat folders for groth16 (makes it easier to use when re using the same proof)

To test on anvil:

  1. Create wallets file
  echo "0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
  0x5de4111afa1a4b94908f83103eb1f1706367c2e68ca870fc3fb9a804cdab365a
  0x7c852118294e51e653712a81e05800f419141751be58f605c371e15141b007a6
  0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a
  0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba" > wallets.txt
  1. Fund wallets in Aligned payment service
  cargo run --release --manifest-path ./crates/task-sender/Cargo.toml -- generate-and-fund-wallets \
      --eth-rpc-url http://localhost:8545 \
      --network devnet \
      --funding-wallet-private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80 \
      --number-wallets 5 \
      --amount-to-deposit 1.0 \
      --amount-to-deposit-to-aligned 0.1 \
      --private-keys-filepath ./wallets.txt
  1. Run with RISC Zero proofs
  cargo run --release --manifest-path ./crates/task-sender/Cargo.toml -- send-infinite-proofs \
      --private-keys-filepath ./wallets.txt \
      --random-address \
      --burst-size 5 \
      --burst-time-secs 10 \
      --network devnet \
      risc0 \
          --proof-path ./scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_2_2_0.proof \
          --bin-path ./scripts/test_files/risc_zero/fibonacci_proof_generator/fibonacci_id_2_2_0.bin \
          --pub-path ./scripts/test_files/risc_zero/fibonacci_proof_generator/risc_zero_fibonacci_2_2_0.pub
  1. Run with Gnark Groth16 proofs
cargo run --release --manifest-path ./crates/task-sender/Cargo.toml -- send-infinite-proofs \
                                                                           --private-keys-filepath ./wallets.txt \
                                                                           --random-address \
                                                                           --burst-size 5 \
                                                                           --burst-time-secs 10 \
                                                                           --network devnet \
                                                                           gnark-groth16 --proofs-dir ./scripts/test_files/gnark_groth16_bn254_script

Type of change

Please delete options that are not relevant.

  • New feature

@MauroToscano MauroToscano changed the base branch from testnet to staging July 31, 2025 19:41
@MauroToscano MauroToscano added this pull request to the merge queue Jul 31, 2025
Merged via the queue into staging with commit 7be0542 Jul 31, 2025
3 checks passed
@MauroToscano MauroToscano deleted the risc0_to_task_sender branch July 31, 2025 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants