pull down to refresh

The Stash #05: Full-Chain Membership Proofs++The Stash #05: Full-Chain Membership Proofs++

Level: Beginner Reading time: ~15 min Last verified: 27 Nov 2026

Author's note:
I originally wrote the first version of this post in the style of my ring signatures article, getting into the math through simple toy models. Looking back, though, it turned out way too complex. The math behind FCMP++ involves a lot of new concepts and is much harder to explain than ring signatures (in fact, to be honest, even I was getting really stuck on the math part at one point). So, I cut out almost all the math (keeping only a tiny bit of basic math to ground the logic) and rewrote the post so anyone can easily read and understand the core idea and purpose of FCMP++. Hope you enjoy it! Feel free to share your thoughts and critiques in the comments.

Contents

In shortIn short

The main limitation of ring signatures is that they provide probabilistic sender ambiguity (plausible deniability), not a guarantee that the real spent output can never be identified. Because each ring contains only 16 outputs, statistical analysis can sometimes narrow down the candidates. The main reason Monero has changed the number of decoys and the rules for choosing them over the years was to close this probabilistic weakness.

At first, using decoys was optional, but it turned out that transactions without decoys could expose the ones that used them. Then it was found that raising the minimum number of decoys made guessing the real output harder, so the numbers were increased. After that, it was realized that if decoys are picked uniformly at random, instead of following a distribution that matches users' average spending habits, the whole thing becomes almost pointless, so the gamma distribution became the basis. Today a ring signature is fixed at 15 decoys + 1 real output = 16 outputs, and the decoys are chosen according to a gamma distribution.

In their current form, ring signatures really do work, and they've proven to protect real outputs well. But it needs repeating that this structure is still open to probabilistic analysis, and the only thing you know for certain is that the real output is one of those 16; in other words, a relatively small set. Increasing the number of decoys would improve privacy, but it's very costly, because every decoy you add to the ring also makes the signature bigger.

FCMP++ (Full-Chain Membership Proofs), which Monero wants to use in place of ring signatures, is designed to fix exactly these problems, and to let you hide in "the entire blockchain history" instead of "a crowd of 16".

In this post I'll try to explain how FCMP++ works without going into the math, in a descriptive and visual way that anyone can follow.

1. Why aren't rings enough?1. Why aren't rings enough?

We can compare the current ring signature system to blending into a crowd and losing your trail. When you make a transaction, your wallet picks 15 fake outputs (decoys) from the past outputs on the chain and mixes your own output in among them. Someone looking from the outside can't know with mathematical certainty which of those 16 outputs was actually spent; all of them are suspects.

But this "crowd of 16" model can't get past two basic walls:

  • The set is still too small: Finding the right one among 16 possibilities may look hard for a single transaction, but with enough data and time it's not impossible. Since it's certain that the real output is one of those 16, it's possible to narrow the circle down by eliminating candidates with various methods.
  • The cost of growing: Saying "then let's make the ring 1,000 instead of 16" looks great on paper, but in practice it's out of the question. In ring signatures, every new person you add to the crowd increases the transaction's size (in bytes) and verification time linearly. The more you grow the ring to increase privacy, the more you slow down the network and raise transaction fees.

In short, ring signatures give us "a small hiding place that is open to statistical guesses". For much stronger sender privacy, instead of limiting the crowd we hide in to 16 and leaving it open to probabilistic guesses, we need to spread it across all of the millions of outputs on the blockchain. On top of that, we need to escape the linear growth of the signature size while doing it. This is exactly where FCMP++ comes in. We can see the basic difference between the two at a glance in this picture:

2. A tree with millions of outputs2. A tree with millions of outputs

Instead of building a ring from 16 outputs, imagine a tree holding millions of outputs: every output is a leaf, and with each new output a new leaf is added to the tree. Then we group these leaves; neighboring leaves are put together in groups, and each group is turned into a single fingerprint with a hash (a Pedersen hash). Think of this operation as a one-way machine: the same inputs always produce the same fingerprint, even a single changed piece of data makes the result completely different, and going back from the fingerprint to see the data is impossible.

