by Animats · 10y ago · 0 comments
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 [2] http://reqtest.com/requirements-blog/a-guide-to-using-decisi...
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-Lan... [2] http://szabo.best.vwh.net/contractlanguage.html [3] http://www.cse.chalmers.se/~gersch/slides-talks/slides-CL-Mo...