3 stable releases
| 1.1.1 | Feb 9, 2026 |
|---|---|
| 1.1.0 | Feb 5, 2026 |
| 1.0.0 | Jan 13, 2026 |
#1222 in Math
64 downloads per month
Used in anoma-rm-risc0-test-app
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
LogicCircuitwith resource, discovery, and application payloads - Integrating EVM-compatible resource encoding
- Using authenticated encryption for payloads
- Building a
LogicInstancetag 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
LogicProverthat usesTestLogicWitness - 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