by j-pb · 6y ago · 0 comments
"I don't know how to communicate this, or even if it is possible to do so... but the question of justice has concerned me greatly of late. And so I say to any creature who may be listening: There can be no justice, so long as laws are absolute. Life itself is an exercise in exceptions."
As far as smart contracts are concerned; they're hardly "contracts", but you probably already knew that. Even Vitalik Buterin regrets calling them that way [1].
[0]: https://en.wikipedia.org/wiki/Rough_consensus
[1]: https://twitter.com/VitalikButerin/status/105116093269977088...
- Every system will be gamed, no exceptions.
- It is impossible for the architects of any system to imagine all the ways it will be gamed.
That's why it's not possible to create fixed laws that are just. Inevitably someone will find a hack that turns the intent of the law around while remaining true to its letter.
This seems to be what dooms both pure libertarian capitalist schemes and pure socialist command economy schemes. In the former case there is not enough structure to contain exploits and no recourse when someone finds a good scam. In the latter case it's impossible for central planners to imagine the results of their plans when they are exposed to opportunistic economic agents. The fatal flaw in both ideologies is their dogmatism. It causes them to fail to adapt when flaws and exploits in the rule system are inevitably found.
- people aren't assholes
- all involved parties can audit blockchain transactions
- all involved parties are programmers and can audit a contract written in an esoteric programming language
- all involved parties voluntarily agree to be bound by these contracts despite the fact there's no way they can be enforced
Maybe I'm misunderstanding, but I don't think ETH contracts count on humans doing anything.
I think the current lowlevel framework is fine, because it's allowing different projects to explore how to introduce flexibility back into the system at a higher level -- but because it's being done at the level of a project within the Ethereum ecosystem, each approach can live & die on it's own, without risking the entire ecosystem on one approach.
The main set of coding patterns I've seen all center around deploying contracts which act as an "upgradable proxy" -- an immutable frontend contract, which can be redirected to point to another contract that does the actual work.
This "redirect" usually can only be done via txn signed by an "admin" account, which may be a single anon -- or it may be something more complex, like MakerDAO or Aave.com, where any updates are proposed by the dev team, but have to be approved by on-chain governance votes. Said votes in turn literally have $$$ staked on-chain to properly motivate them to make things work. There are also time-locks on many of these updates, giving users a last chance to run for the hills if governance does something malicious / stupid.
The nice thing about that structure is that it also allows governance to let in updates which compensate users for mistakes or exploits at a meta-level, all without violating the underlying immutability of the smart contract bytecode.
---
It's a pretty rapidly evolving space, and I'm sure what I described won't resemble the final form in even a few years.
I think it's really great to see that there is a way to introduce justice and flexibility on top of an immutable system, rather than making the system itself become mutable. This allows the immutability of the lowlevel system to act as a source of trust between anonymous groups, that they have to act within some immutable set of ground rules, while then re-introducing the flexbility on top, so humans can act like humans when mistakes occur.
Put another way: how good is a smart contract if it’s easy to create a deceptive one?
But establishing agreement with another human means I have to establish a common language with them, then work out what we're agreeing to, then establish some set of mutual trust between us (usually involving some form of identity verification, even if it's a "who are you on twitter?" level of thing). And then we perpetually have to track that the other person's incentives haven't changed outside of the contract in such a way that violating it would be more profitable. The effort involved in all of that scales very poorly, especially from the service provider's perspective.
On the other hand, if someone wishes to operate in good faith, their incentive is to make the smart contract as simple as possible, and as amenable to independent verification from outside parties (as well as theorem provers).
And no one has to worry about establishing mutual trust with the other person, or that they'll just change their mind in the future. Even if a contract is upgradable, if you only choose to work with ones that are either immutable, or require a timelock / voting period before changes take effect, you (collectively all the consumers of the contract) know your margin of safety.
And that margin of safety is provided because you can trust the base layer is itself immutable and secured. Whereas with risk mitigation through bonds etc, who is the trusted third party we mutually agree to hold our deposits? how do each of us trust that third party isn't in league with one of us? (I trust the "Certified Bank of Nigeria In England", but do you?).
That's the core bit that a smart contract platform like Ethereum provides -- a base layer for establishing mutual trust in objective terms. You can build whatever manner of agreements on top of such a base layer, but if the base layer isn't there, each separate agreement (expensively) requires the two parties find some common ground.
At least for any contract in which "everybody" is reasonably defined, known upfront, and finite.