Re:Oracles, or why smart contracts still haven’t changed the...
by chrisco255 on Saturday September 22, 2018 @04:30PM
(#18047827)
You have no idea how smart contracts are going to be used and implemented. A platform that makes a bunch of assumptions is DOA. I think that the answer is something more akin to what Ethereum already does, you open source protocols like ERC20 (tokens) and most dapps use those to achieve that functionality. You don't limit yourself and by extension, innovation with non-Turing complete expressiveness.
Yes, someone will have a use case where this can't do (obscure thing) nobody really needs to do. The way to design this is to try to express common contract forms - buying, selling, lending, renting, betting, derivatives - and make sure you have the expressive power for that. Then stop.
A decision table would be an improvement over some current written contracts. A friend once asked me to read over a complex currency swap derivative contract, written in English and I found a clause that was the opposite of what it should have been.
(And no, layering another language layer on top of the byte code, and a proof system on top of that, is not the answer.)
[1] https://en.wikipedia.org/wiki/Decision_table