Start typing to search this publication.
Orange Soda
Open menu

Subscribe to Orange Soda

Get new posts delivered straight to your inbox.

Confidential vs stealth on Tari Ootle: the wallet field that confused me, and what each type really hides

two privacy layers, one native token, and what I saw on Esmeralda when I built an app on top of stealth TARI

Orange Soda
5 min read

When my burned Minotari finally showed up on Ootle, the wallet daemon reported it like this (trimmed):

"balance": "0",
"confidential_balance": "199986762",
"resource_type": "Stealth",
"token_symbol": "tTARI"

Zero balance, 199.98 tTARI "confidential", and a resource type that says Stealth. In my last post I loosely called the claimed TARI "a stealth (confidential) resource". That was sloppy. On Ootle, Confidential and Stealth are two separate resource types with different privacy properties, and TARI is only one of them. So I went back to the docs and to my own Phantom Drop run on Esmeralda to sort it out properly.

The four resource types

The Ootle engine defines exactly four resource types: public fungible, public non-fungible, confidential and stealth. The first two are public, like tokens and NFTs on most chains. The interesting part is the other two. The easiest way to think about them is two questions: can an outsider see the amount, and can they see the owner?

  • Confidential: amount hidden, owner visible. Balances live in vaults as Pedersen commitments. You can see that a vault holds some of the resource, and which component owns that vault (usually an account), but not how much.

  • Stealth: amount hidden, owner hidden. There are no vault balances. Every output is its own UTXO on the ledger, sent to a one-time stealth address.

The docs put it in one sentence: confidential hides the number, stealth hides the number and the name. The source code comment for the Stealth variant is nice too: each output is "kind of like creating a new unlinked vault for each currency note".

And the native token, TARI, is a stealth resource. That answers my wallet question. The resource type really is Stealth. The amount is a commitment either way, so the daemon reports it in a field called confidential_balance and leaves the plain balance at 0. "Confidential" in that field name describes how the amount is stored, not which resource type it is.

What both layers share

The hiding of amounts works the same way in both. A value is committed as C = mask·G + v·H. Without the mask, a commitment to 5 looks the same as a commitment to 5000. Commitments add up, so the engine can check that inputs equal outputs without anyone decrypting anything. Bulletproofs+ range proofs stop someone from committing to a negative value and minting coins out of thin air. Amounts use 6 decimals, so 1 TARI = 1,000,000 base units, which is why my balance read 199986762.

What stealth adds

Stealth removes the last thing confidential leaves visible: which vault. For every output, the sender does a Diffie-Hellman exchange with the recipient's public key and derives a one-time public key. The output stores that key plus an ephemeral nonce. Only the recipient can work out the matching private key, so an observer cannot link the output to anyone's real key. Each output also carries an encrypted payload (XChaCha20-Poly1305) holding the value, the mask, and an optional memo of up to 255 bytes. The mask matters most: without it the recipient could not spend the output later.

Stealth outputs also have a feature confidential vaults don't have: a spend authorization. An output can be locked by a one-time key, by a Merkle root over a set of spend conditions (a MAST condition tree), or by both. To spend through the tree you reveal exactly one leaf plus an inclusion proof. The other branches never appear on chain.

What this looked like in Phantom Drop

Phantom Drop is my small project from the October build contest: it turns an amount of TARI into a secret link. It uses only native stealth features, no custom template. Each envelope is a stealth UTXO locked by a condition tree with two leaves:

  • claim: a signature from a one-time claim key, before an expiry epoch

  • refund: a signature from a one-time refund key, at or after the expiry epoch

On 2026-10-12 I ran the whole flow on Esmeralda. I sealed two 5 TARI envelopes funded from my stealth UTXOs (tx 43361128...224805, epoch 12160). I opened one into a brand-new key with zero balance and it received 4.95 TARI (c9855b67...206fd0). A second open of the same link was rejected: "already opened or reclaimed". After expiry at epoch 12161, the other one came back to me through the refund leaf (06d79409...23f8fb).

None of that would work with a confidential resource. A confidential balance sits in a vault that belongs to a component. A Phantom Drop envelope has no owner at all, just a 32-byte root. That is only possible because stealth funds are UTXOs with spend conditions, not vault balances.

The repo's end-to-end test checks this against the real engine. The sealing transaction's JSON contains no amount, no claim or refund key, no expiry and not the sender's account. The claim transaction does contain the one-time claim key (that leaf had to be revealed), and it still doesn't contain the refund key. So the unused branch really does stay hidden, and the test checks it.

What still leaks (and I saw all of it)

The docs' threat model is honest, and every point on it showed up in my run:

  • Fees are public. Fees are paid in a known amount, so each Phantom Drop transaction has a revealed 0.05 TARI fee output. That's why 5 TARI in becomes 4.95 out.

  • Signing with your account key links you. If you fund from an account withdrawal, the transaction is tied to your account. Phantom Drop funds from stealth UTXOs by default and only offers account or faucet funding as an explicitly less private option.

  • The transaction graph is public. A claim spends the envelope UTXO, so the seal and the open are linked, even though neither one names a person.

  • Script-path spends reveal the leaf. That's why the claim leaf holds a one-time key and not anyone's account key.

There's also a practical cost on the wallet side. Since nothing on chain says "this belongs to you", the wallet has to scan new outputs and test each one against its key. My CLI scans the indexer with the view key. In practice the public indexer rejected large scan pages, so I had to drop the per-shard page size to 500 and resume interrupted streams. Privacy has a cost, and part of that cost lands on whoever writes the scanner.

So which one should you pick?

The docs give a short decision path, and after building with it I agree:

  1. If outsiders must be able to audit the asset, go public.

  2. If balances must be hidden but the asset still works with public components and known accounts, use confidential.

  3. If the owner itself is sensitive (payments, bearer assets, anything where linking two transactions to one party is a problem), use stealth.

  4. If an auditor must see hidden amounts, add a view key to either type. It lets the holder decrypt amounts but not spend.

Last thing: the privacy of a whole system is the privacy of its leakiest part. Find the places where value has to be revealed (the fee, a mint, a public pool) before you worry about the rest.

The code and full terminal capture of my Esmeralda run are in my repo on GitLab (hycorange/phantom-drop, docs/live-run-output.txt).

Sources: Tari Ootle docs: Privacy (ootle.tari.com/concepts/privacy/), Stealth Transfers (ootle.tari.com/guides/stealth-resources/), Templates and Assets (ootle.tari.com/concepts/templates-and-assets/), Resources (ootle.tari.com/guides/resources/), plus my own Esmeralda run on 2026-10-12.

Subscribe to Orange Soda

notes on web3 tools, written while learning