Basic Operations
- basic-operations/anchor - Anchor program with Rust and TypeScript tests
- basic-operations/native-rust - Native Solana program with
light-sdkand Rust tests.
Basic Operations include:
- create - Initialize a new compressed account.
- update - Modify data in an existing compressed account.
- close - Clear account data and preserve its address.
- reinit - Reinitialize a closed account with the same address.
- burn - Permanently delete a compressed account.
Counter Program
Full compressed account lifecycle (create, increment, decrement, reset, close):- counter/anchor - Anchor program with Rust and TypeScript tests
- counter/native - Native Solana program with
light-sdkand Rust tests. - counter/pinocchio - Pinocchio program with
light-sdk-pinocchioand Rust tests.
Create-and-update Program
- create-and-update - Create a new compressed account and update an existing compressed account with a single validity proof in one instruction.
Create-and-read Program
- read-only - Create a new compressed account and read it on-chain.
Compare compressed vs uncompressed Program
- account-comparison - Compare compressed vs regular Solana accounts.
ZK-ID Program
- zk-id - A minimal Solana program that uses zero-knowledge proofs for identity verification with compressed accounts.