How off-chain Oracles Work
In this topic, we explain, how oracles work that collect data from off-chain sources. The following figure shows the general components of such an oracle.
The schematic action flow is as follows:
- Event occurs
- Oracle collects data about this event
- Oracle processes data (cleansing, aggregating, etc.)
- Oracle submits data to smart contract
- Smart contract decides upon the received data
But here is the problem. How can we be sure that these data are correct?
In principle, oracles can provide any type of data. But due to the limited storage capacity of current blockchains it is better to use only small chunks of data like integers, boolean or single characters that can be evaluated easily by the limited calculation capacity of a smart contract.