Skip to content

Messaging contracts of Tusima zkBridge which can help developers to send messages from a chain to another.

License

Notifications You must be signed in to change notification settings

TusimaNetwork/zkBridge-messaging

Repository files navigation

zkBridge Messaging

Tusima zkBridge

Tests Twitter Follow Discord

Messaging is the primary module of Tusima zkBridge, providing a set of Solidity language APIs. Through these APIs, developers can seamlessly transmit messages from the source chain to the destination chain, thus enabling the creation of omnichain applications.

From the perspective of message verification, the Messaging module currently comprises two cross-chain mechanisms. One relies on the On-chain Light Client to achieve cross-chain communication, while the other uses its existing message verification mechanism to enable cross-chain communication between the Ethereum mainnet (currently Goerli) and zkRollup solutions like zkSync, Polygon zkEVM, and more.

More detailed information please refer to here.

Build with source code

We are using Foundry, so before you build this project, make sure you have installed Foundry.

Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust. More detailed information please refer to their doc.

Below are some commonly used Foundry commands:

# Build
$ forge build
# Test
$ forge test
# Format
$ forge fmt

Deploy

  1. Create a .env file, and edit it and fill in the corresponding fields.
    $ cp .env.example .env
    $ vim .env
    $ source .env
  2. Execute deploy cmd.
    $ forge script script/DeployMessaging.s.sol:DeployMessing --broadcast --verify --rpc-url <Network_RPC_URL> --legacy
    
    $ zkforge zkc src/Messaging.sol:Messaging --rpc-url https://sepolia.era.zksync.dev:443 --chain 300 --constructor-args <"bool"> --private-key ""

About

Messaging contracts of Tusima zkBridge which can help developers to send messages from a chain to another.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published