Liquid Stake with compassSOL for an 7.32% 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.7% APY staking with Solana Compass

Help decentralize and secure the Solana network delegating your stake to us and earn an impressive 6.7% 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.7% APY staking with Solana Compass

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

Learn more

Unlayered Episode 7: Light Protocol - Where ZK Meets Solana

By Unlayered

Published on 2023-07-14

Explore how Light Protocol is revolutionizing privacy on Solana with ZK technology, enabling private NFT marketplaces, games, and more. Learn about the future of blockchain privacy.

The Rise of Privacy Solutions in Blockchain

Privacy has long been a contentious issue in the blockchain space. While the transparency of public blockchains is often touted as a key feature, it also presents significant challenges for users who want to keep their financial activities confidential. Enter Light Protocol, a groundbreaking project that aims to bring zero-knowledge (ZK) privacy solutions to the Solana ecosystem.

In this episode of Unlayered, hosts Dave and his co-host sit down with Swen, co-founder of Light Protocol, to discuss the importance of privacy in crypto and how their project is addressing this crucial need on Solana. The conversation delves into the technical aspects of ZK proofs, the advantages of building on Solana, and the potential use cases for privacy-preserving technologies in blockchain applications.

The State of Privacy in Crypto

The hosts begin by acknowledging that privacy solutions in crypto have not yet reached mainstream adoption. Despite the existence of privacy-focused cryptocurrencies like Monero, most users have never interacted with privacy tools in their crypto journey. The hosts suggest that this could be due to several factors, including the complexity of using these tools and the high costs associated with privacy transactions on networks like Ethereum.

Swen points out that even some of the early pioneers in the privacy space have become disillusioned with the lack of widespread adoption. He recounts a conversation with one of Monero's co-creators:

"What was astonishing from that conversation was how bearish he was on privacy. It almost sounded like he was defeated and he almost gave up. He was just like, yeah, no one cares."

This anecdote underscores the challenges that privacy solutions have faced in gaining traction within the crypto community. However, the conversation quickly turns to why privacy remains crucial for the future of blockchain technology.

The Need for Privacy in Blockchain

The hosts and Swen agree that privacy is essential for the mainstream adoption of cryptocurrencies and blockchain technology. They highlight several reasons why privacy matters:

  1. Financial privacy: Large investors and institutions require confidentiality in their trading activities.
  2. Protection from MEV (Miner Extractable Value): Privacy can help shield users from front-running and sandwich attacks.
  3. Compliance with real-world expectations: Traditional finance often relies on private transactions and dark pools for large trades.
  4. Enabling new use cases: Privacy opens up possibilities for applications like on-chain games with hidden information.

Swen emphasizes that the lack of privacy on public blockchains is a significant barrier to adoption:

"It's clear that for crypto to become mainstream, these privacy solutions need to be kind of embedded into the fabric of future crypto products."

Introduction to Light Protocol

Light Protocol emerges as a solution to the privacy challenges faced by blockchain users, particularly on the Solana network. Swen explains that Light Protocol is an open-source ZK layer enabling private program execution, purpose-built for Solana.

The project began in the summer of 2021 when Swen's childhood friend and now co-founder, Joe, introduced him to the concept of bringing privacy to blockchain transactions. Their initial goal was to create something similar to ZCash but on the Solana blockchain, leveraging its high speed and low transaction costs.

Why Solana for Privacy Solutions?

The choice to build Light Protocol on Solana was driven by several factors:

  1. Low transaction costs: Solana's efficient consensus mechanism allows for much cheaper transactions compared to Ethereum.
  2. High speed: Solana's fast block times enable near-instant transaction confirmations.
  3. Scalability: Solana's architecture is designed to handle a high volume of transactions without congestion.

Swen explains the advantage of building on Solana:

"Solana has this built-in scalability, right? Like Solana is, you know, technically solves this whole dilemma that people have on Ethereum where, you know, you have scalability, security, decentralization. Solana is really good at solving these things."

This inherent scalability allows Light Protocol to focus on privacy without worrying about the underlying network's performance limitations.

The Technical Architecture of Light Protocol

Light Protocol's architecture is designed to overcome the privacy limitations inherent in Solana's account model. Swen breaks down the key components:

  1. Off-chain computation: Light Protocol moves the privacy-sensitive computations off-chain.
  2. Zero-knowledge proofs: The protocol generates ZK proofs of the off-chain computations.
  3. On-chain verification: Solana programs verify the ZK proofs without revealing the underlying data.