These group fingerprints are grouped again in the layer above and turned into fingerprints once more, and this goes on until a single value is left at the very top. We call that value the root. (The group size is a parameter set in the protocol design; since it doesn't change the logic, I'm not going into the number here.)

Here's why the root matters: the root is the fingerprint of the entire tree. If you change any leaf, every fingerprint above it, and finally the root, changes. So nobody can sneak a fake output into the tree, because the root wouldn't match.

So who builds this tree?

Everyone.

Every node scans the chain from the beginning, adds the outputs in order and follows the same rule, so everyone arrives at the same root. There's no central tree; there's a shared recipe that everyone applies on their own.

3. The "I was in the tree" proof3. The "I was in the tree" proof

To show that a leaf is in the tree, you don't have to show the whole tree. It's enough to show the neighbors along the path from your leaf to the root. The verifier combines your leaf with its neighbor, then with the next neighbor, and so on, layer by layer, and checks whether the result is the root on the chain. If it matches, the leaf is in the tree.

Let me show how this works with a tiny example. Our rule is very simple: we add the two branches side by side and write the sum in the layer above. A real Pedersen hash is a complicated function that can't be reversed; here we use this simple rule just to see the flow.

The real Monero tree isn't binary like in this picture. Each node has many children, and the branching width alternates between layers. The important point is that the tree grows much more in the number of leaves than in its depth. That's why even a tree containing hundreds of millions of outputs has only a relatively small number of layers. Since the membership proof follows this path, its size grows roughly logarithmically with the number of outputs, rather than linearly.

But there's a problem, and it's a big one: this proof has zero privacy.

In the example we just did, we openly showed the verifier both that our leaf is 3 and which neighbors it combines with. So by telling everyone on the network "I am spending exactly this output in this tree", we exposed ourselves with our own hands. Yet our goal is to prove that we're in the tree while hiding which leaf of the tree we are.

4. Hiding: camouflage (blinding)4. Hiding: camouflage (blinding)

The only reason we got caught in the previous example was that we showed our numbers and the neighbors along the path in plain sight. The solution is simple: never show the real values, and put disguised versions in their place.

At every spend, our wallet generates completely random, secret new numbers, and uses them to camouflage both the leaf we hold and all the intermediate layers on the path to the root. When an outsider looks at this data, they see a completely random value unrelated to any leaf of the tree. Since the random numbers exist only on our side, nobody can undo this camouflage.

