192 points · by bpierre · 3y ago · 181 comments
One thought it does raise in my mind, though - this is complicated.
Bitcoin is simple. The rules are simple. Simple is really good when it comes to securing a currency.
This, in comparison... I mean, oof. I get the high-level "proof of stake" idea, which (in my mind) has a similar mental complexity to Bitcoin's. But all the algorithms that need to work to support it... it introduces the idea in my mind that somewhere in one of those algorithms is a small oversight. Even if that's not the case, the thought is there.
My opinions on proof-of-stake hasn't changed (seems much better than PoW in real-world use for so many reasons) but it does seem to erode the beautiful simplicity of proof-of-work.
Someday there will be another doctrinal conflict with a near 50/50 split in the community. Probably for the same reason - some DAO hack too massive to ignore. In a proof-of-work world, we can evaluate the health of each fork by measuring the scarce physical resources allocated to each.
In a proof-of-stake world, each fork can have a valid voting majority of stakers. There's no actually-scarce resource to split, so no external mechanism to decide which fork is the "real" one.
I wouldn't bet a potential future world monetary system on this scheme.
What might eventually happen is that some % of the validators exit Ethereum mainnet and enter their deposit into an another blockchain, perhaps giving it a different name and set of features and tradeoffs.
More details:
https://ethereum.stackexchange.com/a/591
https://blog.ethereum.org/2015/08/01/introducing-casper-frie...
45% of validators sign on fork A
45% of validators sign on fork B
10% of validators sign both A and B (coincidentally such that they get evenly slashed between the two)
That is, there question of what "Ethereum Mainnet" is will not be clear-cut and depending on who you ask.The key is in the fact that violating the rules on Ethereum's PoS causes you to lose Ether, which means you eventually lose all your Ether and can no longer sabotage the chain. This is in contrast with PoW systems, where your mining hardware doesn't deteriorate any faster just because you are mining empty or invalid blocks, so you can do that forever and effectively shut down a chain that is small enough relative to your computer power. The only defence a PoW fork has against such an attack is to switch to a different algorithm that is less compatible to the attacker's hardware, but that harms non-attacking miners just as much. PoW has an element of "might make right" while PoS is completely consensual.
If you do change the chain id, then by definition your chain is the new and different one, because it has a different id.
Genuine question: how does that work? How does ETH mainnet know that my validator is also voting on a different chain?
In contrast, in PoW, there's nothing stopping miners from creating a hostile fork that is economically advantageous to them (despite maybe being "worse" overall) and then flipping back to the original chain if their fork doesn't work out. Their hash power can't be slashed in the same way stakers ETH can be in PoS.
So what really happened when a PoS chain forked? Justin Sun learned the hard way.
If anything happens, the fork anointed by Vitalik will prevail. Otherwise, ETH is doomed. Quite simple, really…
Basically a dispute that allowed to sell the same bitcoin twice?
Here you potentially have a way to sell the same eth tokens few times. Revolutionary!
Also, you can't even unstake your eth. The developers promise it's coming soon, but right now, you can't.
On the other hand the hotstuff protocol is much more easy to grasp IMO (check my explanation in the book Real-World Cryptography)
PS: oh and also Bitcoin proof of security seems like a nightmare. It’s nice to create protocols that look simple but if you can’t prove their security it’s a bit dumb :) on the other hand the safety proof of hotstuff is quite comprehensive : https://www.davidwong.fr/lbft_safety/
I had to look up hotstuff proof of stake. As far as I can tell that's not what Ethereum (the coin we are discussing here) uses? Not sure where you are going with this.
Vaccines and cars and everything else you hint at have been around a long time and the trade-offs are pretty well understood. Proof of stake (and it's various implementations) have a long way to go before they reach that status
Compared to the likes of Ethereum, Bitcoin is super simple. Compared to others, it's still somewhat complicated.
While the use of PoW for consensus is super simple (most cumulative difficulty wins), Bitcoin script is a huge source of complexity in itself, with tons of warts. As it turns out, you don't need script to do payments, multi-signatures, atomic swaps, discreet log contracts, bidirectional payment channels etc., i.e. nearly all of the functionality that script is used for. All those can be done with so-called script-less scripts [1], which is mostly creative use of Schnorr signatures.
Bitcoin's emission is not that simple either with the reward halvings every 4 years. A fixed block subsidy (i.e. pure linear emission) is not only simpler, but arguably fairer too, avoiding a concentration of wealth on early miners/adopters, and leaving later generations more than mere crumbs.
[1] https://suredbits.com/schnorr-applications-scriptless-script...
The halving is probably the reason for the high tides of Bitcoin prices and the inflow of capital to all of cryptocurrency.
Yet Ethereum had a premine of around 60M, roughly half of all existing coins today. Later emission seems negligible regarding fairness.
In terms of fairness of coin distribution, 100% PoS < Ethereum < Bitcoin < Pure Linear Emission.
PoS effectively ends the distribution of new coins, with everybody able to stake to just preserve their share of the pie.
You are not supposed to buy ETH as a way to speculate on its price.
ETH is a resource used to represent processing and storage power. You can think of it as "AWS credits" that you can buy and use to run programs.
The absolute price of ETH is of no interest. The only meaningful number that you should care about is "what is the gas price compared to the ETH price", as in, "how expensive is it to access decentralized computing".
Speculating on ETH value is an investment strategy that is completely separate for ETH utility. People interested in the latter shouldn't care about the former. Just as people using AWS shouldn't really care about AWS stock price.
It might add a lot of implementation complexity, but in terms of conceptual complexity, it's pretty easy to understand at a high level.
I also don't find bitcoin halving complex to understand either. Whether its good is a separate question.
I think it’s quite well written and worth a look.
It's bizarre to me that people wrote a contract that says one can take the money in certain circumstances, but then completely refused to abide by that.
I really feel bad for the person who figured out how to get the money but then was denied by insecure bullies. What an absolute joke.
Strikes me as strongly analogous as to why each of us doesn't run our own email server? Which is, when email was first invented, may have not seemed like a bad idea, but in terms of scale something like federation works better?
Its faster! Its new! Its more advanced!
Simple protocols take time to land, and are often digestions of much more complicated protocols. We’ve seen that with TLS being simplified into Noise, or the sponge function for hash functions. If you look at the history of consensus protocols they are getting simpler and simpler as well, arguably hotstuff and streamlet and all the hotstuff variants are simpler and simpler to understand.
I know you can join cooperatives for this purpose, but then it’s not your crypto anymore and this space is filled with thieves and con artists.
It’s something I’ve been kicking around as an idea for a while as part of a diversified portfolio, if eth drops to a point where I could afford 32.
I’m extremely skeptical of cryptocurrencies, but eth is the best of them and the network transaction volume is supposedly in the neighborhood with Visa ( something I find hard to believe.)
Then there is a very helpful community called EthStaker - they have a subreddit at r/ethstaker and a discord (invite should be available in the subreddit).
If you want something a little more automated, Dappnode is a well regarded web based front-end and the Rocketpool node stack makes things very easy to be an operator for their pool using a TUI.
There are a lot of options, with a wide range of requirement and capabilities.
[1]https://www.coincashew.com/coins/overview-eth/guide-or-how-t... [2]https://someresat.medium.com/ [3]https://eth-docker.net/
I think the PR line is that PoS ETH can “scale to 100,000 TPS”, but it’s currently pushing 15-30 [1]. Visa does much more, though various figures are reported from 1,750 to 24,000. So, grains of salt and all that.
Important to note that Ethereum embraces the idea that L2's will provide a lot of the scale and L1 will remain the base, main layer of security. So the goal isn't for L1 to scale massively, but to be able to support a healthy ecosystem of secure L2's which scale in different ways!
Current network demand doesn’t really require them, but after EIP-4844, “100 000 TPS” should be possible.
For one, Visa just does funds transfers. If Ethereum just transferred ETH, it could do 700 tx/sec, based on the gas limit per block divided by the 20K gas for a simple ETH transfer. A lot of Ethereum transactions are more complex and use more gas.
Second, second-layer "rollups" already support transaction rates up to a couple thousand per second, without losing base-layer security guarantees. Essentially they compress the transactions on chain. (Actual traffic is much lower than that, so far.)
The longer-term plan is to move to rollups in a big way, and add a form of data sharding to multiply the on-chain data storage. That's where the 100K/sec comes from.
So... Still an order of magnitude less than Visa.
> A lot of Ethereum transactions are more complex and use more gas.
How complex are they, are they a significant number, and dies this explain the abysmal transaction rates?
Visa aside, on Singles Day AliPay does 1 to 1.5 billion transactions in one day.
Okay. AliPay is an outlier. Klarna does about 2 million transactions per day, an average of 23 per second (it's significantly higher during peak hours, and lower during off-peak hours. Source: worked at Klarna). The transaction includes: client lookup (a complicated affair that differs from country to country and session to session), credit score calculation, order set up, payment (out of a several dozen different options) set up... all while conforming to banking and local regulations across 45 countries. Anything in eth anywhere close to that complexity-wise?
> Second, second-layer "rollups" already support transaction rates up to a couple thousand per second
So layer 2 batches transaction into a batch that then gets batched on layer 1 into a bugger batch that is then written in one go to the blockchain.
Congrats, you've reinvented batch processing.
Testnets already happening. Q1 2023 on the table.
Given that they successfully transitioned an entire consensus change and things didn't implode (yet), I'm feeling a bit more optimistic that they can do withdrawals.
You don't need five nines of uptime, you need like, two.
You don't get subject to slashing for your node going offline, you only get slashed if your node is doing shit out of consensus like actively cooperating in double spends.
Look up "inactivity leak". If enough staked value (>1/3) is offline, those nodes get slashed until >2/3 of the total stake is online again.
Bitcoin has the lightning network based on Bitcoin smart contracts that can do Visa-like rates of Visa-like transactions. I don't know if Ethereum has anything like that.
For software Rocketpool has a really nice guide + configuration GUI, and you only need 16eth for it and you get more rewards than from a normal staking node. It's still fully self custodial.
Choices are: use custodial staking (share your keys with custodian - risky), use non-custodial staking (keeps your keys private but has costs e.g. Lido charges 10% of your staking rewards), use an L2 coin (risks), use a financial proxy for Etherium (ugggh).
I guess running your own node means you can’t use a cold wallet, so security costs/risks are high?
Rocketpool is non-custodial, allows you to run your own node with about 17.6 eth (16 eth + 1.6 eth worth of their token), and then earn a commission from the folks contributing the other 16 eth and not running a node. There is a decent amount of smart contract risk and risk around the value of the token, but it is a generally working protocol.
> I guess running your own node means you can’t use a cold wallet, so security costs/risks are high?
To answer the security concern - The staking keys can only be used for validation activities, and can't be used to spend the funds. When depositing the stake, you can specify a normal ethereum address where withdrawn funds will go to, and that address can be controlled with a hardware or cold paper wallet/signer. The worst an attacker who compromised your node and took your staking keys could do is get you slashed (a little more then a 1 eth penalty in normal circumstances), which would be of no benefit to them.
Or maybe do some of the “Byzantine validator” attacks in the paper?
Thank you for the staking keys info - I find it difficult to grok crypto systems.
Why do the first two images after the LMD-Ghost section [1] look like they were made on an iPad? All the other images are made using proper tools. I didn't realize that the letter in the first image was a V because it looked like a N. Feels slightly inconsistent.
[1] - https://github.com/ethereum/pos-evolution/blob/master/pos-ev...
Yeah, that totally won't backfire.
What’s the real difference, other than lag time for PoW?
Can you reword this? Not quite sure what you're asking
i need something basic, like alice and bob contract to sell 100 watermelons for 1 BTC and sarah is the arbitrator in case they have a problem... something like this.
or a smart contract to validate a sale of a house for 2 BTC.
or a partnership deed for a business between alice and bob with 3 clauses
After developing the contract, use something like Truffle Suite to validate that the contract is good, and add a testing suite around it.[1]
Find a test net for the coin that you're developing for and create an account. Generally testnets will allow you to have "play money" to work with. This will allow you to learn how to deploy your contract to the testnet (which is functionally identical to mainnet)
Deploy it there, test it further. Write apps around it with tools like web3.js or eth.js as appropriate.
Buy some currency for the applicable mainnet and deploy your contract to mainnet just as you did with testnet, only this time it'll cost actual currency to deploy -- this will vary wildly by network and token and such.
This guy's videos are pretty helpful: https://www.dappuniversity.com/articles/the-ultimate-ethereu...
Different tokens have different protocols and such. The above works for Eth and Eth-based tokens. Cardano is Haskell-based, and refers to smart contracts as programs, and the process is wildly different. Some other tokens use Rust, or other languages, but the BASIC outline I've laid out is basically the same no matter which (except for Cardano, which may be the same, I have no idea.)
What you can do is anything that is related to moving ETH or ERC tokens/NFTs between addresses.
So an example that you see often is a Kickstarter type contract. This contract collects ETH from many sources over a period of time but will only pay out to the payout address if the minimum is reached in that time period. Otherwise all the funds are returned. This contract is fully autonomous and can be validated to do what it is supposed to do. You don't have to trust a single company like Kickstarter to follow the rules or not cancled your compain. The project being a scam or not compleeting is another story.
So in other words what you can do in a smart contract are financial constructs that are zero trust.
The reason many scams happen is also in part that people are not checking that the contracts are solid and prevent rug pulls etc.
Come to think of it, though, it doesn’t even guarantee that. The person who created the contract and will get the funds if the minimum is reached could always just send ETH from one of their other own accounts to trigger the threshold.
If the contact enforces that when $tokenAmount is sent to $address, $asset is sent to $depositor.
If and when more things exist on the blockchain, and/or more physical institutions sign on to it, and/or more and more digital goods are worth transacting in such a fashion, then smart contracts will make more sense.
If neither of those materialize more tangibly than they do, it'll be hard to manufacture use cases for it, I think (though I am hardly an expert).
But considering the types of things that are already mostly digital, it seems like we have the _potential_ to lean into the latter case. Domain names, accounts, Github subscriptions, e-books, music, rights to watch movies / television shows, etc., those things could all be integrated into the blockchain and enforced via smart contracts easily.
Probably the best use case I've seen is stadium / conference tickets, but if we ever get to a phase where companies significantly adopt, we can do some interesting things, like communal ownership of assets. Ownership stake can be variable, depending on who is doing the most work. Profits could then conceivably be distributed among those who have earned it the most. "What to do next" could be a decision that is decided upon by a council of token-holders, for better or worse, and truly non-managerial workers could meaningfully participate in a company's decision-making, profit-sharing, etc.
Ah yes. It's the people's fault that they don't check code in esoteric programming languages running on esoteric VMs using made up words for everything.
Sometimes it feels like Urbit...
Which is why they're useless except for implementing complicated financial schemes. Which, in practice, are mostly scams.
Not really true, though you can at least look at the code for all the good it'll do most people.
6. The theory is to dispel the myth that blockchain is a fringe technology used only by those wanting to risk their livelihoods or possibly make their fortunes on volatile cryptoassets like Bitcoin.
7. The blockchain is now at a stage in its development equivalent to where the internet was in or around 1995. The internet was unstoppable in 1995 and blockchain technology is unstoppable now. It will become ubiquitous in all major industrial and financial sectors, simply because it allows for the immutable recording of data, thereby reducing friction in commercial and consumer transactions and obliterating the scope for dispute as to what has occurred.
8. As the Master of the Rolls and Head of Civil Justice in England and Wales, I hold an office that pre-dates modern trade in derivatives and reinsurance, even steam engines, powered flight, and certainly the internet. I am particularly and obviously concerned about the reputation and development of English law and the jurisdiction of England and Wales.
9. Many people do not realise that English law governs trading in €600 trillion of OTC derivatives annually, in €11.6 trillion in metals trading, in £250 billion in M&A deals, and in £80 billion in insurance contracts every year – just to take a few examples. My hope is that English law will prove to be the law of choice for borderless blockchain technology as its take up grows exponentially in the months and years to come.
https://www.judiciary.uk/wp-content/uploads/2022/02/Speech-M...
>alice and bob contract to sell 100 watermelons for 1 BTC and sarah is the arbitrator in case they have a problem... something like this
You create an owner variable that is used to show who can withdraw from the smart contract and is set to 0 at the start. You add 2 methods. The first is a method that is only usable by Sarah that lets her change the owner variable. The second is a withdraw function that is only usable by the owner. You can even enforce that the owner can only be set to Alice or Bob if you want.
Bob deposits 1 wrapped BTC. If Alice gives him the watermolens Sarah sets Alice as the owner. If Alice doesn't Sarah sets Bob as the owner.
>a smart contract to validate a sale of a house for 2 BTC.
You don't need a smart contract for that. Every transaction already gets validated by the network.
>a partnership deed for a business between alice and bob with 3 clauses
This depends on the clauses but you would put all the company assets into the smart contract and then write methods that let you spend those assets while not violating those clauses.
People recommend ethernauts[1] and cryptozombies[2], but I found those quite slow when I was learning. Most useful for me was reading existing implementations of smart contracts, and learning from there.
M1guelpf wrote these a while ago, might be helpful examples: https://github.com/m1guelpf/lil-web3
happy to chat if you need help
anyway try scaffoldeth.io
you compile the tutorial website first and then build a bunch of common smart contract scaffolding
note this is the EVM ecosystem so it would be impossible to conflate example in pure BTC, smart contracts are playing catchup in BTC ecosystem. There are a couple competing attempts there, very little scaffolding. There are many orders of magnitude more activity in the EVM ecosystem than there are in bitcoin ecosystem/UXTO model smart contracts.
However, there are many other valid criticisms of crypto. So that's a weird strawman you're setting up there.
Of course. Just don't listen to the extreme ones, who continue to screech and parrot the same old absolutist takes over and over again to the media for engagement farming.
The truth is crypto is here to stay, but not all of them are going to survive. Only a few projects and cryptocurrencies will still be around longer than others and both crypto maximalists and anti-crypto absolutists are going to end up compromising in the end.