EN

Keys, proofs and the inbox

4 minDifficulty Checked 2026-11-10
Key takeaways
  • A holder opts in by registering an ElGamal public key with a first conversion.
  • Received funds land in an inbox. They are spendable only after a merge.
  • Losing the private encryption key means losing the confidential funds for good.

A confidential balance needs a second key. Your normal account key signs transactions. The new one is an encryption key. It locks and unlocks the numbers.

Opting in. You register your encryption key by converting some of your public balance to confidential form. The amount can be zero, so you can register without moving anything. Until you register, nobody can send you a confidential transfer.

Three locked copies. Each confidential balance is stored as several locked copies of the same number:

  • One only you can open. This copy is what you spend from.
  • One the issuer can open.
  • One an auditor can open, if the issuer named an auditor.

Proof without showing. When you send, you attach a mathematical proof. It shows that you have enough, that the amount is not negative, and that all locked copies hold the same number. Validators check the proof. They never see the number.

The inbox. A proof is built against your balance at one moment. If someone paid you a second later, your balance would change and your proof would break. So incoming funds go to a separate inbox. Your spending balance changes only when you act. To spend what you received, you merge the inbox first.

No reset. If you lose the private encryption key, your confidential funds are gone. No one can recover them for you.

Check yourself3 questions
1. Why does each account have a separate inbox balance?
2. What do validators learn when they check a confidential send?
3. A holder loses their ElGamal private key. What happens to their confidential balance?
Sources
Next lessonIssuers, auditors and clawback4 min