Skip to content
Fundamental Concepts

zk-SNARKs

Tipo de prova de conhecimento zero compacta e de verificação rápida, usada para comprovar que algo é verdadeiro sem revelar a informação por trás disso.

Key points

  • zk-SNARKs are a type of zero-knowledge proof, which proves that something is true without revealing the information behind it.
  • They are characterized by being compact and extremely fast to verify, which makes them efficient for use on blockchains.
  • They are widely used in privacy and scaling solutions, although some variants require a sensitive setup step.

What are zk-SNARKs?

zk-SNARK stands for Zero-Knowledge Succinct Non-Interactive Argument of Knowledge. Despite the technical name, the core idea is accessible: it is a specific form of zero-knowledge proof, that is, a method for proving that a statement is true without revealing the information that supports it. What sets zk-SNARKs apart is how this proof is constructed and verified.

How it works

Each part of the name describes a property. Succinct means the proof is small and fast to verify, even if the underlying statement is complex. Non-interactive means there is no need for a back-and-forth of messages between the prover and the verifier: a single proof is enough and can be checked at any time. And zero-knowledge means the verification reveals nothing beyond the fact that the statement is true. Together, these properties make zk-SNARKs highly practical.

These characteristics explain their popularity on blockchains. Because the proof is compact and cheap to verify, it can be published on the network without overloading it, making it possible to prove, for example, that a large set of transactions is valid or that a condition has been met, without exposing the underlying data. This enables both privacy solutions, which hide transaction details, and scaling solutions, which prove many operations at once.

There is, however, a well-known point of caution. Many zk-SNARK constructions rely on an initial setup step that generates secret parameters. If these parameters are not discarded properly, whoever holds them could, in theory, forge false proofs, which requires special care during this phase. There are variants that reduce or eliminate this requirement, and they are often compared with another family of proofs, zk-STARKs, which do away with this setup at the cost of other characteristics. The choice between them depends on the needs of each application.

Understanding zk-SNARKs helps in understanding one of the technologies behind privacy and scale in crypto.

Why it matters

Understanding zk-SNARKs helps in understanding a core technology behind privacy and scaling solutions on blockchains, and why compact proofs are so useful. It is a concept increasingly present in crypto infrastructure. This is a technical topic, and none of it represents any recommendation to trade or operate.

Risks and limitations

Many zk-SNARK variants rely on an initial setup step that, if poorly conducted, introduces the risk of forged proofs. They are technically complex, and implementation flaws can compromise their guarantees. Generating the proofs can be costly, even though verifying them is lightweight. The choice against alternatives depends on the use case. None of this represents a recommendation to trade or operate.