Glossary

Range Proof

A range proof cryptographically demonstrates that a hidden value falls within a valid range without revealing the value itself.

Key Takeaways

  • A range proof is a zero-knowledge proof that a committed value v satisfies 0 ≤ v < 2ⁿ without revealing v. It is an essential building block for confidential transactions.
  • Without range proofs, a sender could commit to a negative value and exploit modular arithmetic to create coins from nothing. Range proofs eliminate this attack by constraining hidden amounts to a valid, non-negative interval.
  • Early range proofs were several kilobytes in size, but Bulletproofs reduced proof size to logarithmic in the bit length of the range, with no trusted setup required.

What Is a Range Proof?

A range proof is a cryptographic proof that demonstrates a hidden value lies within a specified numerical range, without revealing what the value actually is. In the context of privacy-preserving cryptocurrencies, the hidden value is typically a transaction amount concealed inside a Pedersen commitment, and the range is [0, 2ⁿ) where n is the bit length (commonly 64 bits).

The concept was first introduced by Brickell, Chaum, Damgård, and van de Graaf at CRYPTO 1988 as a building block for protocols that reveal a secret discrete logarithm bit by bit. Since then, range proofs have become a cornerstone of confidential transactions, where they prevent a subtle but devastating attack: the creation of coins out of thin air through negative committed values.

Think of a range proof as a sealed envelope containing a number, accompanied by a mathematical guarantee that the number inside is between zero and some maximum. Anyone can verify the guarantee without opening the envelope.

How It Works

To understand why range proofs are necessary, consider how Pedersen commitments work. A Pedersen commitment hides a value v by computing C = vG + rH, where G and H are generator points on an elliptic curve, and r is a random blinding factor. These commitments are homomorphic: you can add two commitments together and get a commitment to the sum of their values.

This homomorphic property lets verifiers check that transaction inputs equal outputs without seeing amounts. If input commitments sum to the same value as output commitments (plus fees), the transaction balances. The problem is that all arithmetic happens modulo the group order p (a very large prime). In modular arithmetic, there is no concept of "negative": a commitment to -5 is indistinguishable from a commitment to p - 5, which is an astronomically large number. A malicious sender could commit to a negative output, effectively creating new coins while the balance equation still checks out.

The Negative Value Attack

Without range proofs, consider this attack scenario:

# Attacker creates a transaction:
Input:   10 BTC (legitimate)
Output1: 15 BTC (sent to self)
Output2: -5 BTC (sent to a burn address)

# Balance check: 10 = 15 + (-5) ✓
# The attacker just created 5 BTC from nothing

In a system using Pedersen commitments, the commitment to -5 is a valid group element. The homomorphic balance check passes because the math works modulo p. Range proofs close this loophole by requiring every output to prove its committed value falls within [0, 2ⁿ), ensuring no negative or overflow values can sneak through.

Proving a Value Is in Range

At a high level, a range proof works by decomposing the hidden value v into its individual bits and proving each bit is either 0 or 1. If every bit b_i satisfies b_i ∈ {0, 1}, then the reconstructed value v = Σ b_i · 2^i necessarily lies in [0, 2ⁿ). The proof demonstrates this decomposition is valid without revealing any of the individual bits.

  1. The prover commits to the value v using a Pedersen commitment C = vG + rH
  2. The prover decomposes v into n bits and creates commitments to each bit
  3. The prover generates a proof that each committed bit is 0 or 1
  4. The verifier checks the proof against the original commitment C

The challenge lies in doing this efficiently. Naive approaches require O(n) separate proofs (one per bit), making range proofs large and slow. This is where constructions like Bulletproofs made a breakthrough.

Evolution of Range Proof Constructions

Range proof efficiency has improved dramatically over the years:

ConstructionProof Size (64-bit range)Trusted SetupYear
Borromean Ring Signatures~5 KBNo2015
Bulletproofs~672 bytesNo2017
Bulletproofs+~576 bytesNo2020
Bulletproofs++~416 bytesNo2022

The Bulletproofs paper by Bünz, Bootle, Boneh, Poelstra, Wuille, and Maxwell (2017) was the major inflection point. By using an inner-product argument, Bulletproofs compressed the proof from O(n) to O(log n) group elements: specifically, 2·log₂(n) + 9 group and field elements for a range of [0, 2ⁿ). They also introduced aggregation, allowing m separate range proofs to be combined into a single proof that adds only O(log m) additional elements.

