Key takeaways
- Taint can be a fraction. In one meaning used in the Bitcoin community, which Möser, Böhme, and Breuker recorded in 2013, it is the percentage of a holding that comes from a known theft or scam.
- Four rules decide how that fraction spreads: poison (all-or-nothing), haircut (proportional), FIFO, and LIFO (both ordering by deposit). The choice changes the result. In one replay of a 2014 theft, FIFO tainted 18,208 accounts and haircut tainted 1,429,794.
- As taint rules, all four were defined for UTXO coins, which carry their own signature-chain ancestry. A TRON account holds one mutable balance per asset. There is no per-coin ancestry to follow, so commingling happens by default, with no mixer involved.
- FIFO itself comes from this situation. An 1816 English court applied the first-in-first-out principle to a running bank account. On an account chain, taint reasoning returns to that world of proportion, ordering assumptions, and stated confidence.
When stolen funds pass through a busy address, some later withdrawal carries the dirty value onward. Someone has to decide which withdrawal, and how much of it. The research on taint tracking answers that question with a small set of formal rules.
The four this article covers are poison, haircut, FIFO, and LIFO. Researchers defined them as taint rules for Bitcoin, where each coin carries a verifiable ancestry. TRON is built on a different foundation. An account holds one balance per asset, and inbound transfers of that asset merge into it. That difference changes what “taint” can mean.
This chapter covers the models themselves and what survives of them on an account chain. Following the Money gives the practical hop-by-hop trace, and this chapter gives the arithmetic underneath it.
Taint is a percentage with real-world teeth
Exchanges have acted on taint since at least 2012, and one meaning of the term in the Bitcoin community is a precise percentage. Möser, Böhme, and Breuker’s 2013 study of Bitcoin laundering tools records it as “another notion of taint in the Bitcoin community”, beside the correlation measure of a taint-analysis tool. This notion of taint “refers to the percentage of bitcoins, that come from a known theft or scam and have been blacklisted by popular exchange markets.” The same passage records the consequence. In 2012, Mt.Gox froze customer accounts holding coins that could be directly related to such an incident.
Two things follow for an investigator. A taint judgment is a quantity, so any tracing method needs a rule for how that quantity divides when tainted and clean value meet in one transaction. And because exchanges have frozen accounts on taint, as Mt.Gox did in 2012, the choice of division rule has practical weight. It decides whose funds get stopped.
The coin-lineage assumption underneath every model
The classical models work because a Bitcoin coin carries its own ancestry. The Bitcoin whitepaper defines it directly: “We define an electronic coin as a chain of digital signatures. Each owner transfers the coin to the next by digitally signing a hash of the previous transaction and the public key of the next owner.” Holdings exist as unspent transaction outputs (UTXOs). These are discrete pieces of value newly created from a transaction’s inputs, each with a verifiable history.
Tironsakkul, Maarek, Eross, and Just describe the hard case in their comparison of taint-analysis methods. It arrives “when the targeted inputs are combined with other unrelated inputs into new output(s)”, and it becomes difficult to say how the tainted value distributes across the new outputs. Every taint model is a rule for resolving that ambiguity at the level of individual coins.
The four rules, side by side
Each model is one sentence long, and the differences between them decide the result. Möser, Böhme, and Breuker defined poison and haircut as blacklisting policies in a 2014 paper.
Poison. Any tainted input taints every output, completely. Anderson, Shumailov, and Ahmed give a worked example in Making Bitcoin Legal: a transaction with three stolen bitcoin and seven good bitcoin as inputs “has an output on ‘poison’ of ten stolen bitcoin.” Taint spreads explosively and never dilutes. (The “poison” here is a taint-propagation rule. It has nothing to do with the lookalike-address attack covered in Address Poisoning.)
Haircut. Taint spreads proportionally, and each output inherits the tainted fraction of the input mix. The same transaction yields “ten bitcoin each of which is marked as 30% stolen.” No output of that transaction escapes, but each one dilutes.
FIFO. First-in, first-out: each withdrawal is matched against the earliest unspent deposit. Poison and haircut are spreading rules, and FIFO is an ordering rule. It assigns specific outgoing value to specific incoming value by sequence.
LIFO, last-in, first-out, is the mirror ordering. It matches each withdrawal against the most recent deposit, and Tironsakkul et al. proposed it as a taint method in 2019.
Making Bitcoin Legal states that, until its FIFO proposal, poison and haircut were the two algorithms used for taint tracking in the blockchain. The 2014 paper that defined those two had already imagined a “FIFO” policy, in which the order of a transaction’s inputs decides which outputs are affected. The model space keeps growing. Beside LIFO, Tironsakkul et al. proposed TIHO (“Taint In, Highest Out”), which gives priority to the higher-value outputs when it distributes tainted inputs. In the paper’s example only the highest output is tainted. This article works with poison, haircut, FIFO, and LIFO.
The model choice changes the answer many times over
The rules do not lead to roughly the same result. Anderson, Shumailov, and Ahmed coded FIFO and haircut tracking and ran both from the genesis block to 2016, starting from 132 well-publicised bitcoin crimes. The 2014 Flexcoin hack tainted 18,208 accounts by 2016 under FIFO, and 1,429,794 under haircut. The 2012 Linode theft of 46,653 bitcoin tainted 371,544 addresses (about 0.67% of the total) under FIFO, against 2,694,051 (almost 5%) under haircut. Overall, they found most Bitcoin accounts carried zero taint under FIFO (slightly over 72% of accounts with a nonzero balance), while under haircut fewer than 24% escaped taint entirely.
The rules also differ in what they preserve. FIFO tracking is reversible, and you can run it forward from a reported theft or backward from a coin you have been offered. Haircut is not reversible, because it loses information.
The same authors name a cost of precision, writing that efficient coin tracing may damage fungibility, the property that one unit of a commodity can replace another. A chain where every unit carries a taint history is a chain where units are less interchangeable.
FIFO comes from a bank account
The oldest of these rules predates Bitcoin by nearly two centuries, and it was stated for the situation TRON presents. Devaynes v Noble, known as Clayton’s Case, was decided in 1816 and dealt with the failure of a banking firm. Mr Clayton claimed £453 from the estate of a deceased partner, and the claim turned on which earlier payments into his running account the later withdrawals had discharged. Sir William Grant, Master of the Rolls, dismissed the claim. Making Bitcoin Legal describes the case as a court tackling “the problem of mixing good and bad funds through an account after a bank went bust”. Grant stated the rule:
Grant framed the rule in terms of accounts, as a principle already in use: “Upon that principle, all accounts current are settled, and particularly cash accounts.” The rule belongs to an account, a mutable running balance with no coin identity. It was later borrowed into UTXO coin-tracing, where Making Bitcoin Legal grounded FIFO in Clayton’s Case and coded it as a taint algorithm. An investigator applying FIFO to a TRON account is returning the rule to its original setting. The rule is not universal in law. A 2024 practitioners’ article notes a recent trend to disapply it where several claimants trace into a single fund.
What survives on a single mutable balance
TRON’s protocol is account-based, and an account record holds one TRX balance. A TRC-20 token’s balances are read from its own contract and are not stored in the account record. A TRX transfer debits the sender’s balance and credits the recipient’s. An ordinary transfer has no set of discrete outputs and no signature chain per unit of value. The whitepaper’s “chain of digital signatures” definition supplies those properties, and poison, haircut, and coin-level FIFO consume them. TRON’s ordinary transfers have neither. (The TRON Account Model covers how TRON accounts come into existence and who controls them.)
As a result, an adversary does not have to arrange commingling. Three deposits into one TRON address merge into a single number the moment they land. Deliberate commingling as a paid obfuscation service is its own subject, covered in When the Trail Goes Cold. On an account chain the balance itself is the commingler. It is present in every busy address, and it requires no adversarial intent.
With no coin to follow, three handles on taint remain. Each is already visible in the models above:
- Proportion. The haircut logic survives intact, because it needed only amounts and never coin identity. If a balance received 30% of its value from a flagged source, a proportional share of any withdrawal can be attributed accordingly. This is taint in the percentage sense Möser, Böhme, and Breuker recorded, applied to a balance instead of a coin.
- Ordering. FIFO and LIFO survive as assumptions imposed on the deposit and withdrawal sequence, which is what Clayton’s Case did to a bank ledger. The investigator chooses the matching rule and must state that choice, because it is a convention the investigator picks.
- Confidence. Because the matching rule is an assumption, the output is an estimate that degrades hop by hop as balances re-commingle. An account-chain taint judgment is a statement of proportion and confidence, not a coin-level proof, and it should be presented that way.
An account-chain taint finding should therefore be explicit about all three: what share, under which ordering assumption, with what confidence remaining after how many hops. Whatever share the investigator calculates, it attaches to addresses and the entities behind them. The ceiling on turning that into a claim about a person is the subject of From Finding to Evidence.
The models are worth knowing even where they cannot run natively. They are the vocabulary of the research on taint tracking, and the Flexcoin and Linode numbers are a permanent caution. When a report says funds are “tainted,” the first question to ask is which rule produced that word.
Sources
- Nakamoto, “Bitcoin: A Peer-to-Peer Electronic Cash System” — the primary definition of a coin as a chain of digital signatures, the lineage assumption all coin-level taint models depend on.
- Möser, Böhme & Breuker, “An Inquiry into Money Laundering Tools in the Bitcoin Ecosystem” (IEEE eCrime 2013) — pre-publication copy of the paper for the 2013 eCrime Researchers Summit. It records “another notion of taint in the Bitcoin community”, the percentage of bitcoins “that come from a known theft or scam and have been blacklisted by popular exchange markets”, and the 2012 Mt.Gox account freezes.
- Möser, Böhme & Breuker, “Towards Risk Scoring of Bitcoin Transactions” (Financial Cryptography 2014) — the paper that defines the “poison” and “haircut” blacklisting policies and imagines a “FIFO” policy “where the order of the inputs determines which outputs are affected by blacklisting.”
- Anderson, Shumailov & Ahmed, “Making Bitcoin Legal” (Security Protocols Workshop XXVI, Cambridge, 2018) — primary source for the poison/haircut worked examples, the statement that poison and haircut were the two algorithms in use, the FIFO proposal and its Clayton’s Case grounding, the FIFO and haircut runs from 132 well-publicised bitcoin crimes with the Flexcoin and Linode measurements, FIFO reversibility, and the statement that efficient coin tracing “may damage the fungibility of bitcoin”.
- Tironsakkul, Maarek, Eross & Just, “Probing the Mystery of Cryptocurrency Theft: An Investigation into Methods for Taint Analysis” (arXiv:1906.05754, PDF) — working paper (preprint, under review as of December 2019) that compares poison, haircut, and FIFO and proposes two new tainting methods, LIFO and TIHO. Its FIFO definition cites Making Bitcoin Legal, and its poison and haircut definitions cite Möser, Böhme & Breuker (2014).
- Lightman KC & Comiskey, “The rule in Clayton’s Case: its application in non-banking relationships,” Butterworths JIBFL, May 2024 (Serle Court) — a practitioners’ article on Devaynes v Noble (Clayton’s Case) (1816) 1 Mer 529. It summarises Mr Clayton’s £453 claim and its dismissal, quotes an extract of Sir William Grant MR’s judgment with the first-in-first-out rule for running accounts, and notes a recent trend to disapply the rule where multiple claimants trace into a single fund. The law report itself was not read: CommonLII and the Wayback Machine refused automated fetches on 17 November 2026.
- TRON Developer Hub, “Accounts and keys” — primary protocol documentation of TRON’s account model: “Each account holds balances of TRX and other tokens”, and “TRC-20 balances are not stored directly in the account object; query the Token contract or an index service.”
- tronprotocol/java-tron — Tron.proto at GreatVoyage-v4.8.2.4 — the
Accountmessage with its singleint64 balance, and theTransaction.rawmessage, which carries a contract and no inputs or outputs. - tronprotocol/java-tron — TransferActuator at GreatVoyage-v4.8.2.4 — a TRX transfer as two balance adjustments: a debit to the sender and a credit to the recipient.