What is ZK Compression?
ZK Compression is a Solana account primitive that lets you create tokens and PDAs without rent-exemption cost with L1 performance and security. Compressed tokens use ZK Compression under the hood. Storage cost of Solana accounts are reduced by combining generalized state compression and .1
State Compression
State compression stores account data on the Solana ledger instead of in millions of on-chain accounts. Only a small fingerprint of all accounts is stored on-chain for cryptographic integrity. Using Light Protocol, programs can use the account data inside Solana’s virtual machine as if it were stored on-chain.
2
ZK
The protocol uses 128 byte zero-knowledge proofs (validity proofs) to verify the integrity of
the compressed accounts. By default, this is all done under the hood. You can fetch validity
proofs from RPC providers that support ZK Compression.
1
2
3
5
Next Steps
In the following sections, we’ll dive into the core concepts that make ZK Compression possible:- Compressed Account Model: Understand how compressed accounts differ from regular Solana accounts (not much!) and how they enhance efficiency.
- State Trees: Learn about the Merkle tree structure used to store compressed accounts and how it minimizes on-chain storage.
- Validity Proofs: Learn how zero-knowledge proofs verify data efficiently while keeping proof sizes small.
- Lifecycle of a Transaction: Follow the journey of a transaction from creation to execution with ZK Compression.
- Considerations: Discover the trade-offs and scenarios where ZK Compression may or may not be the best solution.