Use Cases

Confidential Transactions

The primary application of range proofs is in confidential transactions, where transaction amounts are hidden from public view. Every protocol that conceals amounts needs range proofs to maintain the integrity of its supply:

  • Monero uses Bulletproofs+ (adopted in 2022) to prove that all transaction outputs are non-negative. Before Bulletproofs, Monero used Borromean ring signature range proofs that made transactions significantly larger.
  • The Liquid Network (Blockstream's Bitcoin sidechain) uses range proofs in its confidential transactions to hide asset amounts and types. Blockstream developed Bulletproofs++ for a planned upgrade that would reduce proof sizes by roughly 39% compared to Bulletproofs.
  • MimbleWimble implementations (Grin and Beam) use Bulletproofs as part of their core transaction model, where every transaction output is a Pedersen commitment paired with a range proof.

Privacy Coins and Protocols

Beyond the protocols listed above, range proofs appear anywhere transaction values must be hidden. They are used in ring signature schemes, zero-knowledge proof systems for DeFi privacy, and in confidential token transfer protocols like Solana's Confidential Transfer extensions.

Anonymous Credentials and Voting

Outside of cryptocurrencies, range proofs have applications in anonymous credential systems (proving your age is above 18 without revealing your birth date), sealed-bid auctions (proving a bid is within allowed bounds), and electronic voting (proving a vote is valid without revealing the choice).

Aggregation and Batch Verification

Bulletproofs support proof aggregation: multiple parties can jointly construct a single range proof covering all of their outputs without revealing individual values to each other. This is particularly useful for transaction batching, where a single aggregated proof replaces many individual proofs, reducing total transaction size. Verifiers can also batch-verify multiple proofs, significantly reducing the per-proof verification cost.

Why It Matters

Range proofs sit at the intersection of privacy and security. Without them, any system using homomorphic commitments to hide values would be vulnerable to inflation attacks. They are the mechanism that makes it safe to hide transaction amounts: the confidential transaction model simply does not work without them.

The efficiency of range proofs directly impacts the practicality of privacy features. When Monero switched from Borromean range proofs to Bulletproofs, transaction sizes dropped by approximately 80%, making confidential transactions viable for everyday use. Each subsequent improvement (Bulletproofs+, Bulletproofs++) further reduces the cost of privacy.

For Bitcoin layer-2 protocols and sidechains that implement confidential transactions, range proof efficiency determines how many transactions can fit in a block and how quickly nodes can validate them. Research into faster range proofs continues to push the boundaries of what is practical. For a deeper look at how zero-knowledge techniques apply to Bitcoin, see the zero-knowledge proofs in Bitcoin research article.

Risks and Considerations

Verification Cost

While Bulletproofs dramatically reduced proof sizes, verification is still computationally expensive. Both proof generation and verification run in O(n) time, where n is the bit length of the range. For a 64-bit range, verification requires dozens of elliptic curve operations. In high-throughput systems, this cost can become a bottleneck. Batch verification helps by amortizing multi-exponentiation costs across multiple proofs, but the per-proof cost remains higher than non-private transactions.

Transaction Size Overhead

Even with logarithmic-sized proofs, range proofs still add meaningful data to every transaction output. A Bulletproofs proof for a 64-bit range is roughly 672 bytes, and each output in a confidential transaction needs its own proof (unless aggregation is used). For transactions with many outputs, range proofs can still dominate total transaction size. This tradeoff between privacy and scalability is a persistent challenge in protocol design.

Cryptographic Assumptions

Bulletproofs rely on the discrete logarithm assumption and use the Fiat-Shamir heuristic to achieve non-interactivity. While the discrete log assumption is well-studied and considered strong on current hardware, the development of practical quantum computers could undermine it. Protocols using range proofs would need to migrate to quantum-resistant alternatives, such as lattice-based range proofs, which are an active area of research.

Implementation Complexity

Correct implementation of range proofs requires careful handling of cryptographic primitives. Bugs in range proof verification can have catastrophic consequences: a flawed verifier might accept invalid proofs, allowing silent inflation of a currency's supply. These bugs are particularly dangerous because confidential transactions obscure amounts, meaning inflation could go undetected for extended periods.

This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.