risc0 / risc0

RISC Zero is a zero-knowledge verifiable general computing platform based on zk-STARKs and the RISC-V microarchitecture.

Home Page:https://risczero.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zkevm-demo: save transaction locally instead of using rpc node

SchmErik opened this issue · comments

Bug Report

Currently, the zkevm demo calls out to an rpc node during testing. This is eating up our usage of free API's. There are security implications to using an API key so let's just save the tx data within the examples repo instead of calling out to eth rpcs.

Steps to Reproduce

  1. cd examples
  2. cargo test
  3. cargo test will call out to an ETH RPC.

Expected behavior

Change step 3 to use saved data rather than downloading from eth rpc.

Your Environment

  • risc0-zkvm version: 0.21
  • Rust version: 1.74
  • Platform/OS: macOS

Additional context

If this is not fixed, it could block ci from running

The code is here:

async fn trace_tx() {