Liquid Stake with compassSOL for an 8.04% APY from staking, MEV + fees

Enjoy the freedom of liquid staking in Solana Defi while delegating your stake to the high performance Solana Compass validator. Stake or unstake at any time here, or with a Jupiter swap.

Benefit from our high staking returns and over 2 years experience operating a Solana validator, and receive additional yield from priority fees + MEV tips

Earn 6.8% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.8% APY yield on your SOL, while supporting us to create new guides and tools. Learn more

Stake your SOL

  1. Click to connect your wallet
  2. Enter the amount you wish to stake
  3. Kick back and enjoy your returns
  4. Unstake from your wallet or our staking dashboard

Earn 6.8% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.8% APY yield on your SOL, while supporting us to create new guides and tools.

Learn more

Breakpoint 2024: Keynote: ZK Compression (Swen Schaeferjohann, Nicolas Pennie)

By breakpoint-24

Published on 2024-09-20

Solana introduces ZK compression to scale the network, reduce costs, and enable new use cases

The notes below are AI generated and may not be 100% accurate. Watch the video to be sure!

Solana unveils a groundbreaking scaling solution that could revolutionize blockchain development and unlock new possibilities for decentralized applications. ZK compression promises to drastically reduce account costs and solve the persistent issue of state growth, paving the way for more efficient and cost-effective dApps on the Solana network.

Summary

At Breakpoint 2024, Swen Schaeferjohann from Light Protocol and Nicolas Pennie from Helius presented a comprehensive overview of ZK compression, a new scaling solution for Solana. This innovative technology addresses two critical challenges facing the network: the high cost of data storage and the ongoing issue of state growth.

ZK compression offers a 1000-fold reduction in account costs, making it significantly more economical for developers to scale their applications on Solana. By compressing millions of accounts into a small fingerprint stored on-chain, with the actual data kept off-chain, the system maintains Solana's security guarantees while dramatically reducing storage requirements.

The presentation highlighted the key features of ZK compression, including its compatibility with existing Solana development practices, support for Program Derived Addresses (PDAs), and the ability to compress and decompress accounts as needed. The speakers also introduced new tools and infrastructure to support developers in implementing ZK compression, such as the Photon indexer and a dedicated SDK.

This technological advancement is not just about cost savings; it opens up a new design space for applications on Solana. From billion-user meme coins to verifiable reward calculations and trust-minimized bridges, ZK compression enables a wide range of use cases that were previously impractical or impossible due to cost constraints.

Key Points:

Understanding ZK Compression

ZK compression is a state compression technique that leverages zero-knowledge proofs to dramatically reduce the cost of storing accounts on the Solana blockchain. At its core, the system works by taking millions of accounts, hashing them together into a small fingerprint, and storing this fingerprint on-chain while keeping the actual account data off-chain, such as on the Solana ledger.

The use of zero-knowledge proofs allows for on-chain verification of the validity of off-chain data, ensuring the integrity and security of the compressed accounts. This approach not only reduces storage costs but also provides a solution to the state growth problem that plagues many stateful blockchains.

Benefits and Features of ZK Compression

ZK compression offers several key benefits that make it an attractive solution for developers and users of the Solana ecosystem. Firstly, it provides a 1000-fold reduction in account costs, making it significantly more economical to create and maintain large numbers of accounts. This cost reduction opens up new possibilities for applications that require extensive data storage.

Additionally, ZK compression supports compressed Program Derived Addresses (PDAs), a crucial feature for deterministic account creation. This allows developers to maintain the programming patterns they're accustomed to while benefiting from the cost savings of compression. The system also supports decompression, allowing compressed accounts to be converted back to regular Solana accounts when needed, ensuring interoperability with existing applications and services.

Implementation and Developer Tools

To facilitate the adoption of ZK compression, the team has developed a suite of tools and infrastructure. The Photon indexer, an open-source solution for indexing compressed accounts, offers features such as snapshot support for quick bootstrapping and local development tools to ease the integration process.

A dedicated SDK, similar to Solana's Web3.js, has been created to simplify the development of applications using compressed accounts. The team has also built a local development setup that includes a pre-initialized test validator, making it easier for developers to experiment with and implement ZK compression in their projects.

Use Cases and Future Applications

ZK compression opens up a new design space for applications on Solana. Some potential use cases include creating billion-user meme coins, implementing prediction markets for social media posts, and developing verifiable reward calculations for decentralized networks. The technology also lays the groundwork for more advanced applications leveraging zero-knowledge proofs, such as trust-minimized bridges and zero-knowledge identity protocols.

The presenters emphasized that ZK compression is not limited to specific use cases but is a generalized solution that can be applied to any application requiring efficient state management on Solana. This flexibility, combined with the significant cost savings, positions ZK compression as a transformative technology for the Solana ecosystem.

