The DeFi protocol is inseparable from Oracle. Without Oracle, the DeFi protocol will not be able to obtain all the data required for normal operation. The function of Oracle is that it allows certain smart contracts to respond to the uncertain off chain world. It is the only way for smart contracts to interact with the real world, and it is also the interface between the blockchain world and the real world. Therefore, Oracle is considered as the bridge between the decentralized protocol and the external data of the blockchain, and becomes an essential existence.
The Port of DeFi Network uses the Oracle assisted DeFi protocol smart contract as the data source outside the blockchain, avoiding the risks of forgery, tampering, modifying or hiding of the centralized data. It synchronously uploads the information of the world under the chain to the blockchain, and completes the information synchronization between the blockchain and the real world.
Port of Defi Network has carried out a thorough research on the whole logic of Oracle. In order to infer Oracle Security, we first define the related concepts: a trusted third party (TTP): an ideal entity or function, which always faithfully executes a letter and is responsible for running a command. We will use ORACLE to represent Oracle (usually all caps are used to represent the entity that the user fully trusts) and assume that TTP gets data from the fully trusted data source Src. In view of this magical service ORACLE, the whole implementation process is as follows:
The ideal Oracle behavior, ORACLE is defined by the following steps:
1) Accept the request;
2) Get the Data
3) Return the data