What is a blockchain oracle and how does it work?
Blockchain oracles connect blockchains to external systems, allowing smart contracts to be executed based on real-world inputs and outputs, as reported by Cointelegraph.
Oracles provide the Web3.0 ecosystem with a means to connect to existing legacy systems, data sources, and advanced computations.
Decentralized oracle networks (DONs) enable the creation of hybrid smart contracts, which combine off-chain infrastructure and on-chain code to build complex decentralized apps (DApps) that respond to real-world events and interact with traditional systems.
Because the blockchain is a distributed ledger, every node in the network must achieve the same output given the same input. For example, if a node attempts to validate the transaction of another node, the result will be different. This architecture was designed with determinism in mind.
In blockchain, consensus is the technique for agreeing on a data value, and determinism is essential for nodes to achieve consensus. Some of them, such as proof-of-work (PoW) with Nakamoto consensus and proof-of-stake (PoS) with Byzantine consensus, may be familiar to you. Consensus is one of the main reasons blockchain works in the first place.
The blockchain oracle riddle reveals a fundamental limitation of smart contracts: they cannot connect to data or systems outside of their original blockchain context in any way. External resources are known as “off-chain,” while data currently recorded on the blockchain is known as “on-chain.”
Software oracles deliver data from digital sources such as websites, servers or databases, while hardware oracles deliver data from the physical world. In addition, hardware oracles can deliver and relay data from camera motion sensors and radio frequency identification (RFID) sensors. Oracle software can provide real-time data such as exchange rates, price fluctuations and travel information.
Oracles create a two-way communication channel with blockchains, sending and receiving data. Incoming oracles are more likely to supply off-chain – or real-world – data to the blockchain than outgoing oracles. Furthermore, the imported data can represent almost anything, from asset price movements to weather conditions to payment verification.
A frequent programmable scenario for incoming oracles is: If an asset reaches a certain price, place a buy order. Outbound oracles, on the other hand, notify the outside world of an event that occurred on the chain.
(With insight from Cointelegraph)
Also read: 75 years of independence: Looking back, looking ahead at how the evolution of social media has touched lives
Follow us on TwitterFacebook, LinkedIn