跨链桥架构
锁定-铸造与销毁
跨链桥架构 是 CoddyKit 上的免费 Web3 & DApp Development Fundamentals 课时。 这是第 2 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 Web3 & DApp Development Fundamentals 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 Web3 & DApp Development Fundamentals 课程共包含 4 节课。
本课时的部分内容尚未翻译,以英文显示。
Bridge Design Categories
Bridges differ mainly in how they represent assets on the destination chain and who secures the transfer.
The main architectures are lock-and-mint, burn-and-mint, and liquidity pool bridges.
Lock-and-Mint Architecture
In lock-and-mint, the original asset is locked on the source chain and a wrapped version is minted on the destination.
The wrapped token is fully backed by the locked collateral in the bridge contract.
Source: lock 100 USDC in bridge
Dest: mint 100 wUSDC to userBurn-and-Mint Architecture
In burn-and-mint, the token is burned on the source chain and an equal amount is minted natively on the destination.
This requires the token contract on both chains to be controlled by the bridge, but avoids wrapped representations.
Source: burn 100 TOKEN
Dest: mint 100 TOKEN (native)Liquidity Pool Bridges
Liquidity pool bridges hold reserves of the same asset on both chains.
You deposit into the source pool and instantly withdraw from the destination pool — no minting, just a swap from existing liquidity for a fee.
Source pool: user deposits 100 USDC
Dest pool: user receives 99.9 USDC
// 0.1% fee to liquidity providersWho Verifies the Transfer?
Every bridge needs to verify the source event happened. Verification models include:
- External multisig/federation
- Optimistic with fraud proofs
- Light client / native verification
- ZK proofs
Multisig and Federated Bridges
The simplest (and historically most exploited) model uses a multisig of signers who attest transfers.
Security equals the honesty of those signers — if enough keys are compromised, funds can be stolen.
require signatures >= threshold
// e.g. 5 of 8 validators must signOptimistic Bridges
Optimistic bridges assume a transfer is valid and allow a challenge window where watchers can dispute fraud.
This adds a delay but reduces reliance on a trusted signer set.
Light-Client (Native) Bridges
A light-client bridge verifies the source chain's block headers and proofs directly on the destination chain.
This is the most trust-minimized approach — security comes from the chains themselves, not external parties.
ZK Bridges
ZK bridges use validity proofs to attest that an event occurred on the source chain.
The destination verifies a succinct proof, combining strong security with efficient on-chain verification — an emerging frontier.
Canonical vs Generalized Bridges
A canonical bridge is purpose-built for one chain pair (e.g. an L2's official bridge). A generalized bridge connects many chains through one protocol.
Generalized bridges are convenient but concentrate risk across all connected chains.
Putting It Together
Bridge architectures combine an asset model (lock-mint, burn-mint, or liquidity pools) with a verification model (multisig, optimistic, light client, or ZK).
The verification model largely determines safety. Next we study why bridges get exploited.
Quick Check
Test your bridge architecture knowledge.
Recap: Bridge Architectures
You learned that:
- Asset models: lock-and-mint, burn-and-mint, liquidity pools
- Verification: multisig, optimistic, light client, ZK
- Light-client and ZK bridges are most trust-minimized
- Canonical vs generalized bridges trade convenience for concentrated risk
Next: bridge security risks.
常见问题解答
「跨链桥架构」课时是免费的吗?
是的 — 「跨链桥架构」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 AI 导师)并解锁 Web3 & DApp Development Fundamentals 课程的其余内容,请升级到 CoddyKit PRO。 Web3 & DApp Development Fundamentals 课程共包含 4 节课。
「跨链桥架构」这节课中我会学到什么?
锁定-铸造与销毁 你通过在浏览器中直接运行的动手代码来练习 Web3 & DApp Development Fundamentals,全天候 AI 导师会在你学习这节课的过程中回答你的问题。
学习 Web3 & DApp Development Fundamentals 需要有经验吗?
无需任何先前经验。CoddyKit 上的 Web3 & DApp Development Fundamentals 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 2 节课,共 4 节。
「跨链桥架构」课时需要多长时间?
大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。
我能在这节 Web3 & DApp Development Fundamentals 课中编写并运行代码吗?
能。每节 Web3 & DApp Development Fundamentals 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。