Encrypted inputs, encrypted state, comparisons, policy-based reveal, and verifiable API actions.
Submit data that only the program can decrypt during confidential execution.
Store application state that remains confidential at rest and during computation.
Evaluate conditions on encrypted values — greater-than, equality, range checks — without decryption.
Define who sees what, and when. Outputs are revealed only when policy allows.
Read from and write to external APIs through encrypted channels without exposing payloads.
This is a conceptual example. The SDK is not yet public.
1// Illustrative API shape — not a published package2 3const program = confidentialProgram({4 network: "solana-mainnet",5 encryptionScheme: "re-fhe",6});7 8// Encrypt inputs client-side9const encInput = await program.encrypt({10 amount: 1000,11 strategy: "limit-buy",12});13 14// Submit to confidential execution15const result = await program.execute({16 input: encInput,17 action: "evaluate-and-route",18});19 20// Reveal only what policy allows21const output = await result.authorizedReveal({22 revealTo: "settlement-program",23});