Skip to content
LearnBitcoin

LearnGlossary

Escrow

Funds held by a neutral party or mechanism until certain conditions are fulfilled.

Escrow is the practice of holding funds in a neutral arrangement until specific conditions are met. In Bitcoin, escrow can mean trusting a third party to hold the coins (custodial escrow), or locking the coins in a script that limits what any one party can do with them. Script-based escrow cuts down how much you have to trust the escrow agent, though in most setups it doesn't remove that trust entirely.

The Bitcoin-native escrow patterns:

  • 2-of-3 multisig. Buyer, seller, and an arbitrator each hold one key, and any two keys can release the funds. In the normal case, buyer and seller sign together to pay the seller. If there's a dispute, the arbitrator decides who gets the coins by signing with that person. Hodl Hodl, a peer-to-peer trading site, locks each trade in a 2-of-3 multisig escrow.
  • 2-of-2 multisig with deposits. Bisq's multisig trade protocol locks the bitcoin being sold, plus a security deposit from each trader, in a 2-of-2 multisig, so neither trader can move it alone. Its mediators don't hold a key. If a dispute can't be settled, a time-locked backup transaction sends the escrowed funds to a group of Bisq contributors, and an arbitrator pays back the trader who wins.
  • HTLC-based escrow. The seller can claim the funds by revealing a secret (a preimage) before a deadline. After the deadline, the buyer can take them back. The script can't tell whether any goods arrived, so this works as escrow when the thing being bought is the secret itself or is unlocked by it, as in atomic swaps and submarine swaps.
  • ZKCP. For buying digital data. The seller proves, without revealing it, that the secret which unlocks the payment is also what the buyer needs to get the data, so neither side can cheat.
  • Time-locked escrow. A timelock keeps a key from being used until a deadline. In BIP 65's example, two business partners hold funds in a 2-of-2 multisig, and their lawyer can step in and sign with one of them only after three months. Useful for deadlines, and as a backup plan in case a key holder disappears.

What script-based escrow improves, and what it doesn't:

  • No one party can run off with the money. With a 2-of-3, the arbitrator only ever has one signature, never enough to spend alone. The arbitrator could still side with one trader unfairly or collude with them, so you're trusting the arbitrator less, not zero.
  • No custodial account. The escrow agent holds a signing key, not the coins. It can't move them without one of the traders, and if something happens to the agent, the coins are still sitting in the multisig.
  • Rules you can check. The spending conditions are written in the script and enforced by the network. In a dispute, though, the outcome still comes down to the arbitrator's judgment.
  • Not always cheaper. The script itself only costs normal transaction fees, but trading platforms that supply the software or the arbitrator usually charge their own fees, as Bisq and Hodl Hodl do.

Not every peer-to-peer service works this way. On RoboSats, a peer-to-peer market that runs on Lightning, the seller locks the coins with a hold invoice to the RoboSats coordinator node. Until the seller confirms the fiat arrived, the coins haven't left the seller's wallet, though the seller can't pull them back. Once the seller confirms, the coordinator settles that invoice and pays the buyer, holding the funds while that payment goes through, and if the trade is disputed, RoboSats staff decide who gets the escrow. So you aren't handing RoboSats a balance to look after, but you are trusting it with the escrow. See Decentralized Exchange (DEX) for more on how these venues compare.

See HTLC for the primitive underlying Lightning-based escrow and Multisig for the multisig setups underlying on-chain escrow.

Key takeaways

  • Protects both buyer and seller in uncertain transactions
  • Can use a third party or a multisig script
  • Reduces fraud risk by withholding payment until agreed conditions

Corrected

  • Was: The entry said Bisq uses 2-of-3 multisig escrow with an arbitrator, that an HTLC seller reveals the preimage after delivering the goods, and that script-based escrow costs nothing beyond transaction fees. It also named RoboSats as an example after saying the escrow agent never holds the funds.

    Now: Bisq locks each trade in a 2-of-2 multisig with both traders' deposits, and its mediators hold no key. An HTLC pays the seller for revealing a secret and cannot check whether any goods arrived. Bisq and Hodl Hodl charge trading fees. On RoboSats the coordinator node settles the seller's hold invoice, briefly holds the funds while paying the buyer, and its staff decide disputes. Details

Sources (11)

Related terms (8)

Published . Revised . One correction logged for this page.

Edit this page on GitHub