Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XBridge EVM Smart Contracts

XBridge is an advanced cross-chain messaging protocol designed to enable seamless, secure, and efficient communication between diverse blockchain networks. By serving as a bridge for interoperability, XBridge allows developers to extend decentralized applications (dApps) beyond the limitations of individual blockchains.

This repository contains the essential smart contracts for integrating EVM-compatible networks with the XBridge cross-chain messaging protocol.

Core Components

  • Router – Manages message transmission and reception. XBridge Validators monitor Router events, reach consensus, and generate proofs for cross-chain message validation.
  • XBridgeApp – Simplifies cross-chain application development by abstracting Router interactions and standard processes. It implements the IXBridgeReceiver interface to handle incoming messages seamlessly.
  • ECDSAVerifier – Authenticates ECDSA signatures generated by XBridge Validators for both individual and batched cross-chain messages. This contract implements IXBridgeVerifier for standardized signature verification and IXBridgeFees for calculating cross-chain messaging fees.

Example Implementations

The examples directory includes:

  • PingPong – Showcased in the Build My First XBridge App tutorial, demonstrating fundamental message transmission and reception using XBridge.
  • CrossChainSwap – A basic cross-chain swap implementation, illustrating how to send and receive messages across networks via XBridge.

Testing & Deployment

This repository also includes comprehensive tests to verify contract functionality, along with scripts to streamline contract deployment and interaction.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages