Professional · 12 How a Bitcoin coin can carry USDT
Taproot assets explained.
Taproot Assets is a protocol for issuing and moving assets, such as the USDT stablecoin, on Bitcoin. A record of who owns how many units is hidden inside an ordinary Taproot output, so moving the coin moves the asset, and the proof of ownership is kept off the chain by its owner. Over Lightning, the asset is swapped for bitcoin at both ends of a route and the middle carries only bitcoin.
01 The asset
An asset here is a record of who owns how many units, carried by an ordinary bitcoin output
Taproot Assets is a protocol from Lightning Labs, first announced in 2022 under the name Taro. An asset in it is a record that says: this many units of this asset belong to this key.
The record does not live on the chain. What the chain holds is an ordinary Taproot output with some bitcoin in it, and that output's key commits to the record. Whoever controls the output controls the asset, and spending the output is how the asset moves. The bitcoin itself does the carrying: the output needs a small amount of it, 1,000 sats by default in Lightning Labs' software, because Bitcoin does not allow empty outputs. In January 2025 Tether announced it would issue USDT this way, on Bitcoin and over Lightning.
USDT on Bitcoin and over Lightning, through Taproot Assets, is planned. It is not in the app today, and this page describes the protocol, not an OnlyBits feature.
Look underneath
The protocol is specified in a set of draft documents by Olaoluwa Osuntokun, kept in the bip-tap branch of a fork of the BIPs repository. None has a BIP number yet; each says BIP: ???.
- bip-tap: the asset tree, the leaf format, asset IDs, issuance and transfers.
- bip-tap-ms-smt: the merkle-sum sparse merkle tree.
- bip-tap-vm: how an asset transfer is checked as a virtual Taproot transaction.
- bip-tap-proof-file: the off-chain proof file.
- bip-tap-addr: asset addresses (
tapbc1...on mainnet). - bip-tap-universe: Universe servers.
- bip-tap-psbt: asset fields in PSBTs.
The reference implementation is tapd (github.com/lightninglabs/taproot-assets), which runs next to lnd. It has accepted mainnet assets since v0.3.0. Its constant DummyAmtSats = 1_000 is the bitcoin amount it puts in each output that carries assets.
The draft defines two asset types: 0, a normal divisible asset such as USDT, and 1, a collectible that cannot be split or merged.
02 In the tree
The asset record sits as a leaf in the output's Taproot tree, so the coin looks like any other bc1p output
A Taproot output key is built from an internal key and an optional tree of scripts, nudged together by a hash called the tweak. Taproot explained covers that construction.
Taproot Assets puts its record into that tree as one extra leaf. The leaf is not a script anyone runs: it holds a marker that says "taproot-assets", a version, and the root of the asset record. Bitcoin treats it as one more hidden branch. The output key commits to the leaf through the tweak, exactly as it would commit to a spending rule, and the chain only ever sees the output key. Nothing on the chain says the coin carries an asset, and the coin is spent with an ordinary signature for its key.
Start with an internal key P, the key of whoever holds the output.
Build a script tree with the asset commitment as one leaf. A second leaf, an ordinary script, is optional.
Hash P together with the tree's root. The result is the tweak, t.
Nudge P by the tweak: Q = P + t·G. Q is the output key, and it now commits to the asset leaf.
Only Q goes on the chain. It is 32 bytes, like every other Taproot output key, and it does not reveal that a tree exists.
Look underneath
The leaf, as tapd builds it
# commitment versions 0 and 1, 73 bytes leaf_script = version(1) || taproot_asset_marker(32) || asset_tree_root(32) || root_sum(8) # commitment version 2 leaf_script = sha256("taproot-assets:194243") || version(1) || asset_tree_root(32) || root_sum(8) taproot_asset_marker = sha256("taproot-assets") leaf_hash = H_TapLeaf( 0xc0 || compact_size(leaf_script) || leaf_script )
tapd builds it with txscript.NewBaseTapLeaf, so the leaf version is the ordinary tapscript one, 0xc0. The draft BIP leaves the leaf version as ??? and notes that, to Bitcoin, the leaf is just an unparseable script. Where the draft and commitment/tap.go differ, this page follows the code.
One commitment per output
The asset leaf must be at depth 0 (the only leaf) or depth 1 (one sibling). At depth 1 the proof also reveals the sibling's preimage, so a verifier can check that it is not a second asset commitment. That rule stops one output from showing different asset records to different people.
03 The sums
The asset record is a tree that adds up the units at every branch, so a verifier can check that none were created
The leaf from section 02 holds the root of a merkle-sum tree: a hash tree where every branch also carries the total amount of everything below it.
Each holding is a leaf with an owner key and an amount, such as 300 units for one key and 200 for another. Each branch hashes its two children together with the sum of their amounts, so the root carries both a hash and a total. Holdings are grouped first by asset, under the asset's ID, so one output can carry several assets. Because the totals are part of the hashes, nobody can change an amount without changing the root. When units move, a verifier can check that the totals going out equal the totals coming in.
Two holdings of the same asset: 300 units for key K1 and 200 units for key K2. Each is a leaf.
A branch hashes the two leaves together with the sum of their amounts, 500.
That branch is the asset's own tree. It goes into the top tree under the asset's ID, carrying its sum with it.
The top root's hash and sum are what the asset leaf in section 02 holds. Change any amount, and that root changes.
A transfer that spends these 500 units must create outputs that also add up to 500. A verifier compares the sums and rejects anything else.
Look underneath
bip-tap-ms-smt
A merkle-sum sparse merkle tree is a key-value map laid over a binary tree of depth 256, one level per bit of a sha256 key. Empty leaves have a value of zero and their hashes are precomputed per level, so a tree with three entries is as cheap to prove into as one with three million, and it can prove that a key is absent. Sums are 8-byte big-endian integers.
leaf_digest = sha256( value || sum ) branch_digest = sha256( left_digest || right_digest || left_sum + right_sum )
Two levels, from bip-tap
top tree: key = asset_id (or the asset group key)
value = taproot_asset_version || asset_id_tree_root || asset_sum
asset tree: key = asset_script_key (or asset_id || asset_script_key)
value = the serialized asset leaf (TLV)
The asset leaf is a TLV record carrying, among others, the version, the asset ID or genesis, the type, the amount, the script key that owns it, the witnesses of the previous asset inputs, and an optional split_commitment_root used when a transfer splits units across several outputs.
04 Issuance
An issuer creates an asset in a genesis output, and the asset ID is derived from a coin that can only ever be spent once
An asset starts with a genesis transaction. The issuer, Tether in the case of USDT, spends one of its own bitcoin outputs and creates an output whose tree holds the new units.
The asset ID is a hash of the outpoint the genesis transaction spends, the asset's name tag, a hash of its metadata, the output index and the asset type. An outpoint is a reference to one exact earlier output, and Bitcoin lets each one be spent exactly once. So no one else, the issuer included, can ever produce a second genesis with the same ID. Copying the name and metadata gives a different asset. A receiver checks that the units they are offered trace back to the asset ID they expect, which is how a fake USDT is told apart from the real one.
Look underneath
asset_id = sha256( genesis_outpoint || sha256(asset_tag) || asset_meta_hash
|| output_index || asset_type )
genesis_outpoint # first input of the genesis tx, Bitcoin wire format, 36 bytes
asset_tag # usually derived from the human-readable name
asset_meta_hash # 32 bytes; the genesis proof reveals the preimage
output_index # 4 bytes, big-endian
asset_type # 1 byte: 0 normal, 1 collectible
Issuing more later
An asset without a group key is issued once and never again. An asset with an asset_group_key can be issued in further tranches, each with its own asset ID, and every tranche under the same group key counts as the same asset. The group key is a key the issuer holds, so whoever holds it can mint more. Taproot Assets v0.6 added better support for grouped assets, after Tether's announcement.
The genesis proof must also show that no other output of the genesis transaction carries a second commitment to the same asset.
05 Proofs
The owner holds a proof file that traces the units back to issuance, and a receiver checks it against the chain
The chain records bitcoin transactions, not asset balances. Proof that a set of units is real and belongs to someone is kept in a proof file, held by the owner.
A proof file is a list of steps, one per transaction the units passed through, starting at the genesis transaction. Each step holds the transaction, the block header it was mined in, a merkle proof that the transaction is in that block, and the asset tree before and after. A receiver walks the file from the start: each transaction must be in the chain, each must spend the output the previous step left the units in, and each step's sums must balance. If every step checks out, the units are real and the last step's key owns them. The receiver needs a source of block headers to check against, and nothing else.
Look underneath
bip-tap-proof-file
Each proof is a TLV record. Among its fields:
prev_out: the outpoint the anchor transaction spends.block_header: the 80-byte header of the block that contains it.anchor_txandanchor_tx_merkle_proof: the transaction and its merkle path to the header's root.taproot_asset_asset_leaf: the asset as it stands after this step.taproot_asset_inclusion_proofs: the MS-SMT and tapscript proofs from the leaf up to the output key.taproot_exclusion_proofs: proof that the transaction's other Taproot outputs carry no copy of the commitment.meta_revealand the genesis fields, in the first step.
The file is a version number followed by the proofs, each with a checksum SHA256(prev_hash || proof_tlv_bytes), so the steps are hash-chained: removing or reordering one breaks every checksum after it.
06 Universes
Universe servers store and share proofs and issuance records, but they cannot move or create anyone's units
Proof files have to reach the people who need them. A Universe is a server that stores proofs and the issuance history of assets, and syncs them with other Universes.
A Universe answers questions such as "which genesis transactions created this asset, and how many units in total?" and "here is the proof for this output". Its records are themselves a merkle-sum tree, so a Universe can show the total issued for an asset in a form that can be checked. It is a library, not an authority. A receiver still checks every proof against the chain, so a Universe that serves a wrong proof is caught, and one that goes offline loses no one's units as long as the owner has their own copy. What a Universe can do is refuse to serve a proof, and it learns which outputs are asked about.
On-chain transfers also use a proof courier, named in the receiver's asset address, to deliver the new proof from sender to receiver. A Universe can play that role.
Look underneath
bip-tap-universe
Root Universe, per asset (asset_id, or sha256(asset_group_key)):
key = sha256( outpoint || script_key )
value = universe_proof_leaf # the issuance proof
sum_value = units issued by that leaf
The root's sum is the total issued for the asset. The draft also describes Universes that track transfers, and "Pocket Universes" where a trusted single or federated party batches many transfers into one on-chain transaction; the latter trades the self-checking property for scale.
Addresses
A Taproot Assets address is bech32m with prefix tapbc on mainnet. It encodes the asset ID, the receiver's script key and internal key, the amount, and a mandatory proof_courier_addr, a URI such as universerpc:// or hashmail://.
07 Sending
Sending on chain spends the output that carries the asset and creates new outputs for the recipient's units and the change
An on-chain transfer is an ordinary bitcoin transaction. It spends the output whose tree holds the units and creates new Taproot outputs whose trees hold the new balances.
Take Alice holding 500 USDT in one output and sending 200 to Bob. The transaction spends her output and creates two: one whose tree gives 200 units to Bob's key, and one whose tree gives the 300 left over back to Alice. Each new output needs its own 1,000 sats, and the transaction pays a normal bitcoin fee, so Alice adds a plain bitcoin input to cover both. Then she sends Bob his proof file, which is her file plus one step for this transaction. Bob checks it, and the units are his once the transaction confirms.
Alice holds an output with 1,000 sats whose tree gives 500 USDT to her key.
She builds a bitcoin transaction that spends that output.
It creates two outputs. One tree gives 200 units to Bob's key, the other gives 300 back to Alice.
Each new output needs 1,000 sats and the miners need a fee, so Alice adds a plain bitcoin input of 1,500 sats.
The sums balance, 500 in and 500 out. Alice sends Bob the proof file with one new step for this transaction.
Look underneath
Two signatures for one move
The bitcoin output is spent by a key-path signature for its output key, as for any Taproot coin. The asset leaf has its own owner, the asset_script_key, and moving the units needs an asset witness from that key. bip-tap-vm checks it by mapping the asset inputs and outputs onto a one-input, one-output "virtual" Taproot transaction and validating that with the normal Taproot rules.
Splits
When units are split, the recipient's new asset leaf carries a split_commitment_root: an MS-SMT, keyed by sha256(output_index || asset_id || asset_script_key), of every piece of the split. The change carries a split_commitment proof pointing into it instead of its own witness. One witness authorises the whole split, and the sums inside it are what a verifier compares.
Amounts
1,000 sats per carrying output is tapd's default; the draft only requires an amount above the dust limit. The 1,500 sat input and 500 sat fee are illustrative, and a real fee depends on size and the fee rate. Some transfer setups have the receiver's software build the output itself from an address, which the draft calls a non-interactive send.
08 Lightning
Over Lightning, the asset is swapped for bitcoin at the first hop and back at the last, and the middle carries only bitcoin
Assets can also sit in Lightning channels. A channel's funding output gets one more leaf, the asset commitment, and the two sides re-sign the asset balance alongside the bitcoin balance with every payment.
Few nodes have asset channels, so a payment does not need the asset all the way. The node at each end of an asset channel, called an edge node, converts. Before the payment, the receiver's edge node agrees a price for turning sats into the asset, and the sender's edge node agrees a price for turning the asset into sats. These are RFQ quotes, short for request for quote. The payment then crosses the ordinary Lightning network in bitcoin. Lightning explained covers how that part works.
Alice and Bob each have a channel holding USDT, each to an edge node. Ordinary Lightning nodes sit between the two edge nodes.
Bob wants 100 USDT. His edge node quotes 95,000 sats for it, and Bob's invoice asks for 95,000 sats.
Alice's edge node quotes how much USDT it wants for paying that invoice, including routing fees: 100.2 USDT for 95,050 sats.
Alice offers 100.2 USDT in her channel. Her edge node forwards 95,050 sats onward.
The hop in the middle forwards 95,000 sats and keeps 50 as its fee. It handles bitcoin, as in any Lightning payment.
Bob's edge node offers 100 USDT in Bob's channel. Bob reveals the payment secret, it travels back, and every hop settles.
The hops in the middle forward bitcoin HTLCs like any others and do not learn that an asset was involved. The edge nodes do: each sees the asset, the amount, and the rate it quoted. They compete on their spread, and each sets its own rates; the protocol does not set them.
Paying and receiving USDT over Lightning is part of the plan. Which edge nodes the app would use, and how it would show quotes, is not decided, and this section describes the protocol only.
Look underneath
Asset channels
lnd runs the bitcoin side of the channel as a custom Taproot channel and stores opaque blobs that tapd fills with the asset state. The funding output's tapscript tree gets one extra leaf, the Taproot Asset commitment, beside the usual channel scripts. Each HTLC carrying asset value has custom records: 65536 for asset ID and amount, 65538 for the RFQ quote ID it redeems.
RFQ
Quotes are negotiated over lnd's custom peer messages: a buy or sell Request, answered by Accept or Reject. Each session has a 32-byte ID whose last 8 bytes are used as a short channel ID alias, so an invoice can route to the edge channel through that alias and the edge node's HTLC interceptor can match the payment to the quote. The edge node gets its price from a price oracle it chooses, and by default accepts a rate within 5% (50,000 ppm) of the oracle's. Quotes expire.
# paying an invoice with an asset (sell order)
wallet -> edge: SellRequest(asset, max msat)
edge -> wallet: SellAccept(rate R)
wallet: route HTLC to edge via the quote's alias SCID
edge: check HTLC against quote, convert msat to units at R
The figures in the picture are illustrative and do not reflect a real exchange rate or real fees.
09 Two attacks
A spender cannot create units, because the sums must balance, and cannot spend units twice, because Bitcoin spends each output once
Two ways an owner could cheat, and what stops each.
Spending more than you have. Suppose Mallory holds 500 units and builds a transfer giving 300 to Bob and 400 to herself. The bitcoin transaction is valid: Bitcoin does not read asset leaves. But the outputs add up to 700, and when Mallory sends Bob his proof, Bob's software adds the sums and rejects it. So does every later receiver, since each one checks the whole history. The units exist only as long as every step balances.
Spending the same units twice. Suppose Mallory instead signs two transactions that both spend her output, one paying Bob and one paying Carol. The units live in one bitcoin output, and Bitcoin consensus lets an output be spent once. One transaction confirms and the other is invalid. A proof built on the losing transaction fails the check that each step is in the chain.
The issuer not paying out. USDT on Bitcoin is still a claim on Tether. The protocol proves that units trace back to Tether's genesis and were never created along the way. It does not make Tether redeem them for dollars, and Tether decides whom it redeems for.
Look underneath
Where each check runs
The non-inflation check is client-side validation: Bitcoin nodes never see asset leaves, so a transaction that inflates an asset can be mined. It simply produces units that no correct client accepts. The double-spend check is consensus: the anchor output is a normal UTXO.
Hiding a second copy
A cheat could try to commit the same units into two outputs of one transaction and show each to a different receiver. Proof files therefore include exclusion proofs for every other Taproot output of each anchor transaction, and the commitment must sit at depth 0 or 1 in its tree with its sibling revealed.
Burning
Units can be destroyed on purpose by sending them to a script key derived from a NUMS point, tweaked with the first input's outpoint, asset ID and script key. Nobody can spend it, and the burn is provable.
10 Lost data
Keys alone do not recover an asset, because the proof that the units exist lives off the chain
For bitcoin, a recovery phrase is enough: a wallet derives its keys and finds its coins by scanning the chain. For an asset, finding the output is not enough.
The chain shows an output with 1,000 sats. To spend the units in it, the owner needs the asset tree that output commits to, and to give them to anyone else, the proof file. If both are lost and no Universe or courier kept a copy, the units cannot be proven and are lost, even though the keys are safe. Lightning Labs' own safety notes say this directly: the lnd seed alone is not enough to recover assets in tapd. The bitcoin carrying them can be lost too, because spending that output correctly also needs the tree.
Look underneath
From docs/safety.md in the taproot-assets repository: if tapd's database is lost and no backup exists, the assets minted or received by it are lost, and so is custody of the bitcoin anchoring them. Its database holds no private keys; all keys are derived from lnd's wallet.
tapd now keeps an encrypted assets.backup file, keyed from the lnd seed, which with the seed restores confirmed unspent assets. It does not cover addresses, Universe state or channel data. Recovering everything from the seed alone through Universes is tracked as an open issue (#426).
11 The bill
A Taproot asset trusts its issuer, needs its proofs kept safe, and over Lightning depends on edge nodes for price and liquidity
Putting USDT on Bitcoin changes where it moves. It does not change what it is: a token whose value depends on Tether.
The issuer holds the genesis and, for a grouped asset, the key to mint more. It decides whether to redeem units for dollars. The holder carries a data burden that bitcoin does not have: lose the proofs and the units go with them. Every on-chain transfer costs a bitcoin fee and parks 1,000 sats in each carrying output, paid by the sender and recovered by whoever later spends that output. Over Lightning, each payment pays the edge nodes' spread and depends on them having enough of both the asset and bitcoin in their channels; an edge node can also decline to quote.
Privacy is mixed. On the chain, an asset transfer looks like any Taproot transaction. Off the chain, every receiver gets the full proof history back to issuance, including each earlier transfer's transaction, so holding a unit means learning where it has been. Universes learn which proofs are asked for, and edge nodes see the asset amount and rate of every payment they convert.
USDT through Taproot Assets is planned, not shipped. How the app would back up proofs, which Universes and edge nodes it would rely on, and what it would show for each cost above have not been settled.
Look underneath
What did not get traded away
The asset moves under Bitcoin's own rules for who can spend an output and when, and its supply can be checked by anyone holding a proof, without asking the issuer or a server. Nothing extra is written to the chain: no OP_RETURN, no visible marker, one commitment hidden inside an output key that looks like every other. Over Lightning, the route in the middle is the existing bitcoin network, unchanged.
Not covered here
Collectibles, multi-asset swaps, PSBT handling (bip-tap-psbt), and the details of how asset channels are force-closed on chain.
USDT on Bitcoin, from issuance to a Lightning payment
A hidden leaf, a tree of sums, and proofs the owner keeps
- The leaf
- The asset record is one leaf in an ordinary Taproot output's script tree, committed through the tweak.
- The sums
- A merkle-sum sparse merkle tree carries totals at every branch, so a transfer that creates units fails the check.
- The ID
- The asset ID hashes the genesis outpoint, which can only be spent once, so it cannot be issued twice.
- The proof
- A hash-chained file of transactions and block headers back to issuance, checked by every receiver.
- The Universe
- Servers that store and sync proofs and issuance totals; they help, and cannot move units.
- Lightning
- Edge nodes quote by RFQ and swap at each end; the middle of the route forwards bitcoin.
- The bill
- Trust in the issuer, proofs that must be backed up, sats parked in every carrying output, and edge node spreads.
Taproot Assets is planned in OnlyBits and not shipped, so nothing on this page was checked against app code; it describes the protocol. The commitment layout, asset ID, MS-SMT digests, proof file fields, Universe keys and address fields come from the draft documents in the bip-tap branch (bip-tap, bip-tap-ms-smt, bip-tap-vm, bip-tap-proof-file, bip-tap-addr, bip-tap-universe). The leaf version, the version 2 commitment tag and the 1,000 sat default come from tapd's source (commitment/tap.go, tapsend/send.go), which wins where it differs from the drafts. The asset channel layout, HTLC record numbers and RFQ flow come from the repository's docs/taproot-asset-channels.md and docs/rfq.md, the backup warning from docs/safety.md, and Tether's plans from Lightning Labs' January 2025 announcement. Whether USDT on Taproot Assets has any freeze mechanism, and its current issuance and adoption, were not checked; those, the commitment version, and the RFQ defaults are the details most likely to age first. All amounts, the exchange rate and the fees are illustrative. Alice, Bob and Carol are party labels and Mallory is the cheating party. Taproot explained covers the output key and tweak this page builds on, and Lightning explained covers channels and HTLCs.