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

feat(Ethereum Adapter) : updated ethereum adapter #57

Open
wants to merge 18 commits into
base: vr/ethereum-adapter
Choose a base branch
from

Conversation

ocdbytes
Copy link
Collaborator

@ocdbytes ocdbytes commented Feb 21, 2025

Features

  • Added assumption verification inside guest code.
  • Added proof submission to local nexus client.
  • Added SP1 implementation for ethereum adapter.
  • E2E flow working in mock proof mode for r0 and sp1.
  • Added tracing in ethereum adapter.
  • Added bls12_381 acceleration for sp1 prover.
  • Updated Helios version to support latest beacon chain updates.

To build the adapters and nexus

  1. To build/run nexus client :

    cd nexus/host
    cargo build --no-default-features --features "sp1"/"risc0"
    
    # To run
    RUST_LOG=info cargo run --no-default-features --features "sp1"/"risc0"
    
    # If running in dev mode for risc 0
    RISC0_DEV_MODE=true RUST_LOG=info cargo run --no-default-features --features "risc0" -- --dev
    
    # If running in mock mode for sp1
    RUST_LOG=info SP1_PROVER=mock cargo run --no-default-features --features "sp1" -- --dev
    
    # If running in cuda mode for sp1
    RUST_LOG=info SP1_PROVER=cuda cargo run --no-default-features --features "sp1"
  2. To build adapters :

    cd examples/<adapter_name>
    cargo build --no-default-features --features "sp1"/"risc0"
    
    # To run
     RUST_LOG=info cargo run --no-default-features --features "sp1"/"risc0"
    
    # If running in dev mode for risc 0
    RISC0_DEV_MODE=true RUST_LOG=info cargo run --no-default-features --features "risc0" -- --dev
    
    # If running in mock mode for sp1
    RUST_LOG=info SP1_PROVER=mock cargo run --no-default-features --features "sp1" -- --dev
    
    # If running in cuda mode for sp1
    RUST_LOG=info SP1_PROVER=cuda cargo run --no-default-features --features "sp1"
  3. To run in cuda for adapters in risc0 :

     RUST_LOG=info RUSTFLAGS="-C target-cpu=native" cargo run --no-default-features --features "risc0-cuda"

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep Cargo.lock

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

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.

2 participants