Skip to content
Crypto News

Dispatches from across crypto

Difference between atomic swaps and bridges: who holds coins

Atomic swap vs cross-chain bridge difference: swaps trade native coins through HTLCs; bridges lock one coin and issue a token, changing who holds the original.

Crypto News Newsroom3 min read

Difference between atomic swaps and bridges: who holds coins

An atomic swap avoids a custodian: two people trade native coins on their own chains using hash-timelocked contracts, while a bridge holds one coin to back a token elsewhere. For the reader, the key difference is whether a third party controls the original coin during the move.

What happens to the coins in an atomic swap or bridge?

An atomic swap locks each person’s funds in a hash-timelocked contract, or HTLC. The hashlock ties both contracts to the same secret; the timelock sets a deadline after which locked funds can be refunded. No custodian takes ownership of the coins.

A bridge locks the original coin and issues a token on another chain. RenBridge held deposited BTC under RenVM-controlled keys and minted renBTC on Ethereum. That arrangement illustrates RenBridge’s bridge custody trade-off.

Now hold the goal and starting asset constant: Alice has BTC and wants value on Ethereum. If she swaps with Bob, she receives native ETH, while Bob receives her BTC. If she bridges, the BTC stays locked and she receives renBTC, a token representing BTC on Ethereum. The decisive difference is the outcome: a swap exchanges ownership of native coins; a bridge keeps the original in reserve and creates a representation.

In the swap, Bob locks ETH under the same hash used for Alice’s BTC contract. Alice claims the ETH by revealing the secret; that revelation lets Bob claim the BTC. If either person stops, the other can wait for the timelock and refund their own funds. In a correctly set up swap, failure means waiting for the refund, rather than a custodian keeping the coins.

That makes swaps useful when both parties want each other’s native coins and can agree on terms. They do not give Alice BTC she can use in Ethereum DeFi; she needs a counterparty who holds the ETH she wants. A bridge suits the different goal of using a BTC-backed token on Ethereum, with the trade-off that the bridge’s key holders control the deposited BTC.

Related questions

Can atomic swaps work between Bitcoin and Ethereum?

Yes, if both sides can use compatible HTLC contracts. The Bitcoin and Ethereum contracts must enforce the shared secret and refund deadlines in ways that let each party claim or recover their funds.

Is a cross-chain DEX the same as an atomic swap?

No. A cross-chain DEX is a trading service or interface; it may use atomic swaps, a bridge, or another settlement method. The contracts and assets involved determine who holds the original coins.

  • Atomic swaps exchange native coins without a custodian holding them.
  • Bridges lock an original coin and issue a token on another chain.
  • A failed, correctly constructed swap refunds after its timelock, but the user must wait.

Atomic swap and bridge FAQs

How long are atomic swap timelocks usually set?

There is no universal duration. The deadlines must leave enough time for both chains to confirm transactions and for each party to claim or refund.

Which wallets support atomic swaps today?

Support depends on the coin pair and wallet software. Both sides need compatible HTLC support, so check the wallet’s current support for the exact assets and chains.

Is tBTC a custodian-free bridge?

No. tBTC uses a group of network signers to control deposited Bitcoin, rather than one custodian. That distributes control but does not leave the Bitcoin solely under the depositor’s keys.

How do Lightning submarine swaps relate to atomic swaps?

They use swap mechanisms to move value between Lightning payment channels and on-chain Bitcoin. Like atomic swaps, they can use hashlocks and timelocks; they do not create a bridge token.

Related