Hacker News new | past | comments | ask | show | jobs | submit login
Why should you care about Ethereum Layer-2? (thecryptojournal.substack.com)
59 points by muzikman1 on Jan 23, 2022 | hide | past | favorite | 66 comments



Kneejerk dismissals here are sad to see.

L2 is, in my view, some of the most interesting research happening in computer science right now. The article above is not a great explanation--in particular, L2s are not off-chain as the article presents. The point of L2 is that it on-chain, inheriting the security and censorship resistance guarantees of L1.

To simplify: L2 is about creating a fast, high throughput state machine whose state transitions are verifiable on a blockchain. Blockchains, in turn, are about creating a uncensorable state machine that reaches global consensus.

So L1 achieves security, and L2 adds speed.

So why not just make L1 fast to begin with?

The strong guarantees of L1 rely on a lot of validators (on the order of ~10k+, worldwide, often on home internet connections) verifying each state transition. This puts a fairly low practical ceiling on how fast L1 can go.

L2 uses centralized sequencers to run transactions much faster, but uses a mechanism that runs on L1 to ensure the sequencer can't cheat.

The main mechanisms are 1. optimistic rollups and 2. ZK rollups. The latter, in particular, are fascinating. If you care about distributed systems even a little bit, it pays to suppress your skepticism and learn about how they work.

Good starting point: https://vitalik.ca/general/2021/01/05/rollup.html

Alternatively if you believe this is all just a ponzi scheme involving ape jpegs, bookmark this comment and come back in 3 years.


agree, ZKProofs are really interesting and i'm sure they will come to be used across lots of areas of the web and not just blockchain, though their use and development is most active in the blockchain space for how useful they are for privacy+scalability.

Proving knowledge without revealing information allows us to prove computations (validating them is a lot quicker than repeating the computation) and "use things" without sacrificing privacy. You can combine the two and have private transactions which are then rolled up in a computation, and then post the proof of the computation to mainnet. You get both cheap and private transactions and infra on top of the base chain.

But this goes beyond blockchain: we can hand code to other people to run and then have proof they haven't altered what we agreed upon running, so we can trust the results of someone else running something. That is useful in all sorts of research for replicability in science/engineering.

WIRED Computer Scientist Explains One Concept in 5 Levels of Difficulty : https://www.youtube.com/watch?v=fOGdb1CTu5c

https://developers.aztec.network/

https://z.cash/technology/zksnarks/

https://github.com/matter-labs/awesome-zero-knowledge-proofs


> i'm sure they will come to be used across lots of areas of the web and not just blockchain

Totally agree with this. After working closely with zk I noticed that it boosts your thinking about decentralized protocols in the same way as knowing about signatures or hashes.

Right now infrastructure for doing zk is in “alpha” stage and different proving systems and optimizations are fairly new and not widely used. I believe it will grow bigger It’s very exciting field.

(I worked on zk rollup called zksync but zk rollups are only one of the use cases for zk proofs)


The primary function of finance is to enable economic agents to trade future consumption for present consumption, by means of debt. And debt requires a trusted third-party that has the capacity to re-allocate assets. Otherwise the borrower can simply walk away with the money, and never repay the debt. Now, blockchains, not only lack a trusted third-party that can re-allocate assets, but they are designed with the explicit goal of preventing such re-allocations. Therefore my question is how can this technology be the "future of finance" when it's designed from the ground up to be incompatible with finance?


There is no reason that the third-party cant be a contract with globally accessible permissionless apis, that let you borrow peer2peer or peer2protocol against your assets, and that upon you not repaying your debt liquidates your position (by other people/protocols bidding for the assets that are out of position, usually over-collateralized at 150% min).

Most of defi is structured in this way and it is working fine, it works because it IS being integrated and made compatible with existing finance.

This is "futuristic" because anyone in the world has opportunity to lend/borrow to anyone else in the world, to write code that automates savings accounts by rotating these positions, to write business logic of their startup to borrow money when they need and pay it back when its the best time for them - scaling their finance on demand like spinning up an ec2 instance. A system where you have more voice and opportunity for your work/savings/co-op/club, compared with whatever the state of banking is in wherever you happen to be born in the world.

Concrete example: I asked my bank to borrow some money and showed them my bitcoin, they predictably said no because their system cant handle it. I wrapped it onto ethereum, deposited it in aave, borrowed usdc, withdrew to my bank account and carried on with my life without needing the banks permissions. The people lending that usdc to aave to lend out to me know it is safe and I cant run off never paying back my debts and interest (otherwise they get my over-collateralized btc).

