Skip to main content

Crate arcium_macros

Crate arcium_macros 

Source

Macros§

circuit_hash
Returns the SHA-256 hash of a compiled circuit as a [u8; 32] array at compile time.

Attribute Macros§

arcium_callback
Automatically generates the callback instruction for a computation. The callback function must be named <encrypted_ix>_callback and take a single SignedComputationOutputs<T> argument in addition to the Context parameter.
arcium_program
The #arcium_program attribute defines the module containing all instruction handlers defining all entries into a Solana program. Under the hood, it gets expanded to Anchor’s #[program] and some additional definitions needed for Arcium.
callback_accounts
Validates the structure for computation callbacks by checking the encrypted instruction exists, validating required account fields, and ensuring the structure has the correct fields for callbacks:
check_args
Compile-time validation of computation arguments against an interface definition.
init_computation_definition_accounts
Validates the structure for initializing computation definitions by checking the encrypted instruction exists, validating required account fields, and implementing the InitCompDefAccs trait to make using it with computation definitions easy:
queue_computation_accounts
Validates the structure for queuing computations by checking the encrypted instruction exists, validating required account fields, and implementing the QueueCompAccs trait to make using it with queuing computations easy: