Crates.io | arcis-imports |
lib.rs | arcis-imports |
version | 0.3.0 |
created_at | 2025-04-30 19:46:26.518349+00 |
updated_at | 2025-09-02 14:25:05.731478+00 |
description | A standard library of types and functions for writing MPC circuits with the Arcis framework. |
homepage | https://www.arcium.com |
repository | |
max_upload_size | |
id | 1655387 |
size | 59,720 |
A standard library of types and functions for writing MPC circuits with the Arcis framework. This crate provides the essential building blocks for developing encrypted computations, including type definitions, cryptographic primitives, and utility functions commonly needed in MPC circuit development.
use arcis_imports::{ArcisType, Enc, Shared, Mxe, Reveal};
// Define encrypted data with different cipher types
let shared_data: Enc<Shared, u32> = Enc::new(42);
let mxe_data: Enc<Mxe, String> = Enc::new("secret".to_string());
// Use the Reveal trait to decrypt values within circuits
let revealed = encrypted_value.reveal();
ArcisType
- Trait for types that can be used in Arcis circuitsReveal
- Trait for revealing encrypted valuesCipher
- Trait defining encryption/decryption operationsEnc<C, T>
- Generic encrypted data wrapperShared
- Shared secret cipher implementationMxe
- MXE (Multi-party eXchange Encryption) cipherNumber
- Basic numeric type for circuit computationsArcisRNG
- Random number generator for circuitsarcis_interpreter_proc_macros