Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integration ZK user scenario #306

Open
8 of 26 tasks
smtmfft opened this issue Jul 2, 2024 · 0 comments
Open
8 of 26 tasks

Integration ZK user scenario #306

smtmfft opened this issue Jul 2, 2024 · 0 comments

Comments

@smtmfft
Copy link
Contributor

smtmfft commented Jul 2, 2024

Describe the feature request

Using V2 api to integrate the ZK use case: client requests zk proof with an extra timeout flag, returns ok status like
{status: "ok", "proof": 0x123456...} or error like {status: "error", error: "sp1 failed / risc0 failed / timeout / etc"}. Here return data structures can inherited from V1 as many as possible to save client efforts.

  • task management
  • SP1 integration
    • Local prover execution seems ready.
      • need performance report.
    • Verification contract?
    • Network API is not usable due to version error.
      thread 'tokio-runtime-worker' panicked at taiko/raiko/provers/sp1/driver/src/lib.rs:35:46:
      Sp1: proving failed: twirp error: TwirpErrorResponse { code: InvalidArgument, msg: "version is invalid, only 'e48c01ec' is supported - use sp1 commit 'e48c01ec' and try again", meta: {"argument": "version"} }
    • Proof-of-equivalence is in raiko, but not in taiko-mono.
    • Need sp1 tier verifier in taiko-mono
  • Risc0 integration
    • Latest bonsai release integration is ok.
    • Groth16 contract verification is updated.
      • Taiko-mono deployment & test
      • Use their verifier router instead of endless catching up with new verifier.
    • Data collection & stress test on Auto-scaling Bonsai.
    • Same problem as SP1: Proof-of-equivalence is in raiko, but not in taiko-mono.
  • ZK tier verification contract:
    • Need a virtual table like contract to adopt both SP1 & RISC0
      • can test risc0 first as tier verifier is presented.
    • sgx_zk tier verifier contract
  • Integration test (ok/err/timeout) #321
  • Hekla adoption.

Spam policy

  • I verify that this issue is NOT SPAM and understand SPAM issues will be closed and reported to GitHub, resulting in ACCOUNT TERMINATION.
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

No branches or pull requests

2 participants