This approach allows for private transactions and state transitions while maintaining the security and decentralization of the Solana network.

The User Experience of Light Protocol

One of the main advantages of building on Solana is the improved user experience. Swen contrasts this with privacy solutions on Ethereum:

"I think I played around with ZK.money last year. And I think it's been deprecated since then. But I think one of the things that hit me was this is really cool. But it also took me like seven minutes to shield $5 worth of Ethereum."

In contrast, Light Protocol aims to provide a much faster and cheaper experience for users. Transactions on Light Protocol can be processed in seconds and at a fraction of the cost of similar operations on Ethereum.

Use Cases for Privacy on Solana

The conversation explores several potential use cases for Light Protocol:

  1. Private NFT marketplaces: Allowing users to trade high-value NFTs without revealing their identities or transaction details.
  2. On-chain games: Enabling games with hidden information, such as fog of war in strategy games.
  3. Private token transfers: Similar to ZCash, but with the speed and cost-efficiency of Solana.
  4. Treasury management: Allowing businesses to move funds on-chain without revealing sensitive financial information.

Swen emphasizes the flexibility of their system:

"We sort of enable that. Maybe it would be helpful to kind of lay out a framework for how this all works."

He then proceeds to explain how Light Protocol creates a second ecosystem within Solana where developers can build privacy-preserving applications.

The Lifecycle of a Private Transaction

To illustrate how Light Protocol works, Swen walks through the lifecycle of a private transaction:

  1. Escrow: Users escrow their funds into the Light Protocol program.
  2. Ownership notes: In exchange for escrowed funds, users receive ownership notes (UTXOs).
  3. Merkle tree: Commitments to these ownership notes are stored in a Merkle tree on-chain.
  4. Off-chain computation: Users perform private computations using their ownership notes.
  5. ZK proof generation: A zero-knowledge proof of the computation is generated.
  6. On-chain verification: The Solana program verifies the proof without revealing the transaction details.

This process allows for complex private operations while maintaining the integrity and security of the Solana blockchain.

Advantages of Building on Solana

Throughout the interview, Swen highlights several advantages of building Light Protocol on Solana:

  1. Fast verification times: ZK proofs can be verified in about 400 milliseconds on Solana.
  2. Low costs: The efficiency of Solana keeps transaction costs minimal.
  3. Scalability: Solana's architecture allows for easy scaling as demand grows.
  4. Developer-friendly: The Solana ecosystem provides tools that make it easier to implement complex systems like Light Protocol.

Swen shares his experience of first interacting with Solana:

"When I first got started I was looking at Solana because you know my co-founder introduced me to it I just like ran a transaction on some command line with this July and I was like wow like this was my local test validator yeah so you know it's not even it's not even that special but it was just like so quick I was like wow I can actually send money and you know technically it's verifiable as soon as it runs on a public network."

This speed and efficiency are crucial for making privacy solutions practical and user-friendly.

Recent Developments in Light Protocol

Swen reveals some exciting recent developments for Light Protocol:

  1. Syscall implementation: A new syscall for ZK snark computations has been merged into the Solana runtime, though not yet activated on mainnet.
  2. Performance improvements: The new syscall reduces the cost of ZK verifications to about 200,000 compute units, fitting within a single Solana transaction.
  3. Compressed accounts: Light Protocol is implementing compressed accounts to store commitments efficiently, further reducing costs.

These improvements are set to make Light Protocol even more efficient and cost-effective once activated on the Solana mainnet.

Regulatory Considerations

The conversation touches on the regulatory challenges faced by privacy protocols, particularly in light of the recent issues surrounding Tornado Cash on Ethereum. Swen addresses these concerns:

"Our stance with Light Protocol is that we're always going to be compliant in a sense that we want to have this like neutral base layer that we're creating and give the developers on top of that all the tools that they need to create whatever is compliant in their country or jurisdiction where they want to launch their product."

Light Protocol implements measures such as address screening and deposit limits to mitigate potential misuse. Swen emphasizes that their goal is to enable privacy for legitimate use cases while providing tools for developers to implement necessary compliance measures.

The Future of Privacy in Blockchain

