Crates.io | arcis-interpreter-proc-macros |
lib.rs | arcis-interpreter-proc-macros |
version | 0.3.0 |
created_at | 2025-04-30 19:36:20.452566+00 |
updated_at | 2025-09-02 14:24:42.276863+00 |
description | Procedural macros for writing MPC circuits with Arcis framework. |
homepage | https://www.arcium.com |
repository | |
max_upload_size | |
id | 1655380 |
size | 27,459 |
Procedural macros for writing MPC circuits with the Arcis framework. This crate provides the attribute and derive macros that enable the ergonomic syntax for defining encrypted computations, making it easier to write secure multi-party computation logic in Rust.
use arcis_interpreter_proc_macros::encrypted;
#[encrypted]
fn secure_computation(a_ctx: Enc<Shared, u32>, b_ctx: Enc<Shared, u32>) -> Enc<Shared, u32> {
// This function will be compiled into an MPC circuit
let a = a_ctx.to_arcis();
let b = b_ctx.to_arcis();
a_ctx.owner.from_arcis(a + b)
}
This procedural macro crate provides:
The macros are typically used through the arcis-imports
crate, which re-exports them for convenient access.