permissionless global p2p lending and borrowing. it isn't futuristic, it is the present. ill never understand why "hacker"news doesnt find that amazing.


You don't seem to get it. If the borrower has to put up 100% collateral it means that their buying power remains the same. Borrowers borrow money in order to increase their present buying power (at the expense of future buying power). You can't do that with overcollateralised loans, smart contracts, or blockchain technology.


> You don't seem to get it

No, you are only describing a part of what borrowing is about. Your use case is valid, but it is just one of many use cases. Consider the following:

I own a a long-term retirement account, but I need to pay an emergency medical bill and don't have cash at hand. Obviously I don't want to liquidate my savings account, but I can put it up as collateral to go to a bank and get a cash loan. If I'm unable to pay the account may be liquidated. That's an overcolleralized loan. It's useful. The same is happening when you put up your house as collateral, or arguably even your reputation.

The blockchain equivalent of this is the same. You put up one asset as collateral e.g. Bitcoin, and you can get another more liquid asset.

Another use case for this is simply market exposure and hedging. You can put up Bitcoin as collateral, still having exposure, and then use the loan to buy another asset to get exposure to, creating a more complex structured exposure. This has nothing to do with blockchain, it's the same in traditional finance.


An overcollateralised loan is equivalent to a swap (a type of derivative). Swaps have their uses, and are used in finance, but they don't provide financing. The point is if blockchain technology can't be used to do financing, and it definitely can't, just don't call it the "future of finance", because it is not. It can't perform the basic function of finance, which is financing.


How is a mortgage not financing, and how is a mortgage not just another over-collateralized loan?

Every loan has some form of collateral. Even credit cards do, it's just less tangible: you are staking your credit score, which they'll start chipping away at as soon as you start defaulting.


A mortgage is indeed a form of financing because the lender does not keep the collateral until the debt is paid off in full. If they did, there would be no financing going on. It would be equivalent to saving for 30 years and then buying the house.


Mortgages are overcollateralized loans.

Credit cards are loans based on future income streams (which can be securitised in fact with crypto technology -- think a defi bank automatically getting 20% of your future income until it is repaid)


The problem isn't overcollateralisation itself but the inability to seize the collateral in particular, and assets in general. A mortgage depends crucially on the bank's ability to seize the collateral in the event of default, and the same applies to credit cards. The problem is blockchain assets are unconfiscatable, which means any form of financing involving such assets is unworkable.


No, blockchain assets can be confiscated. Maker, Aave, confiscate and liquidated billions of assets in the past few days.

Smart contracts are Turing complete and you can build anything with it. You can even build an opt-in judiciary system with the power to reverse transactions.

I think you'll be pleasantly surprised if you look at how DeFi actually works.


No, Maker & Aave haven't confiscated anything in the past few days. Either you don't know what 'confiscate' means or you don't know how Maker & Aave, and DeFi lending in general, work.


You could use existing trusted lending Institutions, no? Investors can loan their excess Bitcoin to a lending institution that pools Bitcoin from multiple investors and loans it out to borrowers? In return, the investor receives interest on the loaned amount when it is paid back in full? If the loan isn’t repaid, the courts get involved to seize other physical assets from the borrower (cars, homes, etc.).

In some sense, we would be back to having banks with the exception that the bank now exists solely as an investment vehicle.

I guess I’m struggling to see what barriers prevent crypto currencies from being used in traditional financing?


Nothing prevents crypto-currency denominated loans in traditional finance. That was not the claim. The claim is that financing operations are not possible in so-called "decentralised finance".


Ahh I see! Thanks for the clarification!


Loans are an important concept, that's true. Do blockchains inherently prevent loans? I'm not sure, I think Ethereum smart contracts enable the concept of loans. The 3rd party here is the contract itself, as I understand it.


Blockchain "loans" are fully collateralised and sometimes even require upto 4x the collateral than the loan itself. This is not useful in the vast majority of cases


If I lend you 1 ETH, I have no means to make you pay me back. Smart contracts can't do that either. A smart contract cannot seize 1 ETH from your wallet and send it back to my wallet. Blockchains are designed specifically to prevent that.


That's not true, you can definitely do this with a smart contract blockchain like Ethereum, and there are plenty of loan protocols already that do this in production with $ billions in assets transacted.

No one can steal your ETH from your wallet, but they can liquidate your staked collateral held by the smart contract.


If the collateral is "held by a smart contract" it means your buying power hasn't changed and you haven't financed anything.


Are you saying that most loans are uncollateralized?


I'm saying that blockchain technology is inherently incompatible with financing, which is the basic and most important function of finance.


