3 ms·
As a design goal, a programmable contract should be able to express: - A time deposit, like a CD - A credit card - A recurring service charge cancelable by e
by Animats 10y ago
As a design goal, a programmable contract should be able to express:
- A time deposit, like a CD
- A credit card
- A recurring service charge cancelable by either party.
- A mortgage loan
- A rental agreement (which is what Slock.it was supposed to do)
- Most financial derivatives
If you can do those things, you've probably covered enough use cases for practical purposes. Complexity beyond that increases the attack surface.
Standard functions in rules can do most of the computational work. Good date functions, and financial functions such as present value, are needed. An HP-12C, the standard pocket calculator for finance, is a good basis for the functions needed. (The financial industry would like it if smart contracts got exactly the same answers as an HP-12C.)
- Animats 10y agoA security researcher from the access control industry agrees that Solidity has far too much complexity for the job.[1] He also suggests simple, declarative systems, and lists a few from the access control industry. [1] https://tonyarcieri.com/a-tale-of-two-cryptocurrencies https://tonyarcieri.com/a-tale-of-two-cryptocurrencies
- nickpsecurity 10y agoI remember the Interledger paper since it was one of best I've seen in these kinds of discussions. It was relatively simple, built on existing concepts, had much better odds of adoption, formally specified/verified, and leveraged prior schemes for robustness. That's how this kind of work should proceed whenever possible. Probably any protocol with significant use as well.
- to3m 10y agoEthereum struck me as having been designed by somebody who didn't really know quite what they wanted it for. Finance not being my thing either, I didn't think of the HP-12C. That might not be too damning an accusation. This is ver 1; it's a platform, not an app; nobody quite knows what the outcome will be anyway; and the terminology, while suggestive, is not prescriptive. However the lack of any kind of inbuilt datatype for managing an amount of money still did strike me as an odd omission... (Maybe that would be too limiting? But I didn't like the way you had to send money and adjust balance(s) as separate operations. And, yes, of course, this was the cause of The DAO hack - but I don't want to sound too prescient here. It seemed to me an annoyance, no more.)