0Pricing
Web3 & DApp Development Fundamentals · درس

بنى الجسور

القفل والسك والحرق

بنى الجسور درس مجاني في Web3 & DApp Development Fundamentals على CoddyKit. هذا هو الدرس 2 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في 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 user

Burn-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 providers

Who 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 sign

Optimistic 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.

الأسئلة الشائعة

هل درس «بنى الجسور» مجاني؟

نعم — نص درس «بنى الجسور» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Web3 & DApp Development Fundamentals، انتقل إلى CoddyKit PRO. تتضمن دورة Web3 & DApp Development Fundamentals 4 دروس في المجموع.

ماذا ستتعلم في «بنى الجسور»؟

القفل والسك والحرق تتمرن على Web3 & DApp Development Fundamentals مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.

هل أحتاج إلى خبرة سابقة لأبدأ Web3 & DApp Development Fundamentals؟

لا تُشترط خبرة سابقة. Web3 & DApp Development Fundamentals على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 2 من أصل 4.

كم من الوقت يستغرق درس «بنى الجسور»؟

معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.

هل يمكنني كتابة وتشغيل أكواد في درس Web3 & DApp Development Fundamentals هذا؟

نعم. كل درس في Web3 & DApp Development Fundamentals يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.

جميع الدروس في هذه الدورة

  1. مفاهيم السلاسل المتقاطعة
  2. بنى الجسور
  3. مخاطر أمن الجسور
  4. بروتوكولات المراسلة
← العودة إلى Web3 & DApp Development Fundamentals