It seems possible (or already real out there?) to have an ERC-20 bridge between L1 and L2s; I wonder how this works.
I'd expect that I'd have to transfer my ERC-20 token to the L1 bridge contract address (let's call it 0xAAA).
Probably, there's some relayer watching for "Transfer" events that are targeted to 0xAAA, so it knows something relevant happened. It waits until this txn is final in L1 just to be sure.
Now, this relayer would send a tx to the L2 bridge contract to confirm that this ERC-20 is fine to be created in the L2; and here is where my questions appear:
Q1) Can the L2 bridge contract do some extra verification that the relayer isn't lying? Unless the L2 bridge has a way of knowing the TxnReceipt root and accepts a Merkle Proof of the relayer, then I don't think it's possible?
Q2) How is this ERC-20 in L2 created? The underlying smart-contract of the ERC-20 in L1 might not exist in L1. How are these ERC-20 in L2 represented? Maybe the relayer also deployed the underlying smart-contract bytecode?
The Q2 is what I find harder to understand. I'm not sure what it means to move an ERC-20 from L1 to a L2 where that ERC-20 contract doesn't even exist.
[link] [comments]
You can get bonuses upto $100 FREE BONUS when you:
π° Install these recommended apps:
π² SocialGood - 100% Crypto Back on Everyday Shopping
π² xPortal - The DeFi For The Next Billion
π² CryptoTab Browser - Lightweight, fast, and ready to mine!
π° Register on these recommended exchanges:
π‘ Binanceπ‘ Bitfinexπ‘ Bitmartπ‘ Bittrexπ‘ Bitget
π‘ CoinExπ‘ Crypto.comπ‘ Gate.ioπ‘ Huobiπ‘ Kucoin.
Comments