project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5
project screenshot 6

Trustless Bridge

Trustless Bridge project shows how assets can be bridged from Optimism to Scroll leveraging L1SLOAD precompile.

Trustless Bridge

Created At

ETHGlobal Bangkok

Winner of

Blockscout - Blockscout Explorer Big Pool Prize

Prize Pool

Project Description

To move tokens between L2s, especially between different groups of L2s such as optimistic and ZK-rollups, users and developers normally need to leverage cross-chain messaging protocols such as Axelar and Layer 0. Each of those have specific trust assumptions (for example dependence on oracles), which if broken can lead to significant issues or even losses in the cross-chain transactions.

Scroll’s new feature, e.g. L1SLOAD, allows to read data directly from L1, which consequently allows to eliminate any cross-chain messaging protocols from the flow of onramping assets from other L2 to Scroll and providing an opportunity to launch a truly trustless bridge.

Trustless Bridge project in the current implementation shows how assets can be bridged from Optimism to Scroll leveraging L1SLOAD precompile.

The flow is following:

  1. User wants to transfer ETH from OP to Scroll, clicks “bridge” button in UI, which triggers a transaction in OP network. ETH moves from user’s address to the bridge contract, and corresponding note of deposit appears in the bridge contract storage.

  2. UI waits for OP network to trigger change of its state root in L1. Once it happens, a button to claim appears on UI.

  3. User clicks on the button “claim” and triggers a transaction in Scroll network which calls “claim” function on bridge contract. A. UI transmits to the bridge contract in Scroll Merkle proof of OP deposit and bridge parameters (asset, value, recipient). B. Request OP state root from L1 with the help of L1SLOAD precompile. C. Check of validity of Merkle proof for received root and bridge parameters D. Once check is successful, assets are transferred to recipient wallet in Scroll network.

Youtube video: https://youtu.be/07ohcE1I7_Y

How it's Made

How it is made: Solidity, Foundry - smart contracts React, Web3JS, WalletConnect - frontend

Partner technologies: Pyth random number generator is used to gamify user experience and reduce bridge fees for lucky users. L1SLOAD precompile deployed in Scroll devnet is used to receive storage data from L1 which allows for trustless bridge experience. Blockscout, our favourite block explorer, provides users with insights about their transactions.

background image mobile

Join the mailing list

Get the latest news and updates