Facts + Figures

  • ZK compression offers 1000 times cheaper accounts on Solana
  • Solana currently adds about 1 million new accounts per day
  • There are currently 500 million accounts on Solana
  • The Photon indexer can catch up to the current state in about 15 minutes or less
  • Up to $45,000 in prizes are available for a hackathon focused on ZK compression
  • ZK compression is live on Solana mainnet as of the presentation date
  • The system supports compressed Program Derived Addresses (PDAs)
  • Zero-knowledge proofs in this system have been optimized to generate in milliseconds
  • The proof size for ZK compression operations is consistently 128 bytes
  • The mass airdrop tool built on ZK compression can handle airdrops to Solana mobile wallets and token holders

Top quotes

  1. "Compute on Solana is very cheap, but actually, data storage is very expensive."
  2. "CK compression basically fixes this. We have, on one hand, 1000 times cheaper accounts for Solana, then we have a solution for state growth."
  3. "Compressed accounts are essentially analogous to regular Solana accounts. They are very, very similar, which means that you can apply the same sort of Solana development techniques you do today."
  4. "Everything is executed on Solana. It's non-Nel2, it's not a validity. Essentially you have the data availability automatically through the Solana ledger because it's executed on Solana."
  5. "We are focused on developers. And so there's three major things that we've built and that we're building out and improving on."

Questions Answered

What is ZK compression and how does it benefit Solana?

ZK compression is a scaling solution for Solana that uses zero-knowledge proofs to compress account data. It benefits Solana by reducing account costs by 1000 times and providing a solution to the state growth problem. This allows developers to create more cost-effective applications and enables new use cases that were previously impractical due to high storage costs.

How does ZK compression work?

ZK compression works by taking millions of accounts, hashing them together into a small fingerprint, and storing this fingerprint on-chain. The actual account data is stored off-chain, such as on the Solana ledger. A proof mechanism allows for on-chain verification of the off-chain data using the stored fingerprint, ensuring the integrity and security of the compressed accounts.

What tools are available for developers to implement ZK compression?

Developers have access to several tools to implement ZK compression. These include the Photon indexer for indexing compressed accounts, a dedicated SDK similar to Solana's Web3.js, and a local development setup with a pre-initialized test validator. These tools are designed to make it easier for developers to experiment with and integrate ZK compression into their projects.

Can compressed accounts be used with existing Solana applications?

While compressed accounts are not directly compatible with existing applications, they can be decompressed when needed. This allows users to convert compressed tokens into regular SPL tokens for use in DeFi applications or exchanges. The system is designed to be flexible, allowing developers to use compressed accounts for cold storage and regular accounts for hot state as needed.

What new use cases does ZK compression enable on Solana?

ZK compression enables a wide range of new use cases on Solana. These include creating billion-user meme coins, implementing prediction markets for social media posts, developing verifiable reward calculations for decentralized networks, and building trust-minimized bridges. The technology also lays the groundwork for more advanced applications leveraging zero-knowledge proofs, such as zero-knowledge identity protocols.


Related Content

Breakpoint 2023: The Evolution of The Solana Community

An insightful discussion on the growth and future of Solana's NFT community featuring industry experts.

Breakpoint 2023: A World in a Grain of Sand: State Compression on Solana

Exploring the possibilities of blockchain scalability with state compression technology on Solana.

Breakpoint 2023: Solana and AWS

AWS announces infrastructure for running Solana nodes and focuses on cost optimization for blockchain applications.

Breakpoint 2023: The Future of Metaplex Foundation

Dustin Duane and Kevin Arifin discuss the future of Metaplex Foundation and how it plans to leverage compressed NFTs for enterprise use.

Breakpoint 2023: Explorers, Interpreting Information for the Masses

Key figures in the Solana ecosystem discuss the challenges and the future of data interpretation for users and developers.

Breakpoint 2023: Solana Foundation Update by Jonas Hahn

Jonas Hahn presents updates and announcements from Solana at Breakpoint 2023.

Breakpoint 2023: Solang: Running Solidity Natively on Solana

An introduction to Solang, a tool that compiles Solidity code to run natively on the Solana blockchain.

Breakpoint 2023: Security in Web3: Ensuring User Protection in a Decentralized World

Exploring the importance of security in Web3 and strategies for user protection by leveraging hardware solutions.

Breakpoint 2023: The Global State Machine

Breakpoint 2023 provides insight into the advancements and future of the Solana Blockchain and its ecosystem.

Breakpoint 2023: Water from a Stone: Liquid Staking on Solana

A deep dive into the evolving landscape of liquid staking on the Solana blockchain featuring key industry players.

Breakpoint 2023: OPOS – Stablecoin and FX

Anna Yuan from the Solana Foundation explores the evolving role of stablecoins in the global financial ecosystem.

Breakpoint 2023: Bonds Can Be Interesting, Too

Introducing stable bonds on the blockchain, fostering growth and stability in the DeFi ecosystem.

Breakpoint 2023: How Phantom Integrated With Solana Mobile In Purely React Native

An in-depth look at Phantom's integration with Solana Mobile using React Native

Breakpoint 2023: Measuring Solana's Carbon Footprint in Real Time

A look at how TriCarbonara measures Solana's network carbon emissions in real-time.

Breakpoint 2023: Phantom Quests

Phantom introduces an engaging incentive program to explore new features and understand the Solana ecosystem with Phantom Quests.