Moreover, in Monero what we camouflage isn't a single number; every leaf in the tree is a package with three parts:

  • Output Key: The lock that proves we own the money.
  • Derived Point (HashToPoint): A special marker generated from the output key (that is, from something public) to prevent us from spending the same money twice (we'll see this in the Key Image section).
  • Amount Commitment: A sealed box that hides the transaction amount: it conceals the amount, but doesn't allow it to be changed afterwards.

Our wallet camouflages all three at the same time. Now we hold a disguised copy of a real leaf in the tree, which is still mathematically valid.

5. The proof: walking the tree behind closed doors5. The proof: walking the tree behind closed doors

We have our camouflaged leaf. But how will the other computers on the network believe that this disguised data really came from a leaf inside that huge tree?

This is where the zero-knowledge proof (ZKP) comes in. Let's imagine that we make the climb from the earlier addition example, this time in a closed room whose inside can't be seen from the outside:

  • We enter the closed room; we hold our real leaf and the real neighbors along the path to the root.
  • Inside the room, we combine step by step with our neighbors and reach the root at the top of the tree.
  • The verifiers outside can never see inside the room or which leaf we started from.

When the computation ends, what comes out of the room is this: the root of the tree that everyone knows, our camouflaged leaf, the camouflaged intermediate values along the path, and a cryptographic proof showing that this climb was done according to the rules.

When the verifier looks at this proof, they become convinced of this: "The person inside definitely took one of the real leaves of this tree, climbed the right steps and actually reached the top of the chain, and also brought out the camouflaged version of that leaf. But I have not the slightest idea which leaf they started from."

How does a ZKP work? (Optional)How does a ZKP work? (Optional)

I described the proof part above symbolically on purpose, and one question remains: how do we prove to the other side that we're telling the truth without ever opening the door of the room, that is, without showing the secret numbers inside?

There are many methods for this. Here I'll show the most basic logic, the idea of "seal first, then answer the question you're asked", with small numbers. Reading it is completely optional: if you skip it, it won't stop you from understanding the rest of the post, the proof step will just settle a bit better in your head. The math is middle-school level, because the goal is to convey the logic, not the calculation. It's also important to say up front that the rule here is deliberately kept very simple; it doesn't carry the security of a real ZKP, it only shows the logic and the flow.

I explained the flow both as a picture and in writing. The picture shows the whole flow at once, so reading the two side by side will be easier.

Let's set a very simple rule that everyone knows: when we multiply a secret number by 3 and add 2, the result is 14. (We figured out right away that the secret number is 4, but our goal is to never tell this to the other side.)

To tell the verifier "I know this secret number", we play a game:

  1. Mask and Seal (Our Side): We pick a random number in our head, say 10, and add it to our secret number 4: 4 + 10 = 14. We apply only ×3 to the random number, and for the sum we apply ×3 and +2 as in the rule, and we send the verifier two sealed results: 30 (10 × 3) and 44 ((14 × 3) + 2). The verifier takes note of these, but in real systems it's impossible to find the secret number by looking at these sealed results.
  2. Asks One at Random (Verifier): Like flipping a coin, the verifier picks one of two questions and asks us: A) "Tell me your random number" or B) "Tell me the sum".
  3. We Reveal Only What's Asked (Our Side): If A is asked, we send 10; if B is asked, we send 14. Our secret number, 4, is still known only to us.
  4. Checks (Verifier):
    • If A (10) arrives: they compute 10 × 3 = 30 and see that it matches the 30 we sent at the start.
    • If B (14) arrives: they compute (14 × 3) + 2 = 44; they verify that it matches the 44 we sent at the start, and that the difference (44 − 30 = 14) equals the target number in the rule.

The logic is this: we send the first message without knowing which question will come. Someone who doesn't know the secret number can prepare for only one of these two questions, not both; so they get caught with 50% chance in each round. If we play this game for 20 rounds, with fresh random numbers each time, and pass without a single error, the chance of passing by luck is about one in a million, and the verifier becomes almost certainly convinced that we know the secret number. And they still don't know the number is 4.

