Foundations · Blockchain
Bridges
A blockchain bridge moves value between two chains, usually by locking an asset on one and issuing a matching token on the other. Bridges have been frequent targets of large exploits.
Why it matters
There are many blockchains, and they cannot read each other. An asset on one chain does not exist on another. Bridges are the tools that connect them, and they are used whenever someone moves funds to a Layer 2 or to a different network. They also hold large pools of locked assets behind complex code, which has made them one of the most heavily attacked parts of crypto.
How it works
A blockchain only knows its own ledger. Chain B has no built-in way to see that something happened on Chain A. A bridge is a system that carries that information across and acts on it.
No coin physically travels. The most common design is lock and mint.
- DepositThe user sends 10 coins to the bridge contract on Chain A.
- LockThe contract holds the 10 coins.
- VerifyThe bridge's verifiers confirm the deposit to Chain B.
- MintA contract on Chain B issues 10 wrapped tokens.
- The user deposits an asset into a smart contract on the source chain, where it is locked.
- The bridge’s verifiers observe the deposit and report it to the destination chain.
- A contract on the destination chain creates, or mints, an equal amount of a wrapped token.
The wrapped token is a token that represents the locked original. To go back, the user returns the wrapped tokens, which are destroyed (burned), and the bridge releases the originals.
In plain words
A cloakroom takes your coat and hands you a numbered ticket. You can pass the ticket to a friend, and whoever holds it can collect the coat. The ticket is useful only while the coat is still hanging there and the attendant honours it. A wrapped token is the ticket. The bridge is the cloakroom.
Other designs
- Liquidity networks. Providers hold pools of the asset on each chain. The user pays in on one chain and is paid out from the pool on the other, for a fee. No wrapped token is created, but the size of the pools limits how much can move.
- Native Layer 2 bridges. A rollup’s official bridge to its base chain, tied to the rollup’s own proofs. See Layer 1 and Layer 2.
The trust question
Every bridge must answer one question: who is believed when they say a deposit happened on the other chain. If that party can be fooled, corrupted or hacked, the bridge can be made to release or mint assets that nobody deposited.
This is why bridges are harder to secure than applications that live on one chain. A bridge depends on the security of both chains, on its own contracts on each, and on whatever stands in between.
Going deeper
Why bridges attract attackers. A bridge concentrates value. All the assets that users have moved across sit in one or a few contracts. Bridges have been among the largest sources of losses in crypto, with single incidents reported in the hundreds of millions of dollars. Causes have included bugs in contract code, flaws in how messages are verified, and theft of the keys held by a committee of signers.
What a wrapped token is worth. A wrapped token’s value comes from the ability to redeem it for the original. If the locked assets are stolen, the wrapped tokens on the other chain are left partly or wholly unbacked. Holders are affected even if they never used the bridge themselves and simply received the wrapped token later.
Several versions of “the same” asset. Different bridges issue different wrapped tokens for the same original. They share a name and are not interchangeable: each is a claim on a different pool of locked assets.
Timing. A bridge has to wait until the deposit is unlikely to be reversed on the source chain, so transfer times depend on finality.
Approvals and fake sites. Using a bridge normally requires granting it a token approval. Fraudulent sites that imitate well-known bridges are a common way of obtaining such approvals.
A wrapped token after an exploitHypothetical illustration
Hypothetical numbers. A bridge holds 1,000 coins locked on Chain A. Against them, 1,000 wrapped tokens circulate on Chain B.
- Backing before: 1,000 / 1,000 = 100%.
An attacker finds a flaw in the bridge’s verification and withdraws 600 of the locked coins without returning any wrapped tokens.
- Locked coins remaining: 1,000 minus 600 = 400.
- Wrapped tokens still circulating: 1,000.
- Backing after: 400 / 1,000 = 40%.
If redemptions were shared evenly, each wrapped token would now redeem for 0.4 of a coin. In practice a bridge in this state is usually paused, or the first 400 tokens returned receive a full coin each and the remaining 600 receive nothing. A person who holds 50 wrapped tokens on Chain B, bought on an exchange and never bridged, holds a claim with the same shortfall.
A bridge adds a layer of risk to every asset that crosses it
A bridged asset depends on the original chain, the destination chain and the bridge. A failure in any of the three can leave the wrapped token worth less than the original, or nothing. Past bridge exploits have been large and the stolen assets have often not been recovered.
What it does NOT mean
- Bridging does not move a coin from one chain to another. It locks or destroys value in one place and issues a representation in another.
- A wrapped token is not the original asset. It is a claim that depends on the bridge.
- The same name does not mean the same token. Wrapped versions from different bridges are separate assets.
- A widely used bridge is not a safe one. Large, well-known bridges have been exploited.
- Fast does not mean final. A quick transfer may rely on a third party fronting the funds.
Common misunderstandings
- Treating a bridged asset as identical to the native one. It carries an extra dependency for as long as it is held.
- Ignoring which bridge issued a token. Two wrapped versions of one asset can have very different backing.
- Following a link to a bridge. Imitation sites are common, and a signed approval cannot be recalled after it has been used.
- Forgetting the fee asset on the other side. Arriving on a new chain with no native coin leaves tokens that cannot be moved.
Risks and limits
- Contract bugs or verification flaws can let an attacker drain locked assets.
- Keys held by a bridge’s signers can be stolen or misused.
- Wrapped tokens can lose their backing through no action of the holder.
- Bridges can be paused, leaving assets temporarily stuck.
- Transfers are irreversible, and mistakes in network or address are usually permanent.
Key takeaway
A bridge lets value appear on another chain by locking it in one place and issuing a claim on it elsewhere. That claim is only as sound as the bridge that stands behind it, and bridges have a long record of costly failures.
Sources and further reading
- Bridges (opens in a new tab), ethereum.org. Explains trusted and trustless bridges and their risks, including that bridges account for the top three biggest hacks in DeFi
- Mastering Ethereum, Andreas M. Antonopoulos and Gavin Wood. Chapters on tokens and smart-contract security
- Illicit Finance Risk Assessment of Decentralized Finance (opens in a new tab), U.S. Department of the Treasury (2023). Defines cross-chain bridges and notes that they are attractive targets for hackers because they often hold funds in one central place