Concepts Introduction
Inco Lightning provides encrypted computation primitives for Solana programs. It enables confidential smart contracts where sensitive data remains encrypted throughout computation. The covalidator network processes encrypted operations off-chain while maintaining cryptographic guarantees.Key Benefits
| Benefit | Description |
|---|---|
| Privacy | Values remain encrypted on-chain |
| Composability | Programs can perform arithmetic and logic on encrypted values |
| Verification | Results can be decrypted with cryptographic attestation |
How It Works
- Client encrypts data using the covalidator’s public key
- Program receives ciphertext and creates an encrypted handle via CPI
- Operations execute on encrypted values through the Inco Lightning program
- Results are handles - 128-bit references to encrypted values stored off-chain
- Authorized parties can request attested decryption
Core Concepts
Handles
Understanding encrypted value references
Inputs
Creating encrypted values from ciphertext
Operations
Arithmetic and comparison on encrypted data
Random Numbers
Generate encrypted random values
Control Flow
Conditional logic with e_select
Access Control
Managing decryption permissions
Decryption
Decryption and attestation verification