| Crates.io | anoma-rm-risc0-gadgets-test-0112 |
| lib.rs | anoma-rm-risc0-gadgets-test-0112 |
| version | 1.0.0 |
| created_at | 2026-01-12 13:58:21.890921+00 |
| updated_at | 2026-01-12 13:58:21.890921+00 |
| description | Anoma Resource Machine Gadgets using RISC0 zkVM |
| homepage | |
| repository | https://github.com/anoma/arm-risc0 |
| max_upload_size | |
| id | 2037779 |
| size | 96,958 |
Cryptographic gadgets and utilities for building resource logic circuits in the Anoma Resource Machine using RISC0 zkVM.
The anoma-rm-risc0-gadgets crate provides a collection of reusable components for implementing resource logic in the Anoma protocol. These gadgets include cryptographic primitives commonly needed in zero-knowledge proofs, such as signing, encryption, and EVM interoperability.
The authority module provides ECDSA signature generation and verification over the secp256k1 elliptic curve:
AuthoritySigningKey: Generate and use signing keys for creating digital signaturesAuthorityVerifyingKey: Verify signatures using public keysAuthoritySignature: Represent and work with ECDSA signaturesExample use case: Authenticate resource operations with cryptographic signatures.
The encryption module provides symmetric encryption and decryption utilities:
SecretKey: Manage secret keys with automatic zeroization for securityPublicKey: Derive and use public keys from secret keysCiphertext: Represent encrypted dataEncryptedValue: Combined structure of ciphertext and associated public keyExample use case: Encrypt sensitive resource data and share with authorized parties using their public keys.
The evm module enables compatibility with Ethereum Virtual Machine (EVM) systems:
Resource struct: EVM-compatible representation of ARM resources with ABI encoding/decodingForwarderCalldata: A data structure containing the input data to be forwarded to the untrusted forwarder contract and the anticipated output dataExample use case: Bridge ARM resources with EVM-based applications and smart contracts.
Add to your Cargo.toml:
[dependencies]
anoma-rm-risc0-gadgets = "1.0"
Licensed under the Apache License 2.0. See LICENSE for details.