Looking ahead, Swen paints a picture of how he sees the ZK landscape evolving over the next five years:

  1. Solana as a leading ecosystem: Light Protocol is betting on Solana becoming a dominant platform for blockchain applications.
  2. Mixed adoption: Some use cases will remain public, while others will increasingly demand privacy features.
  3. New applications: Privacy as a primitive will enable developers to create novel applications, particularly in gaming and financial services.
  4. Mainstream integration: Privacy features will become more seamlessly integrated into blockchain applications.

Swen expresses optimism about the creative potential of developers working with privacy primitives:

"We're thinking in terms of like you know you can start building like private Solana programs now usually it takes quite some time until developers get really creative and like take this primitive and like build new use cases and new applications but yeah I think that's also going to be part of it in the next couple of years like things that I couldn't name you right now being built based on that primitive."

Conclusion: The Dawn of Privacy on Solana

As the interview concludes, it's clear that Light Protocol represents a significant step forward in bringing privacy to the Solana ecosystem. By leveraging Solana's speed and efficiency, Light Protocol aims to make privacy solutions more accessible and user-friendly than ever before.

The potential applications of this technology are vast, from enabling private NFT marketplaces to revolutionizing on-chain gaming. As the crypto industry continues to mature, privacy solutions like Light Protocol may play a crucial role in bridging the gap between the transparency of public blockchains and the confidentiality required for mainstream adoption.

With ongoing developments and improvements, Light Protocol is poised to become a cornerstone of privacy-preserving applications on Solana. As the ecosystem grows and developers begin to explore the possibilities enabled by this technology, we may see a new wave of innovative blockchain applications that prioritize user privacy without sacrificing the benefits of decentralization.

The future of privacy on Solana looks bright, and Light Protocol is leading the charge in making that future a reality.

Facts + Figures

  • Light Protocol is an open-source ZK layer enabling private program execution on Solana.
  • The project began in summer 2021, aiming to create a ZCash-like solution on Solana.
  • ZK snark verification on Solana takes about 400 milliseconds.
  • A new syscall for ZK snark computations has been merged into the Solana runtime, reducing costs to about 200,000 compute units.
  • Light Protocol implements compressed accounts to store commitments efficiently.
  • The project screens addresses and implements deposit limits to mitigate potential misuse.
  • Solana's transaction costs are significantly lower than Ethereum's for privacy operations.
  • Light Protocol enables the creation of private NFT marketplaces, on-chain games with hidden information, and private token transfers.
  • The project uses a UTXO model within Solana's account-based system to enable privacy.
  • Light Protocol's architecture involves off-chain computation, ZK proof generation, and on-chain verification.
  • The team is betting on Solana becoming a leading ecosystem for blockchain applications in the next five years.
  • Privacy features are expected to become more seamlessly integrated into blockchain applications in the future.
  • The first altcoin bought by one of the hosts was Monero in 2016, highlighting the long-standing interest in privacy coins.
  • Vitalik Buterin recently identified L2 scaling, smart contract wallets, and privacy as key needs for the Ethereum ecosystem.
  • Light Protocol aims to make privacy solutions more accessible and user-friendly compared to existing options on other blockchains.

Questions Answered

What is Light Protocol?

Light Protocol is an open-source zero-knowledge (ZK) layer built specifically for the Solana blockchain. It enables private program execution, allowing developers to create applications with built-in privacy features. The protocol moves privacy-sensitive computations off-chain, generates ZK proofs, and then verifies these proofs on-chain without revealing the underlying data.

Why was Solana chosen as the platform for Light Protocol?

Solana was chosen for Light Protocol due to its inherent scalability, low transaction costs, and high speed. These features allow Light Protocol to provide privacy solutions that are much faster and cheaper than similar projects on other blockchains. Additionally, Solana's architecture enables easy scaling as demand grows, making it an ideal platform for building privacy-focused applications that require high performance.

How does Light Protocol work?

Light Protocol works by creating a second ecosystem within Solana where privacy is the default. Users first escrow their funds into the Light Protocol program and receive ownership notes (UTXOs) in return. These notes are represented by commitments stored in a Merkle tree on-chain. Users can then perform private computations off-chain using their ownership notes, generate zero-knowledge proofs of these computations, and have these proofs verified on-chain without revealing transaction details.

What are some potential use cases for Light Protocol?

Light Protocol enables a wide range of privacy-preserving applications on Solana. Some potential use cases include private NFT marketplaces where high-value trades can occur without revealing identities or prices, on-chain games with hidden information like fog of war, private token transfers similar to ZCash but with Solana's speed and efficiency, and treasury management tools for businesses that need to move funds on-chain without exposing sensitive financial information.

