Re:Understanding Ethereum Smart Contracts
by edf13 on Wednesday November 29, 2017 @09:55AM
(#15807195)
This is the main problem I see with smart contracts (Even with oracles?)...
How do the nodes running the code all get the same response from an external data source?
Even if they use a service such as oraclize if the contract calls https://api/query?param1 and it returns lets say the weather:
Node1 gets: 15.2c Node2 gets: 15.3c
We've already failed on consensus haven't we?
Re:Understanding Ethereum Smart Contracts
by DennisP on Wednesday November 29, 2017 @10:32AM
(#15807520)
The nodes don't all separately query the source. Instead, someone queries the source and sends a transaction to the network, with the data and the source's signature. The transaction gets incorporated into a block, updates the state, and now everybody has the same data.
Re:Understanding Ethereum Smart Contracts
by AlphaWeaver on Wednesday November 29, 2017 @09:22AM
(#15806945)
Services like Oracleize already allow you to do something similar to this.
Your question of "consensus" brings up other interesting points. I think an increasingly valuable service in a new smart-contract world will be to have an "Outcomes As A Service" arbiter. This would be a trusted 3rd party that publishes real-world outcomes in a method that can be accessed reliably via smart contracts.
Who will win the football game between Dallas and New Orleans on Nov 22, 2019? Who is winner of 2020 Presidential Election? etc....Essentially a service that you can tell them you want to track some real-world event and publish outcome for use in smart-contracts. Obviously this 3rd party would need to be transparent, have an open appeal process, be neutral and earning income not tied to outcome, etc.
What happens to gaming laws (and cities like Las Vegas), in a world where sports betting can be done with no middle-man needed?