Every escrow system on a darknet market is, at bottom, a cryptographic contract. When a buyer deposits funds for an order, those coins do not sit in a market-controlled hot wallet that an administrator could empty at will, at least not in the best-implemented markets. They sit in a 2-of-3 multisignature address: an output that can only be spent when any two of three private keys sign the same transaction. The keys belong to the buyer, the vendor, and a neutral third party, the market, an escrow agent, or an arbitrator. This technical guide explains how that arrangement works: the script behind the address, how keys are generated and stored, how release transactions are constructed and signed, and how disputes resolve when buyer and vendor cannot agree. It complements our coverage of escrow key custody across coins and escrow deposit and release architecture.
Why 2-of-3: the trust model
Escrow exists to solve a specific problem: a buyer and a vendor who do not trust each other need a mechanism where funds move only when conditions are met. The naive solution, a central escrow account, recreates the same trust problem it was meant to solve, because whoever holds the keys can steal the funds. The multisig design distributes the keys so that no single party can move the money alone.
The canonical configuration is 2-of-3 (written m-of-n, where m=2 signatures are required out of n=3 keys). It is chosen because it covers every outcome of a transaction with exactly two signatures:
- Happy path: buyer and vendor both sign, releasing funds to the vendor. The escrow agent does nothing.
- Buyer wins a dispute: buyer and escrow agent sign, refunding the buyer.
- Vendor wins a dispute: vendor and escrow agent sign, paying the vendor.
Compare this with the alternatives. A 2-of-2 multisig between buyer and vendor alone (used by some P2P trading protocols) removes the third party but creates deadlock risk if the parties stop cooperating; adding a timelock complicates the script beyond standard P2SH multisig. A single-key escrow gives one party unilateral control and defeats the purpose. The 2-of-3 design means a dispute can always be broken by the escrow agent pairing with whichever side is correct, the agent can never steal funds alone, and the residual trust is bounded: you trust the agent to sign with the honest party, not to act alone.
On darknet markets, the "escrow agent" is usually the market operator's infrastructure, but the keys are often generated per-order rather than held as one long-lived wallet, a design sometimes called per-order or pooled escrow depending on whether addresses are shared. Our guide to pooled multisig escrow and its privacy properties covers that architectural variation in depth.
The cryptographic mechanics: redeem scripts and P2SH
Bitcoin's script system makes multisig possible through Pay-to-Script-Hash (P2SH). The escrow address itself is just a hash of a script called the redeem script. For a standard 2-of-3 escrow the redeem script looks like this in Bitcoin assembly:
OP_2 <buyer_pubkey> <vendor_pubkey> <arbiter_pubkey> OP_3 OP_CHECKMULTISIG
When funds are deposited, they go to the P2SH address derived from hashing that script (SHA-256 then RIPEMD-160, encoded as a Base58Check or bech32 address). The blockchain records only the hash, the script and the public keys stay off-chain until spending time.
To spend from the escrow, the spender must provide the redeem script and signatures from two of the three listed public keys. The script interpreter runs OP_CHECKMULTISIG, which verifies that at least two signatures match distinct keys in the script. Because the redeem script hash must match the address being spent, nobody can substitute a different key set, the three parties are fixed at deposit time.
Two implementation details matter. First, bare multisig outputs (without P2SH) are non-standard and effectively unspendable, which is why every real implementation uses P2SH. Second, modern wallets prefer SegWit P2SH-P2WSH or native P2WSH, where the script lives in a discounted witness block, substantially cheaper fees. On Litecoin the same construction works identically, and many markets offer LTC escrow precisely because fees are lower.
A practical consequence of P2SH: the escrow address looks like any other Bitcoin address. The blockchain shows funds entering and leaving, but cannot reveal that it is a multisig or who controls the keys, only that some script hash is being spent.
Wallet setup: generating and distributing the three keys
The escrow wallet is not a "wallet" in the everyday sense, it is a coordinate system for three keys. Setup happens per order (or per escrow session), and the quality of the implementation determines whether the escrow is actually trust-minimizing or just theater.
Key generation. Each party contributes one private key. In well-designed systems, keys are generated client-side or at least so that no single party sees all three private keys at once. Public keys are exchanged over the market's encrypted messaging, signed with each party's PGP key, and each party independently constructs the same redeem script, deterministic given the three public keys and threshold, so anyone can hash it and confirm the address matches what the buyer is about to fund.
Verification is the critical step. Before depositing, the buyer should confirm that the address hashes to a redeem script containing their key, the vendor's key, and the arbiter's key, and no fourth; that the threshold is exactly 2-of-3; and that the arbiter key belongs to the expected market or escrow service. A malicious market could substitute its own key for the vendor's, quietly creating a 2-of-3 where two "parties" are actually market-controlled, letting it collude with itself to refund buyers it wants to cheat or pay vendors it wants to cheat. Verifying the redeem script before funding is the single most important escrow safety check.
Key custody and import. Each party stores only their own private key, buyers typically in a dedicated wallet like Sparrow or Electrum rather than an exchange account, since exchanges cannot produce the partial signatures escrow requires. Each party then imports the redeem script as a watch-only multisig wallet: the software knows the address and which of the three keys it controls, and can construct unsigned transactions and partial signatures without holding the other keys.
Funding and the release transaction lifecycle
A completed escrow transaction follows a strict lifecycle.
1. Address creation and deposit. The market (or the parties directly, in decentralized markets) generates the escrow address from the redeem script and displays it to the buyer. The buyer sends the order amount, sometimes plus a small buffer for fees, to that address. On-chain, this is an ordinary transaction to a P2SH/P2WSH output. The market watches for confirmation and marks the order "escrowed" or "funded."
2. Vendor ships. The vendor sees the deposit confirmed on-chain (not via the market's say-so, this is a key advantage of multisig: the funding proof is independently verifiable), ships the product, and marks the order shipped.
3. Buyer confirms receipt. On the happy path, the buyer clicks "release." Market software constructs a transaction spending the escrow output, paying the vendor's payout address minus fees, and requests a signature. The buyer's wallet produces a partial signature sent back to the market, which adds the arbiter's signature for a valid 2-of-3 spend and broadcasts it.
4. Confirmation and payout. Once the release transaction confirms, the vendor sees funds arrive; the market takes its commission, often as a separate output in the same transaction.
Modern implementations use PSBT (Partially Signed Bitcoin Transactions, BIP-174) as the interchange format: each signer adds their signature to a structured transaction object any wallet can verify before signing. This prevents a class of attacks where a malicious party tricks a signer into authorizing a different transaction than displayed. Older implementations exchanged raw partially-signed transactions, which carried higher phishing risk.
The happy path needs only two signatures, buyer plus arbiter, or buyer plus vendor; the escrow agent's key is not required. In many implementations the market's signature co-signs every routine release, meaning the market often holds two roles: neutral arbiter in disputes and routine release co-signer. Whether the market key is needed for normal payouts is a market-specific detail worth verifying.
Dispute resolution: freezing, arbitration, and refunds
When something goes wrong, goods never arrive, goods are wrong, buyer claims non-delivery, either party can open a dispute. The technical flow:
1. Dispute freeze. Opening a dispute typically cancels the automatic release timer (if one exists) and flags the order in the market's system. On-chain, nothing happens, the escrow output remains unspent because spending still requires two signatures.
2. Evidence submission. Both parties submit evidence through the market's dispute interface: PGP-encrypted messages, tracking numbers, photos, communication logs. This evidence never touches the blockchain; it lives in the market's database and is reviewed by dispute staff.
3. Arbiter ruling. A market dispute resolver (or, in decentralized markets like OpenBazaar's design, an elected moderator) reviews the evidence and issues a ruling: release to vendor, refund to buyer, or split. The ruling is executed cryptographically: the arbiter's key signs with the winning party's key to create a valid 2-of-3 spend. If the ruling favors the buyer, buyer + arbiter sign a refund transaction to the buyer's refund address. If it favors the vendor, vendor + arbiter sign a payout transaction.
4. Appeal layers. Larger markets add escalation: a second-level review, senior arbitrator, or community vote before funds move. Each layer delays the transaction but does not change the cryptography, eventually some 2-of-3 combination must sign.
Deadlocks and timeouts. The 2-of-3 design has a known failure mode: if the arbiter refuses to sign (market insolvency, staff disappearance, exit scam) and the two parties disagree, funds are mathematically unspendable. Mitigations vary: some protocols embed a timelock path in the redeem script, some rely on escrow-agent insurance, and some accept the risk. The OpenBazaar model used a ~45-day timeout after which undisputed funds auto-released to the vendor, trading deadlock risk for the risk of paying vendors who never shipped. Our piece on how escrow disputes and arbitration work covers the human side, and the 2-of-3 dispute resolution failure modes guide goes deeper on deadlock edge cases.
Implementation variants and where they differ
Not all market escrow is identical 2-of-3 P2SH. The spectrum includes:
Per-order fresh multisig. Each order generates a new 3-key set and address, maximum isolation at the cost of operational overhead.
Pooled escrow addresses. One multisig address receives funds for many orders with internal accounting. Cheaper, but every order through it is publicly linked on-chain and the pool becomes a honeypot.
Escrow agents. A third-party service holds the arbiter key instead of the market, less market trust required, added dependency on the agent.
2-of-2 with arbitration fallback. Some decentralized protocols (Bisq being canonical) use 2-of-2 multisig plus an arbitrator path activated by timelock or dispute, more complex scripts, fewer trusted parties.
Custodial "escrow." Many smaller markets still run plain custodial escrow: deposits go to a market wallet and an internal ledger decides payouts. Technically simpler, but zero cryptographic guarantee, exit scams have repeatedly demonstrated the failure. Real multisig escrow exists precisely to fix this, and its presence or absence is one of the strongest signals for evaluating a market.
For non-Bitcoin escrow, the mechanics differ fundamentally: Monero has no multisig at all (its privacy features preclude it), so XMR "escrow" on markets is custodial or uses centralized services; Zcash shielded pools likewise cannot multisig. LTC and BTC remain the practical chains for true 2-of-3 escrow. This coin-level tradeoff is analyzed in our five-coin escrow mechanics comparison.
Failure modes and operational security
Multisig escrow reduces trust but does not eliminate it. Documented failure modes include:
Signing-request phishing. A malicious party can send a PSBT that looks like a release transaction but pays an attacker. Signers must verify outputs independently, amount and destination, not just trust the market's UI.
Key loss. A lost key makes that party's signature impossible; depending on which key is lost, refunds or payouts may become unexecutable and funds stuck.
Arbiter collusion or coercion. The escrow agent sides with whichever party it chooses in a dispute, and a market running both the marketplace and the dispute desk has an inherent conflict of interest.
Fake escrow. A displayed multisig address may have a redeem script containing an attacker's key or a lower threshold. Redeem-script verification before funding is non-negotiable.
Market exit with funds in flight. Multisig prevents unilateral theft, but a disappearing market can refuse dispute signatures and freeze escrows. Pending releases should be completed before a market vanishes.
Conclusion
2-of-3 multisig escrow is the closest thing darknet markets have to trust-minimized payment: funds locked in a script requiring buyer, vendor, and arbiter cooperation in the right combinations. The cryptography is sound, security depends entirely on implementation quality: whether keys are verified before funding, whether signing requests are authenticated, whether the arbiter is honest. For buyers, the checklist is short: verify the escrow redeem script contains your key plus the expected vendor and arbiter keys, inspect every transaction before signing, and never sign a PSBT you haven't verified independently. For market evaluators, real multisig escrow, versus custodial ledger "escrow", is one of the most reliable indicators of whether a platform's promises are backed by code or by trust alone.
Disclaimer
Legal and safety notice: This article is educational analysis of publicly documented cryptographic and market mechanisms. Darknet market activity is illegal in most jurisdictions and carries severe criminal penalties, including prosecution for buyers and vendors. Escrow does not eliminate risk: funds can be stolen by malicious markets, escrow agents can collude, keys can be lost, and disputes may never resolve, there is no legal recourse for funds lost in a darknet escrow dispute. Nothing in this article constitutes legal, financial, or operational advice, and OnionInfoDesk does not endorse or facilitate participation in any darknet market. Readers should understand that interacting with these platforms exposes them to criminal liability, scams, and permanent financial loss.
Comments 0