by hn_throwaway_99 · 5y ago · 0 comments
Specifically what I'm struggling to understand is that most (all?) real-world contracts require some information about the real world: The price of corn (or corn futures), whether the rental apartment was as described, whether the sneakers were authentic, etc. But whenever you need this real world information, at some point you need an oracle, or a consensus of oracles, and at that point I don't really see the point of using blockchain as you have to trust the oracles.
Would really appreciate if anybody could provide some info or links that explain how this problem is handled or solved. More importantly, would appreciate a single example of an actual smart contract that responds to events that happen in the real world.
The example is basic, but now the 3rd party can't take the money, go broke, take risks using your bond, etc, etc, etc. There is clear-in-code records of what the powers of the parties are and when things happen. You can prove where the money ended up.
This isn't an earth-shattering example, and things can still go wrong. But the failure cases have shrunk vs using paper. It is an improvement on the status quo.
A notary in my juristication (Germany) is a quasi-employee of the government, so has little risk to go broke etc. The particular bonds for these cases are usually non-transferrable.
OTOH smart contracts introduce new risks like bugs and costs like high gas prices - for what gain?
Edit: To clarify, the modes of failure are vastly worse for the smart contract scenario. If the notary goes broke, my money will not be part of the insolvency estate. If OTOH the smart contract has a bug, everone's money is gone.
So it only makes sense to hire them for when dealing with large amounts of money. So what do you do with small amounts of money?
Plus, not only notaries but also escrow services might be replaced with smart contracts. Smart contracts might be way cheaper.
It will be very interesting to see this play out. But I wouldn't just discard smart contracts because we have some ancient way of doing things right now. And let's be honest, every time I have to deal with a notary, the work looks like it comes from Medieval times.
In a sense; precisely. At the moment, to fill that function, you need a quasi-government employee to have a trustworthy bondholder.
With a smart contract, literally I could be the notary and while that would be super weird, I can't actually do anything not specified in the contract.
Something is possible that wasn't possible before. That is why people can get excited about the idea.
for all those people, trust-less smart contracts is a replacement of institutions they don't have, available as long as its tech works.
At the end of the day, this third party escrow service is still the only one that needs to evaluate the performance of services rendered - so where did your "trustless" distributed network go?
I get that the smart contract can ensure that there are only 2 outcomes (money sent or money returned), but it's not like you can remove the legal system here - there is nothing to stop the 3rd party from colluding with one of the other parties to make the decision their way. Heck, even is you still wanted to use crypto, why not just get rid of the smart contract altogether and send the money to the 3rd party's escrow account? You still have a full audit trail so you're guaranteed to know is the 3rd party sent the money somewhere else.
Doesn't some 3rd part have to verify the damage? Doesn't the 2nd part then have to still take a part of the bond?
What if the 2nd part just says you broke something, when you didn't, who solves that?
This user-spawned and self-replication smart contract factory, alongside the price storage, has been key to the DeFi boom over the past year. No oracle required.
People (organizations) are using oracles to try to keep markets with similar assets in sync, and for smarter routing for the best price. The arbitragers take care of that too, which is simply Oracle + Fund movement. Flash loan users in the repo market are arbitraging as well, which is simply Oracle + Borrow + Fund movement + Repay in a single transaction included in a single block.
It is a growth industry when you stop asking why and start asking how. A lot of oracles are ignoring some market pairs, and the oracles themselves could have their own inefficiency.
For a blockchain to know about the real world, it does indeed need so-called "oracles".
These are typically trusted external entities (e.g. an actuarial firm) who "inject" signed information into the blockchain that can then be consumed as input by smart contracts "living" in the blockchain.
For example, an Oracle could inject, say every day, signed with their published key pair, the average price of Bitcoin into the Ethereum blockchain, and you could image a family of smart contract paying out if and only if the oracle-published Bitcoin price meets certain conditions.
This solution is - of course - very far from ideal as the information is only as good as the trust you place in these external institutions.
On the other hand, this is not very different than the trust you place in well established institutions such as banks, rating firms, escrows, etc...
What benefit this brings is:
1. Transparency (anyone can check the chain to see what contracts are in place)
2. Automation
3. Complex hierarchical structures where the "building blocks" or "leaf cells" is provided by the oracles.
4. A single failure of the Oracle to inject "truth" into the chain would ruin their rep. for ever.
To compare this to a real world contract, one party that has - say - written a "promise to pay" if certain conditions occur could chose to reneg on that promise, which would lead to lengthy and costly legal proceedings.This latter scenario can't occur on a blockchain: the cheater would have to bribe the Oracle, a far more complicated affair.
[EDIT]: and as pointed out by another comment, there are federated oracles: a smart contract can use an aggregate of multiple sources that provide the same info and form a consensus based on those.
[EDIT2]: another interesting point is that as more and more financial activity "moves" to the blockchain, the need for Oracles diminishes as the information required by a smart contract becomes native. You can thus view oracles as a temporary onramp of legacy financial info into the blockchain.
You are focused on off-chain interactions for smart contracts. The infrastructure is not there yet I’m afraid, but there is steady progress. I believe Taiwan is working on IoT infastructure for publishing high resolution air quality data by having individuals set up sensing nodes that gather the data and publish it. Not sure if there is any DLT involvement, but no reason there couldn’t be.
On chain contracts have lots of use cases in the meantime.
Thanks for responding. Can you suggest a starting point for learning more about what these use cases are, because I'm still struggling to understand what those would be. When I try searching for things like "uses for smart contracts" I'm pointed to things like this page, https://corporatefinanceinstitute.com/resources/knowledge/de..., which honestly is a bunch of pie-in-the-sky bullshit that is not actually technically feasible at present.
My main concern being: DeFi could get harsh competition from traditional financial actors by them getting up to date on accessibility. Thus appealing to a new, more decentralized userbase.
> I think smart-contracts as envisioned by early cypherpunks where meant to run in a world where Governments are obsolete
"Governments" have existed in some form since the beginning of the species (families and tribal structures, etc.) and pretending that some piece of technology may make them "obsolete" belies a very simple understanding of human nature.