---
title: "Key Image — definition | Nuri Glossary"
description: "A value published with a spend that reveals which output was used without revealing the recipient, preventing doubles."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/key-image"
---

# Key Image

A value published with a spend that reveals which output was used without revealing the recipient, preventing doubles.

## Basically

A key image is a unique code made from a one-time private key. It lets privacy coins such as Monero detect double-spending without revealing which output was spent.

## Key Takeaways

- A key image is a unique cryptographic tag derived from a one-time private key. It detects double-spending in a ring signature transaction without revealing which output was spent.
- Each output can only ever produce one key image, and the network permanently stores every key image it has seen. A transaction containing a duplicate key image is rejected as a double-spend attempt.
- Key images let privacy-preserving blockchains enforce spending rules while hiding the transaction graph. The trade-off is permanently growing storage that can never be pruned.

## What Is a Key Image?

A key image is a cryptographic construct introduced by the CryptoNote protocol and used most prominently in Monero. When you spend an output, your wallet computes a deterministic, one-way value from the output's private key. This key image is included in the transaction and permanently recorded on the blockchain.
The key image has one purpose: it lets the network detect whether the same output is being spent twice without revealing which output in the ring signature is real. In transparent blockchains like Bitcoin, every node can see exactly which UTXO is being consumed, so double-spend prevention is straightforward. In a privacy-focused system where the real input is hidden among decoys, key images provide the required mechanism.
The concept was first described in the CryptoNote v2.0 whitepaper, attributed to Nicolas van Saberhagen in 2013, as part of the one-time ring signature scheme. It was first deployed in Bytecoin in 2012 and later adopted by Monero, which remains its most widely used implementation.

## How It Works

The key image construction relies on elliptic curve cryptography. A special hash function maps curve points to other curve points, and the formula is:
The construction has several properties. These properties make it suitable for double-spend prevention in a privacy system:

## Verification in Ring Signatures

Your wallet embeds the key image in the ring signature when you create it to spend an output. During verification, the network checks two parallel sets of equations for each ring member to confirm that:
The network then checks its database of all previously seen key images. If the key image already exists, the transaction is rejected. If it is new, the transaction is accepted and the key image is added to the permanent set.

## Comparison with Bitcoin's UTXO Model

Key images are easier to grasp when contrasted with how Bitcoin handles double-spend prevention. Bitcoin uses a fully transparent UTXO model:
Bitcoin's transparency makes double-spend prevention trivial but sacrifices privacy. Monero's key image approach preserves privacy but introduces permanent storage overhead as the cost. This is a fundamental design trade-off, not an implementation limitation, because you cannot prune a key image when you do not know which output it corresponds to.

## Why It Matters

Key images are essential to how privacy-preserving blockchains work at a cryptographic level. They are one solution to a problem every digital cash system must solve: preventing users from spending the same money twice. Transparent systems solve this by making all transactions visible, while privacy systems require more sophisticated cryptography.
The concept also illustrates broader trade-offs in blockchain design: privacy brings increased storage requirements, more complex verification, and new attack surfaces. Different projects make different trade-offs along this spectrum. Fungibility advocates argue that privacy is essential for money to function properly because without it some coins become "tainted" and worth less than others, while transparency advocates counter that auditability is valuable for regulatory compliance and network integrity.
Bitcoin-based systems typically achieve privacy through different mechanisms. Layer 2 solutions like Lightning and Spark provide transaction privacy by moving activity off the main chain, while techniques like CoinJoin and silent payments enhance on-chain privacy without requiring the permanent storage overhead of a key image scheme.

## Monero and CryptoNote-Based Coins

Key images are foundational to Monero's transaction model. Every Monero transaction includes at least one key image, one per input. The Monero network maintains a complete database of all key images ever used, which as of 2026 includes tens of millions accumulated over a decade of operation.
Other CryptoNote-derived coins that use key images include Wownero, Zano, and Conceal (CCX). Each inherits the same basic key image construction from the CryptoNote specification, though implementations may vary in ring size and other parameters.

## FCMP++: The Next Evolution

Monero's most significant protocol upgrade in recent years is FCMP++ (Full-Chain Membership Proofs++). It replaces traditional ring signatures, which used a fixed set of 16 decoys, with zero-knowledge membership proofs that prove the spent output exists among all outputs on the chain, over 100 million. Key images are retained under FCMP++ for double-spend prevention; only the ring signature scheme changes.
FCMP++ also introduces forward-secret outputs, which protect against future adversaries with quantum-capable discrete logarithm oracles. Even such an adversary could not compute the key image of an unspent forward-secret output, providing a defence against post-quantum threats.

## Academic Research and Analysis

Key images have been the subject of significant academic study, particularly in blockchain analysis and privacy evaluation. Researchers have used key image data to study transaction patterns, evaluate the effective anonymity set of ring signatures, and identify weaknesses in early ring construction algorithms. This research has directly influenced improvements to Monero's decoy selection algorithm and the eventual move towards full-chain membership proofs.

## Permanent Storage Growth

The key image database grows monotonically with every transaction processed and can never be pruned. Each key image is 32 bytes, a compressed Edwards25519 curve point, and the set must be complete for consensus validation. Monero supports blockchain pruning that removes old transaction proofs, but the key image set itself is exempt; the full Monero blockchain is approximately 250 GB, pruned nodes require around 100 GB, and both include the complete key image database.

## Hard Fork Key Image Reuse

A contentious hard fork of a CryptoNote-based blockchain creates a subtle privacy leak for users who hold coins on both chains. Spending the same output on both chains makes the same key image appear on both. An observer monitoring both chains can correlate these key images to narrow down which ring member was the real signer, effectively deanonymising the transaction.
Researchers have studied this attack in practice. Analysis of Monero's 2017 hard fork, which produced Monero Classic, Monero Original, and other forks, found that key image reuse across chains significantly degraded the privacy of users who spent on multiple forks.

## Exchange-Assisted Deanonymization

Centralised exchanges that comply with KYC/AML regulations know which outputs they own. When those outputs are spent, the exchange knows the corresponding key image. Over time, an exchange, or an entity collaborating with multiple exchanges, could build a database mapping key images to real outputs, progressively eroding the effective anonymity set for other users whose transactions included exchange-owned decoys.

## Statistical Analysis of Ring Composition

Key images themselves do not leak information about the real signer, but patterns in ring construction can. Early versions of Monero used small ring sizes and naive decoy selection algorithms, which allowed researchers to statistically identify the real input in many transactions. Modern Monero uses a ring size of 16 with a gamma distribution for decoy age selection, and FCMP++ eliminates the problem entirely by using the full output set.

## No Trusted Setup Required

Key images have an advantage over some alternative privacy mechanisms because they require no trusted setup ceremony. Zcash's original zk-SNARKs required a multi-party computation ceremony to generate parameters; if that ceremony were compromised, undetectable inflation would be possible. Key images derive their security purely from the hardness of the elliptic curve discrete logarithm problem, with no external trust assumptions beyond the underlying elliptic curve cryptography.
The 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.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
