Skip to main content

Crate zkml_common

Crate zkml_common 

Source
Expand description

§zkml-common

Shared types, data structures, and utilities used across the zkml-prover and zkml-verifier crates.

This crate deliberately depends on neither Soroban nor RISC Zero so the same code compiles for native host tests and for the zkVM guest.

Re-exports§

pub use error::ZkmlError;

Modules§

activation
Activation functions for quantized neural network layers.
bn254
BN254 point validation, in plain Rust.
bundle
Verification bundle, version 2.
commitment
Commitment helpers binding models and inputs to a proof.
error
Error types shared across the zkml-soroban crates.
fixed_point
Fixed-point arithmetic types for ZK-compatible model inference.
inference
Model inference engine.
journal
Fixed-layout journal committed by the zkVM guest.
merkle
A small binary Merkle tree over commitments.
models
Model representation types.
proof
Proof-related data structures.
risc0
RISC Zero digest arithmetic, reimplemented without the RISC Zero crates.
tensor
A minimal row-major tensor used to pass data between layers.

Type Aliases§

Commitment
A 32-byte commitment.