Developers

Build confidential programs for Solana

Encrypted inputs, encrypted state, comparisons, policy-based reveal, and verifiable API actions.

Encrypted inputs

Submit data that only the program can decrypt during confidential execution.

Encrypted state

Store application state that remains confidential at rest and during computation.

Comparisons

Evaluate conditions on encrypted values — greater-than, equality, range checks — without decryption.

Policy-based reveal

Define who sees what, and when. Outputs are revealed only when policy allows.

API actions

Read from and write to external APIs through encrypted channels without exposing payloads.

Illustrative API shape

This is a conceptual example. The SDK is not yet public.

1// Illustrative API shape — not a published package
2 
3const program = confidentialProgram({
4 network: "solana-mainnet",
5 encryptionScheme: "re-fhe",
6});
7 
8// Encrypt inputs client-side
9const encInput = await program.encrypt({
10 amount: 1000,
11 strategy: "limit-buy",
12});
13 
14// Submit to confidential execution
15const result = await program.execute({
16 input: encInput,
17 action: "evaluate-and-route",
18});
19 
20// Reveal only what policy allows
21const output = await result.authorizedReveal({
22 revealTo: "settlement-program",
23});
Confidential execution lane
Solana settlement lane
  1. 01Encrypt inputs client-side
  2. 02Submit to confidential program
  3. 03Evaluate encrypted logic
  4. 04Reveal or act by policy
  5. 05Settle on Solana