Confidential SPL Token Program
The Confidential SPL Token Program is a confidential token implementation on Solana that enables privacy-preserving token operations. Unlike traditional SPL tokens where balances and transfer amounts are publicly visible on-chain, this program uses Inco Lightning encryption to keep these values hidden while still allowing mathematical operations on them.Overview
Setup
Configure your development environment
Program Functions
Learn the on-chain program API
Deploy & Test
Deploy and test your program
Key Features
- Encrypted Balances: Token balances are stored as encrypted values, invisible to external observers
- Private Transfers: Transfer amounts remain confidential while still being validated
- Standard SPL Interface: Familiar API patterns for Solana developers
- Encrypted Operations: Perform arithmetic on encrypted values without decryption
- Access Control via Allowance: Grant decryption permissions to specific addresses using
remaining_accounts
How It Works
Quick Example
The
remaining_accounts pattern allows granting decryption access in the same transaction that produces new encrypted handles. This requires simulating the transaction first to derive the allowance PDAs. See Access Control for the simulation pattern.