anoma-rm-risc0-test-witness

Crates.ioanoma-rm-risc0-test-witness
lib.rsanoma-rm-risc0-test-witness
version1.0.0
created_at2026-01-13 06:04:19.064489+00
updated_at2026-01-13 06:04:19.064489+00
descriptionAn Anoma Resource Machine Test Witness using RISC0 zkVM
homepage
repositoryhttps://github.com/anoma/arm-risc0
max_upload_size
id2039422
size79,925
Christopher Goes (cwgoes)

documentation

README

Anoma Resource Machine Test Witness

Witness definitions and logic circuit implementation for testing the Anoma Resource Machine (ARM) using RISC0 zkVM.

Overview

The anoma-rm-risc0-test-witness crate provides a minimal, practical witness and logic circuit used by the test app to validate ARM transaction flows. It demonstrates:

  • Constructing a LogicCircuit with resource, discovery, and application payloads
  • Integrating EVM-compatible resource encoding
  • Using authenticated encryption for payloads
  • Building a LogicInstance tag with Merkle proofs and nullifier keys

Usage

Add as a dev dependency in a test app or examples:

[dependencies]
anoma-rm-risc0-test-witness = "1.0"

Relationship to Test App

This crate is consumed by the anoma-rm-risc0-test-app crate, which:

  • Implements a LogicProver that uses TestLogicWitness
  • Generates actions, transactions, and delta proofs for end-to-end tests
  • Verifies proofs and exercises aggregation strategies

License

Apache-2.0. See LICENSE.

Commit count: 328

cargo fmt