Comunicação Cross-Chain

Protocolos que permitem que redes blockchain independentes troquem dados, tokens ou mensagens entre si.

Protocolos principais: bridges de tokens (Wormhole), mensagens gerais (LayerZero, Axelar, CCIP), interoperabilidade nativa (IBC, XCM), atomic swaps (HTLCs).

        graph LR
  Center["Comunicação Cross-Chain"]:::main
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧠 Teste de conhecimento

1 / 1

🧒 Explique como se eu tivesse 5 anos

Imagine que [Bitcoin](/pt/terms/bitcoin) e [Ethereum](/pt/terms/ethereum) são duas ilhas que falam idiomas diferentes. A comunicação cross-chain é um navio-tradutor que viaja entre elas, carregando mensagens e pacotes, garantindo que nenhuma ilha seja enganada na troca.

🤓 Expert Deep Dive

Arquiteturas: Lock-and-Mint (risco de honeypot), bridges de liquidez (ineficiência de capital), passagem de mensagens (LayerZero, CCIP), IBC (sem confiança via light clients). Maiores hacks: Ronin ($625M), Wormhole ($320M), Nomad ($190M).

❓ Perguntas frequentes

Why are cross-chain bridges so often hacked?

Bridges are high-value targets because they hold large amounts of locked assets. The most common attack vectors are: compromised validator keys (Ronin Bridge), smart contract bugs (Wormhole), and economic exploits on governance logic (Beanstalk). Trusted bridges with small validator sets are especially vulnerable.

What is the difference between a bridge and IBC?

A traditional bridge relies on external validators (a trusted third party) to attest that an event happened on the source chain. IBC (Inter-Blockchain Communication) uses on-chain light clients to cryptographically verify the source chain's state directly, requiring no trusted intermediary.

What is an atomic swap?

An atomic swap is a trustless exchange of tokens between two different blockchains using Hash Time-Locked Contracts (HTLCs). It either completes in full (both parties get their tokens) or fails completely (both get their tokens back). No bridge or intermediary needed, but both chains must support the same hash function.

📚 Fontes