正在翻页。
正在呈现下一章……
此阅读内容目前仅有英语版。界面使用你选择的语言。
阅读英语原文 →A blockchain oracle is a third-party service for smart contracts. Oracles provide trusted information based on the outside-world sources to the on-blockchain smart contracts. An oracle typically encapsulates the real-world complexity outside of the blockchain. This provides different engineering advantages, chiefly that critical errors and potential points of failure are easier to mitigate off-chain than on-chain.
For example, in a contract to automatically purchase bitcoins at a predetermined price, the fulfillment condition is based on the current exchange rate for the bitcoin; an off-chain oracle can constantly monitor the price to provide the triggering condition to the contract.
If an oracle relies on a single source of truth (centralized), that can lead to issues: the data source can be hacked in a man-in-the-middle attack, or altered by its owner, in order to sway smart contracts. Decentralized oracles (consensus oracles) increase the reliability of the information provided to smart contracts by querying multiple data sources, thus distributing trust between participants. However, this does not achieve trustlessness, since oracles are not part of the main blockchain consensus, and thus not part of the security mechanisms of public blockchains.
选编并重新排版自 Blockchain oracle,由其贡献者编写,采用 CC BY-SA 4.0. 修订版 1346355893。 章节和格式经过精简;链接中的修订版提供完整背景与贡献历史。此参考文本继续遵循原许可证。其附加引用链接来自该修订版,尚未在此独立核查。