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

[WIP] feat: Powdr Support #2

Closed

Conversation

CeciliaZ030
Copy link
Contributor

@CeciliaZ030 CeciliaZ030 commented Dec 18, 2023

Todos:

  • Raiko host & guest skeleton
  • Design PowdrContext i.e. user args for Powdr proofs
  • Implement prepare_input for Powdr guest, depending on what Powdr ZKP needs.
  • Port Powdr proof pipeline in raiko-guest-powdr

raiko-guest-powdr Proof Generation

  • bootstrap to compile Rust -> RISC-V -> Powdr asm (-> Pil), cache the .asm (or .pil) file

https://github.com/powdr-labs/powdr/blob/2f9dc9d3707b8166d27b75f1fa531c5a034bf28f/riscv/tests/riscv.rs#L230

  • collect execution trace from asm or pil level (which one's faster?)

https://github.com/powdr-labs/powdr/blob/54045fbcf7e6bead68596fd79b5d63cce4dded1b/riscv/tests/common/mod.rs#L17

  • generate proof with Halo2 (or others ...)

https://github.com/powdr-labs/powdr/blob/50d08cd5a733c4be5180f10b1e13553f8fc74b21/compiler/src/test_util.rs#L66

johntaiko and others added 30 commits September 7, 2023 10:47
Guest and host modules are now standalone binaries.
@mratsim mratsim changed the base branch from risc0/main to taiko/unstable December 18, 2023 12:48
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.

3 participants