There's no reason why Blockchains can't also incorporate their own trust model to facilitate lending that isn't fully collateralized. There are already projects working towards this. Pseudonymous p2p lending isn't some impossible thing.

The current frothy state of crypto, unsustainable as it may be, is evidence that people are willing to trust crypto projects enough to give them money if there's a chance of getting some amount of more money. Much of this looks like equity financing. Debt financing isn't inherently off limits though it just is harder.


Debt financing is definitely not simply harder but entirely impossible. If you think otherwise, please explain how the borrower can be made to repay the debt with this technology.


Borrowers cannot be "made" to repay debt in traditional finance either. Lenders must make decisions based on some measure of the credit worthiness of potential borrowers. The same mechanisms could be replicated on blockchains. See:

https://docs.truefi.io/faq/ https://teller.gitbook.io/teller-docs/protocol-1/overview


What? Of course borrowers can be made to repay the debt in traditional finance. Get a loan from your bank, and refuse to pay it back. See what happens. If don't understand the basic mechanisms behind a loan agreement, there's no point in continuing this conversation.


> Get a loan from your bank, and refuse to pay it back.

I don't even know where to begin when it comes to examples of just that happening. Defaulting on debt is something that happens with every single form of credit. It's extremely fundamental to the idea of debt.


Nobody says defaults don't happen. Defaults happen all the time. When they happen the creditor will initiate legal action against the borrower. If the borrower continues to refuse to pay or is unable to do so, the court will seize the borrower's assets and will liquidate them in order to pay the debt to the extent possible. This is process is impossible to replicate with a "smart contract" because smart contracts lack the ability to seize assets.


The mechanism for "making" repayment mandatory is the state. Credit worthiness (or any other information) is useless if the debtor cannot be made to repay


Yes, ZK is cool. I expect to hear about it on other chains too. One of the lower visibility projects I follow, Symbol, has a similar concept of subchains and is already working towards applications on them.


Thank you for your reply.

It does not say it's 'off-chain'. It says that the scalability solution is off-chain - 'can process transactions off-chain'.

See: https://ethereum.org/en/developers/docs/scaling/


you should do a https://longbets.org/


The article doesn't live up to the title. I'm still not sure why I should care.


As a tl;dr for people not familiar with web3. Doing things in the web3 that change the Blockchain (like buying nfts for example) has a large cost on "gas" (ie fees you pay for your transaction to be included in the Blockchain). These are more that $30 euros and may go up to $80 euros (depending on what you want to do). So if you want to buy an nft for like $30 you will pay $30 more for the ethereum fees. This makes web3 viable only for very expensive stuff, making it more or less non usable and defeating its whole purpose.

The solution to that is stuff like polygon which is an ethereum compatible network ( meaning that smart contracts that run on ethereum can be also deployed to polygon without changes) and has minimum fees. The same thing that has $30 fees on ethereum will have line $0.01 in polygon. So polygon can be easily used for all kind of stuff without the need to pay the heavy gas premium.

This is possible because polygon uses a different concencus model (proof of stake) than ethereum (proof of work).


> This is possible because polygon uses a different concencus model (proof of stake) than ethereum (proof of work).

Does this mean Polygon will become obsolete when Ethereum moves to PoS?


>when Ethereum moves to PoS

The Sun having entered the red giant phase will take out Polygon long before Ethereum actually moves to PoS.


If you don't think it'll happen 2022, I have some Ethereum Classic to sell you.


