44 points · by petethomas · 7y ago · 121 comments
The other problem is the obvious issue that smart contracts make the implicit assumption that we are able to write bug-free code. Evidently, that is not the case.
There clearly needs to be some sort of mechanism to sort out issues that may arise from this. But in practice Ethereum has replaced an imperfect but robust mechanism in the form of the legal system with one guy, who is accountable to no one, making discretionary decisions with no guidelines to bind him.
> ... written contracts can have "bugs" just as smart contracts can.
The onus on smart contracts is to come up with use cases where they are superior to written contract, not to find examples where they are equally flawed.
[0]: twitter.com/vitalikbuterin/status/1051160932699770882
New Thing does W and Z imperfectly.
Therefore, New Thing is doomed.
Old thing does W imperfectly.
New thing does X. Proponents claim that X solves W's imperfections.
Turns out that it doesn't. Opponents claim that X hasn't much value then, so it's doomed.
Clearly the use case is in bypassing a third parties and avoiding risk. There is no clear value in grey areas there. In valuing technology, it is the best use case you can think of that counts, not the worst.
Ethereum is a specific form of smart contracts where the use case compared to other forms is perhaps not as clear cut, but that doesn't stop people from speculating on the possibility.
I think this is wrong approach. Ethereum and most of the altcoins are not tools aimed to solve a problem. They are gambling machines. What matters for them is marketing, charismatic leader and wide audience (developers). Ethereum has all of these.
Is it? I know that some people intend the code to be law, but I suspect if/when this butts up against the real legal system, we'll see a variety of different interpretations.
Just because someone left their window open doesn't mean you get to take all their stuff.
// User should only receive positive deposit from this code
But someone finds a vulnerability to withdraw instead of deposit. The code allows it, but the comment says that shouldn't be allowed. Did they act in bad faith, with fraud in mind?
And to add on to that, could you consider function names as part of documentation/proof? ie. deposit()
And to add on to that, what about the actual code: if reasonably prudent person were to read the code and assume it was made to deposit only, is that sufficient?
I would assume a judge would say yes.
Also, the Ethereum blockchain has only the compiled version of the smart contracts that use a bytecode for a simple virtual machine. So the source code (and the comments) disappear before entering the blockchain.
[I guess you can add some comments in some dead code that is not optimized away during compilation, making the smart contract burn a small amount of additional gas each time it runs. My guess is that the current compilation just strips the comments.]
https://www.nolo.com/legal-encyclopedia/contracts-basics-333...
For example, there is $250,000,000 worth of Ether in the MakerDAO contract, collateralizing around $70,000,000 in DAI, a decentralized stablecoin that has maintained its peg to the dollar during a 90% price drop of the underlying asset, Ether.
This blog post reads like someone in 1992 using some obscure hypothetical FTP server bug to argue that secure computer networks are by definition impossible.
You could say the same about many hacks that involve money and assets. Judge, the software let me in! That was the original intention of the programmers!
To get away with something like this you're going to have to convince a judge or jury that exploiting a bug in a software program entitles you to a huge payout. I suspect this might fall under unjust enrichment.
The difference being that ethereum smart contracts are supposed to be autonomous, hence "The Code is the Contract".
If you need or rely on outside parties then why not just have a standard contract?
That's probably not the universal take. My take is there is a place for automated smart contracts, and a place for traditional contracts. For instance, you can hardly prove beyond any doubt that a package was delivered successfully and so payment can be dispersed. Too much room for fraud there. But for many other digital services I think it would work out fine. AFAIU it's been working quite well for microgrid projects.
(Specifically smart contracts and ethereum as a whole, not really the DAO. Don't know much about that)
A centralized system works fine for those situations though. Adding Eth into the mix doesn't improve anything in this scenario.
Traditional software makes no such claim.
but yeah, basically.
Simplicity is a typed, combinator-based, functional language without loops and recursion, designed to be used for crypto-currencies and blockchain applications. It aims to improve upon existing crypto-currency languages, such as Bitcoin Script and Ethereum’s EVM, while avoiding some of the problems they face. Simplicity comes with formal denotational semantics defined in Coq, a popular, general purpose software proof assistant. Simplicity also includes operational semantics that are defined with an abstract machine that we call the Bit Machine. The Bit Machine is used as a tool for measuring the computational space and time resources needed to evaluate Simplicity programs. Owing to its Turing incompleteness, Simplicity is amenable to static analysis that can be used to derive upper bounds on the computational resources needed, prior to execution. While Turing incomplete, Simplicity can express any finitary function, which we believe is enough to build useful “smart contracts” for blockchain applications.
The idea being we're a few years at least before language and infrastructure can be mature enough to have value for most users beyond earliest of adopters. The other languages you've mentioned are much further along than any "dApp" platform at what they do. Decentralized application platforms like Ethereum are a new space with new requirements but, as far as I can tell, necessitate a new language to satisfy unique requirements. The hot-take is that Solidity is probably going to take some big changes to make it much further. I've not been impressed with it.
> we're a few years at least before language and infrastructure can be mature enough to have value for most users beyond earliest of adopters
There isn't really a clear explanation of why that would be the case. The bottom line is that smart contracts require a trusted oracle to feed data into the system, at that point, the advantages over a centralized system are essentially zero. There is no reason why anyone except enthusiasts, tinkerers and criminals would get involved.
There's a huge difference between something being necessary and something being useful. I'm in no way an evangelist, but I can at least imagine some interesting applications of blockchain.
You can make transactions that would normally be blocked by your country's legal system or zealous traditional payment processors.
Satoshi left out Turing-completeness from Bitcoin for this exact reason.
Posting stale criticism (3 years old) about a technology that is still evolving at this time strikes me as FUD.