When To Use
- Writing
#[encrypted]modules and#[instruction]circuit entrypoints - Working with encrypted values such as
Enc<Shared, T>andEnc<Mxe, T> - Building Arcis circuits that will be compiled with
arcium build
For Solana program integration, use arcium-anchor.
Installation
[]
= "0.10.3"
Quick Start
use *;
Key Types
| Item | Description |
|---|---|
Enc<C, T> |
Encrypted wrapper for circuit inputs and outputs. |
Shared |
Secret-shared cipher for MPC execution across nodes. |
Mxe |
Cipher scoped to a specific MXE. |
Pack<T> |
Packing helper for reducing footprint of structured values. |
ArcisRNG |
Circuit-friendly random number generator. |
Reveal |
Trait used to explicitly reveal data when the compiler allows it. |
Common Pitfalls
reveal()cannot be used in runtime-dependent conditional branches.arcis-importsis deprecated; usearcisdirectly for new projects.- Circuit code looks like Rust, but secret-dependent control flow is still compiled under MPC constraints.