How does Light Protocol address regulatory concerns?

Light Protocol aims to be compliant with regulations while providing privacy features. The team implements measures such as address screening to prevent known high-risk addresses from using the protocol and deposit limits to mitigate potential misuse. Additionally, Light Protocol provides developers with tools to implement necessary compliance measures in their applications, allowing for a balance between privacy and regulatory requirements.

What recent developments have been made in Light Protocol?

Recent developments in Light Protocol include the implementation of a new syscall for ZK snark computations in the Solana runtime, which significantly reduces the cost of ZK verifications to about 200,000 compute units. The team is also implementing compressed accounts to store commitments more efficiently, further reducing costs. These improvements are set to make Light Protocol even more efficient and cost-effective once activated on the Solana mainnet.

How does Light Protocol compare to privacy solutions on other blockchains?

Compared to privacy solutions on other blockchains, particularly Ethereum, Light Protocol offers significantly faster transaction times and lower costs. While privacy transactions on Ethereum can take several minutes and cost substantial amounts in gas fees, Light Protocol aims to process transactions in seconds and at a fraction of the cost. This improved user experience is made possible by leveraging Solana's high-speed, low-cost infrastructure.

What is the future outlook for privacy in blockchain according to Light Protocol?

The team behind Light Protocol envisions a future where privacy features become seamlessly integrated into blockchain applications. They predict that while some use cases will remain public, there will be increasing demand for privacy in areas like gaming and financial services. The team believes that as developers become more familiar with privacy primitives, we'll see the creation of novel applications that leverage these features in ways we can't yet imagine.

Related Content

Building Solana's Largest Perps DEX | Cindy Leow & Chris Heaney

Explore how Drift Protocol is revolutionizing DeFi on Solana with innovative perpetuals trading, governance models, and ecosystem growth strategies.

Why Solana Needs Privacy For Mass Adoption | Elusiv, Light Protocol

Explore how Elusiv and Light Protocol are revolutionizing privacy on Solana, paving the way for mainstream crypto adoption.

The Future of NFTs with Zedd of Magic Eden

Explore how Solana economic zones are revolutionizing global finance, empowering communities, and driving adoption in developing nations.

MEV on Solana with buffalu from Jito Labs

Dive deep into the world of MEV on Solana with Lucas from Jito Labs. Learn about validator clients, searchers, and the future of blockchain technology.

The State Of Solana In 2024 | Austin Federa

Explore the current state of Solana with Austin Federa, discussing economic security, meme coins, network growth, and the future of blockchain technology.

Parallelizing the EVM on Solana

Discover how Neon EVM is revolutionizing blockchain scalability by running Ethereum transactions in parallel on Solana, achieving unprecedented performance of 700+ TPS.

Validated | The Future of Blockchain Privacy Tools

Explore how Elusiv is revolutionizing blockchain privacy with a balanced approach to user anonymity and regulatory compliance, paving the way for mainstream adoption.

Breakpoint 2023: Creator Economy on Solana

Exploring the rising creator economy on Solana with a focus on on-chain monetization and relationships.

How Solana Enables Crypto's Onchain Future | Tristan Frizza

Discover how Zeta Markets is revolutionizing DeFi with their Solana-based L2 solution, offering lightning-fast trades and improved UX for crypto derivatives.

Building Solana Economic Zones | Farhaj Mayan, Forma

Explore how Forma is creating Solana Economic Zones to drive adoption, empower local communities, and foster economic development in countries like Argentina.

Validated | A Decentralized Collective Memory with Sam Williams

Explore how Arweave is revolutionizing data storage and preserving human history through its innovative blockchain technology and economic model.

The One With Kollan from MetaDAO | ep. 4

Explore insights from Kollan on trading history, market making, and the future of decentralized governance with MetaDAO on Solana.

Breakpoint 2023: Payments on Solana, The Digital Commerce Revolution

Exploring the potential of Solana for revolutionizing digital payments and commerce.

Turning BTC into a Programmable Asset on Solana w/ Justin Wang (Zeus Network)

Discover how Zeus Network is revolutionizing cross-chain interoperability by enabling Bitcoin and other UTXO chains to become programmable on Solana's high-speed blockchain.

Validated | Is Banking 3.0 Becoming a Reality?

Discover how Ottr Finance is revolutionizing banking with blockchain technology, offering seamless integration with traditional finance and unlimited protection against bank failures.