#zk-vm #resources #risc0 #witness #testing #anoma #logic-circuit

anoma-rm-risc0-test-witness

An Anoma Resource Machine Test Witness using RISC0 zkVM

3 stable releases

1.1.1 Feb 9, 2026
1.1.0 Feb 5, 2026
1.0.0 Jan 13, 2026

#1222 in Math

Download history 38/week @ 2026-01-08 15/week @ 2026-01-15 57/week @ 2026-01-22 21/week @ 2026-01-29 43/week @ 2026-02-19

64 downloads per month
Used in anoma-rm-risc0-test-app

Apache-2.0

535KB
2.5K SLoC

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.1.1"

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.

Dependencies

~59MB
~702K SLoC