4 ms·
If the loss had happened to anyone else other than the people behind Etherium, the fork would never have happened. A fundamental problem with Etherium is contr
by Animats 10y ago
If the loss had happened to anyone else other than the people behind Etherium, the fork would never have happened.
A fundamental problem with Etherium is contracts between anonymous parties. If the other party in the DAO hack was discoverable, the hack would not have been a major problem.
Executable, rather than declarative contracts, are probably a bad idea. Putting in a virtual machine is a cop-out - it means you don't know how to solve the problem of expressing contracts formally, and are pushing it off on someone else. That someone else will probably botch it, as the DAO did. I've previously suggested that decision tables [1] would be a better basis for a contract system. This decision table tutorial [2] is something of an ad for a tool, but it uses as an example the sort of things one would want in a contract.
[1] https://en.wikipedia.org/wiki/Decision_table https://en.wikipedia.org/wiki/Decision_table
[2] http://reqtest.com/requirements-blog/a-guide-to-using-decision-tables/ http://reqtest.com/requirements-blog/a-guide-to-using-decisi...
- grandalf 10y agoDo you know if there is anyone working on declarative contracts? I was thinking that at least some sort of declarative way of bounding the contract's behavior might be useful.
- Animats 10y agoLots of people are working on declarative contracts. Here's an overview.[1] That paper has a set of desirable properties for a contract language, and analyzes some of the existing ones against those properties. Here's a contract language from 2002.[2] The author expresses various common contracts, and some not so common, in it. This is reasonably readable. If you like logic formalism, there's this.[3] Financial companies would like to have their contracts, especially derivatives, in a form suitable for running risk analyses and various scenarios. You'd like to be able to form queries like "Suppose X misses their payments for the next quarter? What does that trigger?" Some of the 2008 financial debacle came from the inability to ask questions like that. [1] https://www.semanticscholar.org/paper/A-Survey-of-Formal-Languages-for-Contracts-Hvitved/500276c957028a65503c4b13214515c07abd5d93/pdf https://www.semanticscholar.org/paper/A-Survey-of-Formal-Lan... [2] http://szabo.best.vwh.net/contractlanguage.html http://szabo.best.vwh.net/contractlanguage.html [3] http://www.cse.chalmers.se/~gersch/slides-talks/slides-CL-ModelChecking.pdf http://www.cse.chalmers.se/~gersch/slides-talks/slides-CL-Mo...
- grandalf 10y agoThanks much!
- rtpg 10y agoNobody knows how to express contracts formally, not even "real" lawyers. There are almost always clauses about force majeur, and then humans talk to each other.
- bernardlunn 10y agoAbsolutely. Its why lawyers and courts exist. More rigor in drafting using tech is great idea, but say 95% automation is great. Attempting 100% right out of the gate seems a stretch.