No if it really becomes an L2 (currently it's just a sidechain). L2s are here to stay as the scaling solution unless Ethereum change their minds on what direction to go in again.


Why isn't etherium deprecated then and everyone moves to polygon? What's the catch?


Because Polygon is a different chain and people have billions locked in Ethereum. Layer-2 allow users to transfer their tokens to the Layer-2 without trusting a third-party bridge. Funds on L2 are secured by L1.


I can perhaps shed some light on this. I am the founder of Moonstream (https://moonstream.to). Our customers use our API to consume on-chain events from their off-chain infrastructure. We currently support Ethereum and Polygon, and run our own nodes on both blockchains.

Polygon is much less decentralized than Ethereum. There are 100 validators on the network. In the future, there will be some sort of scoring and auction mechanism to ensure only healthy validators. Currently, this mechanism has not been deployed. All 100 slots are taken by an in-group of node runners. It is not a pleasant experience to run a node on Polygon and not be in this in-group because the team does not communicate well with anyone outside the in-group. For example, in December, we experienced several days of downtime after the Polygon team made an emergency security patch that took down almost all nodes on the network but only communicated it to the in-group. This outage hit us, Polygonscan, and many independent node operators and was not a pleasant experience. The Ethereum team, on the other hand, is excellent about communicating upcoming changes, even emergency patches. Things really feel much more open and accessible as a node operator on Ethereum than they do on Polygon.

It is hard to transfer value to Polygon. Most exchanges do not support moving value directly to Polygon (Binance is the notable exception). Most use the Polygon bridge (https://wallet.polygon.technology/bridge). Using the bridge to move from Ethereum to Polygon requires submitting a transaction against the bridging contract on the Ethereum mainnet and current gas costs make this very expensive relative to the value most people want to transfer. You pay roughly $100 for any transfer of value, but most people are transferring less than $10,000 in value per transaction. Also, this bridge went down for over 24 hours last week when Polygon released EIP1559 support. I believe this is a major obstacle to Polygon adoption.

Finally, as a developer, Polygon frequently experiences deep reorgs - up to 40 or 50 blocks deep in my experience. This makes it really difficult for conventional servers to work with on-chain state. Ethereum is really much more stable as a blockchain.

Anyway, I'm not really shitting on Polygon. We do deploy all of our own smart contracts to Polygon before Ethereum because it is a production environment and allows us to incubate our on-chain features with real customers and real feedback before we take them to the show. It also gives us ample time to figure out where we need to optimize gas before moving to Ethereum.

The only part that pisses me off is the in-group/out-group dynamics around running a node, but mafias exist everywhere and no blockchain will change that.


The crystallized 100 validator set has concerned me, and has caused me to presently not run a validator to learn. I was unaware of frequent reorgs.


I don't think they would be able to hit the block rate they do if they allowed more validator nodes.


Ethereum is slated to use proof of stake soon too (no idea how soon, AFAIK it was supposed to be last December).


It was delayed. Again. https://eips.ethereum.org/EIPS/eip-4345

The URL slug saying "may-2022" while the title says June 2022 really exudes confidence, too.


Oh yay :(


What's the relation between L1 sharding and L2 off-chain solutions? If sharding will be implemented will the L2 solutions still be necessary? Is L2 just something to help in the meantime until the harder to implement sharding is working or both will be used on top of eachother to help scalabilty?


No, sharding will increase the throughput but not enough. Ethereum are all-in on L2s long-term for scaling.


You shouldn't care what the marketing website wants you to think.

Don't give them your precious attention and lifespam. You will never get it back.


tldr: because blockchain is too slow for practical uses and one has to resort to off-chain blockchains on blockchain with separate consensus, that go into blockchain.

If you’re still confused why would you care about it, so am I.


a defense of it, from someone who's not in the cryptocurrency scene:

blockchains are useful because they offer decentralized centralization. Ethereum has no policies, no embargoes, it's a neutral platform. this is because everyone can agree that what's on Ethereum is canon, and everyone can access Ethereum (except for how pricey gas is.)

this is the opposite of federations where servers host their own state, with their own terms and conditions or API keys. everyone can agree on putting things in one place. I think that bit is genuinely useful.

so the major problem is that gas is expensive (and PoW is immoral, but I'll leave that for another time.) gas is cheap on altcoins, but nobody (rightly!) trusts bespoke altcoins because they're too small to be secure.

this L2 stuff is the solution, because rolling up to Ethereum keeps the not-an-altcoin L2 chains honest, along with verifying that their aggregation or challenge protocols or whatever are secure.

whether you find a scalable blockchain useful or not is a different matter, but I think L2 protocols will get it there.


That's just too funny: "ethereum has no policies". It had a superb bail out of the initial DAO in 2016, which was deemed too big too fail, and lead to a fork of the chain. So let's not pretend blockchains are neutral immutable ledgers, they exist purely for speculation.


Can you clarify what "not in the cryptocurrency scene" means? You seem to be a proponent.


I haven't invested in cryptocurrency besides a small amount of Bitcoin more than half a decade ago (which I subsequently got locked out of.) I've never worked for any company doing anything blockchain-related. I was enthusiastic early on (2011) but became jaded by seeing how environmentally awful Proof of Work is, and how PoS has stalled.

I find trustless/decentralized protocols intellectually interesting. I didn't count myself as a proponent because I don't have skin in the game.


Fair enough - thanks!


Short answer you should not.


This is why the Solana model is succeeding.


Wasn't Solana down for 72 hours as of this morning?


Succeeding at being barely usable.


Temporarily,

until people realize they are a sidechain,

and Loopring does what they do without inherent added security risks.


Why is Solana a side chain?


Not sure how to answer the question.

This is like asking "why are Google services centralized?".


nothing makes an article seem more legit than having moronic gif's play on a continuous loop while you try to read it. </sarc>


Why? You cannot read it?




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: