Trustless Bridge

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

ETHGlobal BangkokShipped November 15, 2024Prize winner#privacy#zk#infra
Visit Repo
Trustless Bridge banner

About

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:

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

Prizes

  • Blockscout · Blockscout Explorer Big Pool Prize · Blockscout Explorer Big Pool Prize

From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.

AI judge

Not judged yet. A free model reads this page, compares it with similar projects and this event's winners, then scores it and says what would make it win.

Still being built?

Not checked yet.

Swipe stats

0upvotes
0skips
0saves

Discussion 0

No comments yet. Ask the team something, or say what you'd use it for.

Posting as a guest. Plain text, 1,000 characters max.

Already built nearby

Closest projects by meaning and shared words. Similar isn't the same as copied: read them.

Rebaseable

The first cross-chain bridge for rebasing tokens, leveraging Scroll's L1SLOAD precompile, EIP-4788, and LayerZero to preserve rebase events and ensure consistent token behavior across chains.

All my 🦄 read on L1

our project leverages the L1SLOAD precompile of the Scroll L2 in uniswap v4 hooks, to enable new possibilities on L2

Migrator ETHBelgrade

MigratoOor is a community-goods tool to migrate a project's token from L1 to Scroll with the possibility to customize different types of incentives mechanisms in a verifiable way through zk-EVM and vLayer, and leveraging Scroll's L1SLOAD precompile.