跨链概念
互操作性
跨链概念 是 CoddyKit 上的免费 Web3 & DApp Development Fundamentals 课时。 这是第 1 节课,共 4 节。 你可以在下方免费阅读本课时的完整内容 — 然后在浏览器中使用内置代码编辑器和全天候 AI 导师进行实践。 这是 Web3 & DApp Development Fundamentals 学习路径的一部分,你的进度在网页和 CoddyKit 应用中同步。 Web3 & DApp Development Fundamentals 课程共包含 4 节课。
本课时的部分内容尚未翻译,以英文显示。
Why Cross-Chain Matters
The blockchain world is multi-chain: Ethereum, L2s, Solana, Cosmos, and more all coexist.
Cross-chain technology lets value and data move between these otherwise isolated networks.
Chains Are Isolated by Default
A smart contract on one chain cannot natively read or call a contract on another. Each chain is its own closed world.
Cross-chain protocols build the connective tissue that overcomes this isolation.
Interoperability
Interoperability is the ability of independent blockchains to exchange and act on information.
It ranges from simple token transfers to full cross-chain smart-contract calls.
Asset Transfers vs Message Passing
Two broad categories of cross-chain activity:
- Asset transfers — moving tokens (bridges)
- Message passing — sending arbitrary data and contract calls
General message passing is the more powerful, more general capability.
Trust Spectrum
Cross-chain solutions sit on a trust spectrum:
- Trusted — rely on a custodian or federation
- Trust-minimized — rely on cryptography and light clients
More trust assumptions usually mean more risk.
Light Clients and Validity
The most trust-minimized bridges run a light client of one chain inside another, verifying the source chain's consensus directly.
This avoids trusting external signers but is technically complex and gas-intensive.
External Validators and Relayers
Many bridges rely on a set of external validators or relayers that watch one chain and attest events to another.
Security then depends on the honesty and decentralization of that validator set.
Source event -> relayers observe
-> validators sign attestation
-> destination verifies signatures
-> action executesLiquidity Networks
Some cross-chain systems use liquidity networks: pools on each chain that let users swap from one chain to another instantly.
These avoid minting wrapped assets but require deep liquidity on both sides.
Atomicity Challenges
Cross-chain operations are hard to make atomic — either fully complete or fully revert across two chains.
Because chains finalize independently, designers use timeouts, locks, and refunds to handle partial failures.
Composability Across Chains
The dream of interoperability is cross-chain composability: a single action that triggers effects on multiple chains.
Messaging protocols (covered later) aim to make this safe and developer-friendly.
Putting It Together
Cross-chain tech connects isolated blockchains for asset transfers and message passing. Solutions vary along a trust spectrum from light clients to external validators and liquidity networks.
Next we examine concrete bridge architectures.
Quick Check
Test your cross-chain fundamentals.
Recap: Cross-Chain Concepts
You learned that:
- The ecosystem is multi-chain and chains are isolated
- Interoperability covers asset transfers and message passing
- Solutions sit on a trust spectrum
- Light clients, validators, and liquidity networks connect chains
- Atomicity across chains is challenging
Next: bridge architectures.
常见问题解答
「跨链概念」课时是免费的吗?
是的 — 「跨链概念」的完整文本可在网页上免费阅读。要进行交互式练习(内置代码编辑器和全天候 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 课程适合初学者到高级学习者,你可以从这里开始或从头开始,按照自己的节奏学习。 这是第 1 节课,共 4 节。
「跨链概念」课时需要多长时间?
大多数 CoddyKit 课程大约需要 5–10 分钟。每节课都很精短且互动,所以你能稳步进步,并在网页和应用中从离开的地方继续。
我能在这节 Web3 & DApp Development Fundamentals 课中编写并运行代码吗?
能。每节 Web3 & DApp Development Fundamentals 课都包含内置代码编辑器,你可以在浏览器中直接编写并运行真实代码,并获得即时 AI 反馈 — 无需本地设置。