8000 GitHub - axiom-crypto/axiom-api-cli: CLI interface for Axiom Proving API
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

axiom-crypto/axiom-api-cli

Repository files navigation

Axiom Proving CLI Axiom CLI Guide

Setup

  1. Install the Axiom CLI:

    cargo install --locked --git https://github.com/axiom-crypto/axiom-api-cli.git --tag v0.3.0 cargo-axiom
    

    Or from source:

    git clone https://github.com/axiom-crypto/axiom-api-cli
    cd axiom-api-cli
    cargo install --locked --force --path .
  2. Initialize with your API key:

    cargo axiom init --api-key <API_KEY>

    Alternatively, set the AXIOM_API_KEY environment variable in a .env file and then run cargo axiom init at the directory of the .env file. See .env.example for an example.

Building Programs

  1. Navigate to your program directory (containing a Rust workspace with an OpenVM guest program).

  2. Build your program:

    cargo axiom build

    This uploads your code and triggers a reproducible build on Axiom's servers.

  3. Check build status:

    cargo axiom build status --program-id <PROGRAM_ID>

Generating Proofs

  1. Request a proof for your program:

    cargo axiom prove --program-id <PROGRAM_ID> --input <INPUT>
  2. Check proof generation status:

    cargo axiom prove status --proof-id <PROOF_ID>
  3. Download proof logs if needed:

    cargo axiom prove logs --proof-id <PROOF_ID>
  4. Download proof artifacts:

    cargo axiom prove download --proof-id <PROOF_ID> --type evm

Verifying Proofs

  1. Verify a proof:

    cargo axiom verify --proof <PROOF_FILE>
  2. Check verification status:

    cargo axiom verify status --verify-id <VERIFY_ID>

For more details, see the Axiom API Documentation.

0