Medieval illuminated manuscript depicting a scholarly king

HIDDEN CRUCIBLE

/ CRUCIBULUM OCCULTUM /

version 0.1.4

Open-source frontend SDK designed to bridge public application interfaces with Arcium's encrypted computation layer.

It provides client-side primitives for working with encrypted computation: encrypting inputs before submission, interacting with Arcium's execution environment, and verifying outcomes without exposing internal logic.

Quick Start
Install globally (recommended)
npm i -g arcium-frontend-sdk
Initialize project
crucible init my-app
scroll

EXAMPLE USAGE

arcium-sdk-example.ts
001/**
 * Unified SDK Workflow: Initialize, Encrypt, and Execute.
 * This sketch demonstrates the core lifecycle of an Arcium computation.
 */002003import { 004  ensureEnvConfig, 005  prepareEncryptionPayload, 006  buildInstruction 007} from 'arcium-frontend-sdk';008009// 1. Initialize environment and connection010const env = ensureEnvConfig();011const connection = createConnection(env.rpcUrl);012013// 2. Encrypt sensitive data for the MXE014const encrypted = prepareEncryptionPayload({015  values: [warrior.strength, warrior.agility],016  mxePublicKey,017});018019// 3. Derive accounts and build the encrypted instruction020const derived = deriveCoreAccounts({021  programId,022  clusterOffset: env.clusterOffset,023});024025const { ix } = buildInstruction({ 026  programId, 027  accounts, 028  data: encodeEncryptedCall({ ...encrypted, derived })029});030031// 4. Send the transaction to the lattice032const tx = await buildTransaction(ix, { cuPriceMicro: 1000 });

This flow ensures that your data is encrypted locally before ever reaching the network, keeping your application's logic hidden within Arcium's confidential compute layer.