zk-STARK

Research
Introduced by
Eli Ben-Sasson
Year
2018
Type
transparent zero-knowledge argument of knowledge
Family
Cryptographic proof systems

What does it do?

A zk-STARK is a cryptographic proof system that lets a prover convince a verifier that a computation was carried out correctly, without a trusted setup phase and without disclosing the computation's internal details.

It was introduced by Ben-Sasson and co-authors in 2018 as an alternative to zk-SNARK constructions, which typically require a preprocessing phase that must be run in a trusted way. Its soundness rests on the collision resistance of hash functions and on finite-field arithmetic, and it is believed, though not formally proven, to resist attacks by quantum computers.

The intuition behind the method

A STARK proof begins by running the computation and recording a trace of its intermediate states, such as register and memory values at each step. The trace is encoded as polynomials, and the prover commits to them using hash-based Merkle trees, so the trace cannot be changed afterwards without detection. The prover then shows that these polynomials satisfy the transition rules of the computation. The verifier does not inspect the whole trace; it requests evaluations at random challenge points and checks their consistency, so an incorrect claim is rejected with high probability. The zero-knowledge property is obtained by blinding the committed trace and the query answers with randomness, so the verifier learns that the claim holds without learning the trace itself. This property is separate from soundness (a false claim is rejected) and from transparency (no trusted setup is needed). This page is a conceptual overview; the formal constraint definitions and degree bounds are given in the primary source, IACR ePrint Report 2018/046.

History

The zk-STARK construction was introduced in 2018 by Eli Ben-Sasson and co-authors (IACR ePrint Report 2018/046). The construction combines polynomial commitments with the FRI protocol to obtain transparent proofs based on hash functions. Starknet, a Layer 2 blockchain system, is an example of STARK-based proofs in practice.

When to use it

Choose a zk-STARK when a trusted setup is unacceptable, for example when no party can be relied on to run a setup ceremony correctly. It is also a candidate when a hash-based design is preferred, because its primitives are expected to resist quantum attacks provided the chosen hash function and parameters do. It is a reasonable fit for large computations, where the verifier's work grows slowly with computation size and the prover's cost is acceptable. Do not choose it when proof size or verification cost in a constrained setting is the dominant concern, since zk-SNARKs produce much smaller proofs. If the statement is simple, the proofs must be compact, and a trusted setup is acceptable, a zk-SNARK is usually the simpler choice.

Limitations and considerations

  • Larger proof sizes than zk-SNARKs; proofs typically span kilobytes rather than hundreds of bytes
  • Slower proof generation and verification compared to zk-SNARKs, though still practical for real applications
  • More complex to understand and implement due to polynomial commitment schemes and FRI protocol details
  • Requires careful parameter selection to balance security, proof size, and verification time

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • No trusted setup required; transparency is built into the protocol from first principles
  • Designed around hash-based primitives that are expected to resist quantum attacks if the chosen hash function and parameters do; this is a design belief, not a proven guarantee, unlike SNARK systems relying on discrete logarithm hardness
  • Highly scalable; proof size and verifier work grow slowly with computation size
  • Built on simple, well-understood cryptographic hash functions, avoiding exotic assumptions

Applications

  • Blockchain scaling, for example Starknet, a Layer 2 system that uses STARK-based proofs
  • Designs where the proof system's security should not depend on discrete-logarithm assumptions, including designs oriented towards post-quantum resistance, subject to the choice of hash functions and parameters
  • Verifiable computation settings in which a trusted setup is considered unacceptable

How it works

How it works

1

Run the computation to be proved and record a trace of the relevant state at each step, such as the program counter, memory, and register values.

2

Encode the trace as low-degree polynomials over a finite field. Commit to these polynomials using hash functions and Merkle trees, so that the prover is bound to the trace.

3

Show that the committed polynomials satisfy the computation's transition rules. The prover answers evaluation queries at points determined by public random challenges. In the non-interactive version, these challenges are derived from a hash of the protocol transcript so far; this relies on the Fiat-Shamir heuristic, which is analysed in the random oracle model. FRI is used to show that the committed functions are close to low-degree polynomials.

4

Check a small number of openings at the challenge points against the Merkle commitments, and check the FRI low-degree test. If all checks pass, the verifier accepts. A false claim passes only with a small probability (the soundness error), which is bounded in terms of the number of queries and the FRI parameters and is controlled by the chosen security parameters. Acceptance therefore means the claim is correct except with that error probability.

Common pitfalls

  • Misunderstanding the transparency guarantee; the proof itself is transparent, but the prover's statement must still be correctly specified
  • Incorrectly implementing the polynomial commitment or FRI protocol, leading to subtle soundness failures
  • Choosing field sizes or polynomial degrees that do not match the security level of the application
  • Assuming post-quantum security without verifying that all components (hash functions, polynomial arithmetic) are quantum-resistant

Frequently asked questions

What is FRI (Fast Reed-Solomon Interactive Oracle Proof of Proximity)?

FRI is a protocol for checking that a committed function is close to a low-degree polynomial, using a small number of queries to hash-committed evaluations. It is the component that lets STARKs avoid the elliptic-curve or pairing-based commitments used in some zk-SNARK constructions.

Are zk-STARKs truly post-quantum secure?

zk-STARKs rely on the collision resistance of cryptographic hash functions and on finite-field arithmetic. If the hash functions used are believed to resist quantum attacks, the proof system is expected to inherit that resistance. This is a belief supported by the design, not a formal proof.

How much larger are STARK proofs compared to SNARK proofs?

STARK proofs are substantially larger than zk-SNARK proofs. The exact size depends on the security parameters and on the size of the computation, and the size gap is one of the main trade-offs between the two families.

Can zk-STARKs be used for all computations?

In principle, any computation that can be written as a program can be expressed as a relation that a STARK can prove. In practice, encoding a computation requires a suitable language and tooling, and the proving cost depends on the size of the computation. Cairo is a purpose-built language for writing STARK-provable programs.

Why choose STARKs over SNARKs?

Choose STARKs when transparency is critical or a trusted setup is impractical, and when a hash-based design with expected quantum resistance is desired. Choose SNARKs when proof size and verification cost are the main constraints and a trusted setup is acceptable.

Related methods

Sources

  1. Ben-Sasson, E., Bentov, I., Horesh, Y., & Riabzev, M. (2019). Scalable, transparent, and post-quantum secure computational integrity. In IACR Cryptology ePrint Archive, Report 2018/046.

    Open publication reference
  2. Ben-Sasson, E., Riabzev, M., Rozenkraut, M., Shacham, H., & Stemen, M. (2021). Aurora: Transparent Succinct Non-Interactive Zero-Knowledge Proofs. In IACR Cryptology ePrint Archive, Report 2018/828.

    Open publication reference