When To Use
- Generating validated account structs for queue and callback instructions
- Wiring callback handlers to Arcium computation results
- Initializing computation definitions from Anchor programs
Use this crate together with arcium-anchor, which provides the runtime helpers and types.
Installation
[]
= "1.0.2"
= "0.10.2"
= "0.10.2"
Macro Reference
| Macro | Description |
|---|---|
#[arcium_program] |
Wraps the Anchor program module and adds Arcium-specific plumbing. |
#[queue_computation_accounts] |
Validates queue accounts and implements QueueCompAccs. |
#[callback_accounts] |
Validates callback accounts. |
#[arcium_callback] |
Validates callback naming and typed output signatures. |
#[init_computation_definition_accounts] |
Validates accounts used to initialize computation definitions. |
#[check_args] |
Validates instruction arguments against the circuit interface. |
Quick Start
use ;
Notes
- Most users should import these macros through normal application code, not from standalone macro examples.
- The macro crate does not replace
arcium-anchor; it complements it.