(Note: to see the logic on paper, we played 20 rounds of coin flipping. In real systems the question isn't binary; it's chosen from a very large range of numbers, so a single round is enough. There's also no need for back-and-forth messaging with the verifier: the question is generated automatically by hashing the first message, and the proof is verified in one go.)

Important: This is a deliberately simplified and insecure toy example, designed only to illustrate the basic challenge-response flow. The arithmetic is easily reversible, meaning the secret number can actually be recovered from the values shown. Real ZKPs use much more sophisticated cryptographic techniques to prevent this.

6. Preventing double spending (Key Image)6. Preventing double spending (Key Image)

So far we've built wonderful invisibility: we hid which leaf we chose, and on top of that we put a brand-new camouflage on it every time. But right here we see a very critical gap: if we can put a completely different camouflage on our leaf in every transaction, what will stop us from spending the same money 10 times with different camouflages?

There's one more thing missing: the proof we've made so far only says "this leaf is in the tree". You don't even need to know the secret key to produce this proof; so on its own, it doesn't show that we have the right to spend that money. A second, separate and much smaller proof takes care of that: "I know the secret key of this output." The stamp that catches double spending comes out together with this proof.

This is where the derived point (HashToPoint), the second part of the leaf we mentioned in the Camouflage section, comes into play.

When you want to spend money in Monero, your wallet has to present to the network a unique digital fingerprint called a Key Image (called a Linking Tag in the FCMP++ literature). This fingerprint is born from the combination of two things:

  1. That derived point (HashToPoint) inside the leaf,
  2. And the secret spend key (private key) that only the real owner of the money has.

The most critical property of this formula is that it's deterministic; that is, whenever and however you try to spend the same leaf, exactly the same Key Image always comes out.

The process works step by step like this:

  • Showing the Key and Sealing It: The second proof shows that you know the secret spend key while staying tied to the camouflaged parts, and at the same time outputs a single Key Image. The leaf behind the camouflage stays invisible.
  • Checking Without Revealing Identity: The verifiers outside can never work backwards from this Key Image to find which leaf it was produced from (privacy is preserved).
  • A One-Time Ticket: However, every computer on the network checks a huge list that holds all the Key Images spent to date. If the Key Image you produced isn't on the list, your transaction is approved and that fingerprint is permanently written to the "spent" list. If you try to spend the same leaf a second time with a completely different camouflage, exactly the same Key Image will come out again, so the network rejects the transaction instantly.

This way, nobody other than the owner of the money can produce this fingerprint, nobody can tell which leaf it belongs to, and spending the same money twice becomes practically impossible.

7. The big picture and where things stand7. The big picture and where things stand

The architecture we've been examining step by step from the beginning is also exactly what the protocol's name, FCMP++, stands for:

  • FCMP (Full-Chain Membership Proof): Proving, with zero knowledge, that the output we're spending is part of the outputs (the tree) of the entire blockchain history, instead of a narrow ring of 16. (A technical note: although the name says "full chain", the tree includes eligible outputs from the entire chain history, including pre-RingCT CryptoNote outputs. For those older outputs, whose amounts were public, the implementation constructs an amount commitment from the known amount. Outputs are added once their block is 10 blocks deep.)
  • First + (Spend Authorization): Showing that we really hold the secret key of that output and have the authority to spend it.
  • Second + (Linkability): Producing the deterministic stamp (Key Image / Linking Tag) that prevents us from spending the same money a second time.

When these three parts come together, it leaves behind the statistically guessable "small crowd" model Monero has used since its launch, and turns the entire chain directly into a hiding place. On top of that, we can do this without breaking existing Monero addresses, without requiring users to move their funds to new addresses, and without making proof sizes grow linearly with the number of outputs.

So where are we right now? FCMP++ is currently undergoing performance and stress tests on public test networks (stressnet). On the main network (mainnet), ring signatures continue to work, and there is no announced date yet for the transition. Still, it is firmly on the way, and when it finally arrives, it will truly be a historic milestone for Monero.

If you want to look at the technical details and the math more closely and you're more comfortable with cryptography, the FCMP++ paper is the best starting point.

Thanks for reading.

(btw, sorry for the slight delay; I ran into a few technical issues.)

SourcesSources

  1. Luke “Kayaba” Parker, “FCMP++” paper. https://github.com/kayabaNerve/fcmp-plus-plus-paper/blob/develop/fcmp%2B%2B.pdf

hopefully fcmp++ will be implemented soon
my wet dream was its come in 2026... but seems they will come on next year right?

reply

No official date yet, but the FCMP++ milestone in the Monero repo shows roughly 80% complete right now: https://github.com/monero-project/monero/milestone/1. If nothing goes wrong, it will very likely arrive sometime in 2027.

reply

@fujimoto hey fam, I think The Stash explanatory articles are fantastic! Keep up the great work.

I was wondering if you'd be cool with me, eventually, generating mirrors of them both on clearnet and in the onions land, with my personal blog built with hugo. It has an .onion mirror as well, and basically all the articles that are in there, are not written by me, they are simply mirrors of some other people's work. I like to think of it like my personal collection of texts that I find rather useful, both for myself and for anyone else who ventures into my personal website, or blog. Personal public collection of privacy-related guides, essays and explanatatory pieces on tech, cryptography, et. al.

It is all open source and even FLOSS, I'd say, since theme's license is GPLv3. An old XMR contributor ported a Jekyll theme to Hugo. You may find further information in the repository.

reply

Of course, you can mirror them anywhere you'd like as long as you give attribution. Glad you liked the series as well, thanks for the kind words!

reply