For the October Build Contest I shipped Phantom Drop: a small tool that turns an amount of TARI into a secret link. Whoever holds the link can open it and receive the funds privately on a brand-new zero-balance key — no prior balance required. If nobody opens it before an expiry epoch, I can reclaim through a refund branch that stayed hidden the whole time.
The part that surprised people most was not the haunted demo. It was this line in the README: no custom template. Phantom Drop never deploys WASM. It only talks to the built-in Account template and to native stealth transfer instructions. That is the piece I want to unpack here, because it changes how you think about "airdrops" and "escrow" on Ootle.
The Account is a seam, not a vault for everything
The Templates and Assets page singles out the Account template for a reason. It is where most user funds actually sit, and it is the seam between public and private money. Depositing into an account vault is a public move. Converting a bucket into stealth UTXOs is the private one. Most privacy questions reduce to which side of that boundary a transfer happens on.
TARI itself is a stealth resource. Its funds live as UTXOs with one-time addresses, not as vault balances. So when you "have TARI in your account", part of the story is usually an account that can withdraw into a stealth transfer, and part of it is stealth UTXOs your wallet already owns and has to scan for. Phantom Drop uses both sides on purpose.
Three funding modes, three privacy postures
When Phantom Drop seals envelopes it offers three funding sources:
-
Faucet (testnets): claim test funds into the sender account, then withdraw into the seal. Convenient, and loudly linked to your account.
-
Account: call
withdrawon your Account component, then feed that bucket into a stealth transfer that creates the envelopes. The withdraw is signed with your account key, so the seal transaction is linked to you even though the envelopes themselves have no owner. -
UTXOs (the default): spend the sender's own stealth UTXOs straight into the envelope outputs, with change returning as a fresh stealth UTXO. No account method is called. This is the private path the docs describe as holder-to-holder stealth transfer.
I ran the live Esmeralda flow on 2026-10-12 with --fund utxos. The seal transaction (43361128…224805, epoch 12160) created two 5 TARI envelopes. Separately, the e2e test seal_from_private_utxos_and_on_chain_privacy checks that the on-chain JSON for a sealed envelope contains no amount, no claim key, no refund key and no expiry (with a positive control that those fields show up once you leave the UTXO side). That is what "native stealth" buys you when you stay on the UTXO side of the seam.
A stealth UTXO is a bearer instrument
Privacy in Applications puts it cleanly: a stealth UTXO is a bearer instrument. Whoever can satisfy its SpendAuthorization controls the value, and there is no registry naming an owner. A bearer token is just a resource whose outputs are key-path-only stealth UTXOs.
Spend authorization has three shapes:
-
Key: a one-time stealth public key. Spend with a signature (key path).
-
Script: a Merkle root over a set of spend conditions (a MAST). Spend by revealing one leaf plus an inclusion proof (script path).
-
KeyAndScript: either path works.
Phantom Drop envelopes use the script path. The output stores a 32-byte condition root. There is no account that "owns" the envelope. There is only whoever can open the right leaf.
The whole "airdrop contract" is two leaves
Each envelope is a two-leaf condition tree. The code in envelope.rs is almost a straight reading of the Stealth Transfers guide:
-
Claim leaf: signature from a one-time claim key, AND
BeforeEpoch(E). -
Refund leaf:
AfterEpoch(E), AND signature from a one-time refund key.
Only the root goes on chain. When Alice opens the link, she reveals the claim leaf and its inclusion proof. The engine checks the root, evaluates that leaf, and never learns that a refund branch existed. When I reclaim after expiry, I reveal the refund leaf instead. The unused branch stays hidden forever.
That is the HTLC pattern the docs show for atomic swaps and escrow, minus a custom template. Timelock predicates (BeforeEpoch / AfterEpoch) are built-ins. Access-rule atoms are built-ins. Tree construction and verification are native — a template never builds or verifies a tree. So the "contract" for a claimable airdrop link is just how I arrange those atoms before I submit a stealth transfer.
Optional riddle locks fit the same model. The claim key can be derived from Argon2id(answer) instead of a random seed. The link can be posted in public ("first to solve it wins") without letting someone who only has the link front-run the claim. Wrong answer → wrong key → AccessDenied. Right answer re-derives the committed root.
Zero-balance open is a fee trick, not a special privilege
On Esmeralda I opened the first link into a brand-new key with zero balance (c9855b67…206fd0). The recipient ended with 4.95 TARI. A second open of the same link failed with this envelope has already been opened or reclaimed. After epoch 12161 the other envelope came back through the refund leaf (06d79409…23f8fb), also 4.95.
The 0.05 TARI gap is the public fee. Fees are a revealed amount by design. The claim transaction is authorized by the envelope's one-time claim key and pays that fee out of the envelope itself, so the recipient never needs gas money first. That is the whole "airdrop to someone who has never used Tari" trick. It is not a special Account method. It is a stealth spend that takes value from the input UTXO and puts a slightly smaller stealth output into the recipient's one-time address.
Replay is handled by the UTXO model: the first valid spend consumes the output. The engine does not need a template-level "claimed" flag.
What still leaks (and why the Account seam matters)
The threat model is the same one I wrote about when comparing confidential and stealth resources, but the Account seam makes the trade-offs concrete for airdrops:
-
Fees are public. Every Phantom Drop transaction shows a 0.05 TARI fee output.
-
Signing with your account key links you. Funding through
withdrawties the seal to your Account. Stay on--fund utxosif the airdrop itself should not advertise the sender. -
The transaction graph is public. Seal and open share a spent UTXO, so those two transactions are linked even though neither names a person.
-
Script-path spends reveal the leaf. Put one-time keys in the leaves, not account keys. The claim leaf then exposes a key nobody can tie back to an identity. That is why Phantom Drop never puts the sender's account key in the tree.
There is also a wallet-side cost. Because nothing on chain says "this belongs to you", the recipient's wallet (or my CLI) has to scan new outputs and test each one against a view key. On Esmeralda the public indexer rejected large scan pages, so I dropped the per-shard page size to 500 and resumed interrupted streams. Native stealth is free of template deploy costs, but it is not free of scan costs.
When you still want a template
Phantom Drop's scope is deliberately narrow: seal, open, reclaim, optional riddle. The moment you need shared mutable state — a global claim counter, a whitelist component, a pause flag, a pool many people deposit into — you want a template with vaults and access rules. The Account seam and stealth UTXOs do not replace that. They give you a private payment and escrow layer that templates can sit on top of.
For pure airdrop-style claim links, though, deploying WASM would have been ceremony. The engine already knows how to hide amounts, hide owners, lock value behind a Merkle root, enforce epoch bounds and consume a UTXO exactly once. Phantom Drop is mostly key derivation, memo packing and the courage to leave the Account vault alone unless I truly need it.
What I would do again
-
Start from stealth UTXOs, not from an Account withdraw, unless I am fine being linked as the sender.
-
Put every spend policy in the condition tree up front. If a branch is not in the root, it does not exist later.
-
Use one-time keys in every leaf that might be revealed.
-
Pay the recipient's fee from the envelope so "zero balance" is a real claim path, not a docs dream.
-
Test the negative paths against the real engine: double-open, wrong riddle, early refund, late claim. Phantom Drop's five end-to-end tests all run in-process against
tari_template_test_toolingwith real Bulletproofs and condition checks.
Native stealth does not mean "no rules". It means the rules live in the UTXO, not in a component you deployed. Once I internalised that, airdrops without a custom template stopped feeling like a hack and started feeling like the Account model's intended edge.
Sources: Tari Ootle docs — Privacy, Stealth Transfers, Privacy in Applications, Templates and Assets — plus Phantom Drop's Esmeralda run on 2026-10-12 and the public repo at gitlab.com/hycorange/phantom-drop.
Official docs: Tari Ootle guide: Accounts