Expand description
§airbender-host

Documentation: API docs | Host program guide
[!WARNING] airbender-platform project is under active development and is in alpha state. Use at your own risk.
airbender-host is the host-side API for executing, proving, and verifying Airbender guest programs from native Rust applications.
§What It Provides
Programfor loading a packageddist/directory and validating manifest hashes.Inputsfor serializing typed values or raw bytes into the canonical guest input word stream.- Runner, prover, and verifier builders covering transpiler execution plus dev, CPU, and GPU proving flows.
- Runtime selection between 80-bit and 100-bit security for real proof and verification-key generation.
- Cycle-marker utilities for profiling transpiler runs.
§Features
gpu-prover(default): exposes GPU proving and verification-key generation support.
Disable default features if you want a dev-only host binary without GPU support:
[dependencies]
airbender-host = { git = "https://github.com/matter-labs/airbender-platform", branch = "main", default-features = false }Complete host-side examples live in examples/.
§License
Licensed under either Apache License, Version 2.0 or MIT license at your option.
Modules§
- raw
- Raw Airbender re-exports without stability guarantees.
Structs§
- CpuProver
- CPU prover wrapper that caches padded artifacts and worker threads.
- CpuProver
Builder - Builder for creating a configured cached CPU prover.
- Cycle
Marker - All marker snapshots captured from one transpiler execution run.
- DevProof
- Development proof emitted by the transpiler-based prover.
- DevProver
- Development prover that records transpiler execution metadata instead of generating a zk-proof.
- DevProver
Builder - Builder for creating a configured development prover.
- DevVerification
Key - Development verification key.
- DevVerifier
- Development verifier implementation.
- DevVerifier
Builder - Builder for a development verifier.
- Execution
Result - Execution outcome for transpiler based runners.
- Flamegraph
Config - Flamegraph collection options for execution runners.
- GpuProver
- GPU prover wrapper that owns and reuses a single
UnrolledProverinstance. - GpuProver
Builder - Builder for creating a configured cached GPU prover.
- Inputs
- Typed input builder for host-to-guest communication.
- Mark
- Snapshot of the cumulative cycle and delegation counters at one marker.
- Program
- Loaded Airbender program distribution, including manifest and artifacts.
- Prove
Result - Proof and receipt produced by
prove. - Real
Proof - Real cryptographic proof emitted by CPU/GPU provers.
- Real
Unified Verification Key - Unified (recursion) verification key wrapper.
- Real
Unrolled Verification Key - Unrolled (base / recursion-unrolled) verification key wrapper.
- Real
Verifier - Real verifier implementation.
- Real
Verifier Builder - Builder for a real verifier.
- Receipt
- Execution output captured from transpiler or prover results.
- Transpiler
Runner - Transpiler based execution runner.
- Transpiler
Runner Builder - Builder for creating a configured transpiler runner.
- Unified
Vk - Unified verification key bundle for recursion.
- Unrolled
Vk - Unrolled verification key bundle for base or recursion-unrolled layers.
- Verification
Request - Verification checks requested by the caller.
Enums§
- Host
Error - Proof
- Wrapper around all proof flavors produced by host provers.
- Prover
Level - Maximum proof layer generated by the prover.
- Security
Level - Cryptographic security target for real Airbender proofs.
- Verification
Key - Wrapper around all verification-key flavors.
Constants§
Traits§
- Commit
- Values that can be committed to the public output registers (
x10..x17). - Prover
- Host prover interface.
- Runner
- Host runner interface.
- Verifier
- Verifier interface shared by dev and real verifiers.
Functions§
- compute_
unified_ vk - compute_
unrolled_ vk - resolve_
cycles - Resolve the cycle budget from an explicit override or default.
- verify_
proof - verify_
real_ proof_ with_ vk - Verify a real proof envelope against a real verification key.
- verify_
unrolled_ proof