Rust Crate Overview
The Inco Lightning SDK provides encrypted computation primitives for Solana programs built with Anchor. It enables confidential smart contracts where sensitive data remains encrypted throughout computation. Program ID:5sjEbPiqgZrYwR31ahR6Uk9wf5awoX61YGg7jExQSwaj
Installation
Add to yourCargo.toml:
Setup
1. Add the program to your Anchor.toml
2. Import the crate in your program
3. Add Inco Lightning program to your account struct
Key Concepts
| Concept | Description |
|---|---|
| Handles | 128-bit references to encrypted values stored off-chain |
| Encrypted Types | Euint128 for encrypted integers, Ebool for encrypted booleans |
| CPI Operations | Cross-program invocations for encrypted arithmetic and logic |
| Access Control | Permission system for decryption rights |