Bitpunk

Crypto & Blockchain 101

Zero-Knowledge Proof Technology: zk-SNARKs and zk-STARKs Explained

6 min read · · Korean original

Contents 5
  1. What Is a Zero-Knowledge Proof?
  2. What Is zk-SNARK and How Does It Work?
  3. What Is zk-STARK and How Does It Work?
  4. zk-SNARK vs. zk-STARK: Pros and Cons
  5. Final Summary

zk-SNARKs and zk-STARKs are the two main types of zero-knowledge proofs, cryptographic methods that let you prove a statement is true without revealing private information. Zero-knowledge proof technology opens up possibilities for protecting privacy, strengthening security, and improving blockchain scalability through layer 2 networks.

Zero-Knowledge Proof Technology: zk-SNARKs and zk-STARKs Explained

zk-SNARK is the most common zero-knowledge protocol and, since its development in the late 1980s, has been widely used in privacy-focused crypto assets such as Zcash. zk-SNARK is a cryptographic proof method that lets one party prove they know certain information without disclosing it to anyone else.

zk-STARK is the successor to zk-SNARK, developed to address some of zk-SNARK's shortcomings. zk-STARK offers stronger security and broader compatibility, and is notable in particular for its improved resistance to quantum computing.

What Is a Zero-Knowledge Proof?

A zero-knowledge proof is a cryptographic technique that allows one party to prove to another that some information or statement is true, without revealing any details of the statement or any additional information in the process.

Put simply, a zero-knowledge proof is based on the principle: "I know the secret, but I won't reveal the secret itself." In other words, the prover can prove to the verifier that they satisfy a particular statement or condition, without disclosing any secret information along the way.

One of the most important features of zero-knowledge proofs is that no confidential information is passed to the other party. The verifier learns only that it is true that the prover satisfies the statement, and gains no other information whatsoever. Because of this property, zero-knowledge proofs provide an effective way to carry out necessary verification while protecting privacy, strengthening security, and preserving data integrity.

For example, if someone wants to prove they are a citizen of a particular country, a zero-knowledge proof lets them present evidence of their citizenship without revealing any personal information such as their actual identity or passport number.

What Is zk-SNARK and How Does It Work?

zk-SNARK (Zero-Knowledge Succinct Non-Interactive Argument of Knowledge) is a cryptographic technique that verifies the integrity of data while keeping the contents of that data private. Here is a brief summary of zk-SNARK's key components and how it works:

Initial Trusted Setup (Setup Phase)

  • zk-SNARK requires an initial trusted setup, a process that generates the public parameters used to verify every transaction in the system.
  • This initial setup depends on parameters generated by a trusted party, and requires trust that these parameters have not been maliciously tampered with.
  • Zcash calls this process the "parameter generation ceremony," and it establishes the foundation of trust needed to verify the validity of transactions.

Proof Generation

  • To prove that a particular statement or transaction is valid, the prover generates a proof using secret information (the witness) and the public parameters.
  • This proof demonstrates only the validity of the transaction; the prover's secret information is not revealed.

Proof Verification

  • The verifier can quickly verify the validity of a transaction or statement using the proof provided by the prover and the public parameters.
  • No further interaction between the prover and the verifier is needed in this process, and verification is highly efficient.

Soundness and Computational Security

  • zk-SNARK provides soundness. This means a dishonest prover who lacks the knowledge to back up their statement has a very low chance of fooling the system.
  • zk-SNARK is also considered computationally secure. In other words, an attacker with realistic computing power cannot produce a fake proof. However, someone with enough computing power (for example, a quantum computer) could in theory fool the system.

Thanks to its strong privacy protection and efficient verification, zk-SNARK technology is drawing attention across many fields. In blockchain and financial technology in particular, zk-SNARK offers solutions that protect users' privacy while maintaining the transparency and integrity of transactions.

What Is zk-STARK and How Does It Work?

zk-STARKs (Zero-Knowledge Scalable Transparent Arguments of Knowledge) are an advanced zero-knowledge proof technology that lets users prove they know certain information without revealing that information.

The development of zk-STARKs improved the scalability and transparency of zero-knowledge proof technology, and in particular makes it possible to generate proofs that are small and fast to process. These properties are especially useful for distributed ledger technologies such as blockchain.

Key Features of zk-STARKs

  • No trusted setup required: Unlike zk-SNARK, zk-STARK does not need a trusted setup. This sets it apart from zk-SNARK, where the initial parameters used to generate proofs must be created at a specific stage. As a result, zk-STARKs are more transparent and reduce the security risks that can arise during initial parameter generation.
  • Quantum resistance: zk-STARKs are considered resistant to attacks from quantum computers. This is because zk-STARKs do not rely on number-theoretic assumptions that could be easily broken by quantum computing.
  • Scalability: zk-STARKs are small and fast to verify. These properties help improve the scalability of blockchain networks. By reducing the resources needed to process and verify large numbers of transactions, they can make networks more efficient.
  • Data size: One drawback of zk-STARKs is that the proofs they generate are larger than those of zk-SNARKs. This can affect storage space and bandwidth, especially when handling large volumes of data.

Examples of zk-STARK Use Cases

zk-STARKs can be applied in many areas, including privacy protection, data integrity verification, and proving that smart contract conditions have been met. In blockchain technology in particular, they can be used to prove that transactions are valid while protecting the privacy of the parties involved. This could be applied in fields such as financial transactions, secure sharing of medical records, and voting systems.

zk-STARKs can also help solve the scalability problems of blockchain networks. By reducing the resources needed to process and verify large volumes of transactions, they can increase network throughput and improve transaction speeds.

zk-SNARK vs. zk-STARK: Pros and Cons

zk-SNARKs and zk-STARKs each have their own strengths and weaknesses, and which technology to choose can depend on the specific use case and requirements.

For example, zk-SNARKs provide small, fast proofs, but their need for a trusted setup can raise security concerns. zk-STARKs, on the other hand, require no trusted setup and offer quantum resistance, but have the drawback of larger proof sizes.

The choice between zk-STARKs and zk-SNARKs can depend on the specific use case, the level of security required, and the overall design goals of the system. That's why it's important to weigh the pros and cons of each technology and choose the best solution.

Final Summary

Zero-knowledge proofs play an important role in blockchain technology and the digital world. Technologies like zk-SNARKs and zk-STARKs offer innovative ways to strike a balance between the need for privacy and the need for scalability.

Zero-knowledge proof technology will have an impact not only on blockchain and crypto assets, but also on a wide range of applications such as internet privacy, secure communications, and data sharing.

To sum up, zero-knowledge proof technologies, including zk-SNARKs and zk-STARKs, provide an effective means of solving scalability problems while maintaining privacy and integrity in today's digital economy. The continued development of these technologies will play an important role in building a safer and more efficient digital world.

Most read in Crypto & Blockchain 101

See all
Crypto & Blockchain 101Can You Make Money Mining Bitcoin at Home?5 min · Crypto & Blockchain 101What Is Tokenomics and Why Does It Matter? (Token Economics Explained)8 min · Crypto & Blockchain 101How to Cash Out from MetaMask (DeFi Swaps and Transfers to Upbit, Bithumb, and Binance)6 min ·