Oracles

오라클은 스마트 컨트랙트에 외부 데이터를 제공하여 실제 세계와 상호 작용할 수 있도록 하는 타사 서비스입니다.

오라클은 블록체인과 외부 데이터 소스 간의 다리 역할을 합니다. 블록체인에서 실행되는 스마트 컨트랙트는 가격 피드, 날씨 데이터 또는 API 응답과 같은 오프체인 정보에 기본적으로 액세스할 수 없습니다. 오라클은 외부 데이터를 가져와서 확인한 다음 스마트 컨트랙트에 전달하여 이 문제를 해결합니다. 이를 통해 스마트 컨트랙트는 실제 세계의 이벤트 및 정보를 기반으로 실행될 수 있습니다.

소프트웨어 오라클(API에서 데이터 가져오기), 하드웨어 오라클(센서 사용) 및 휴먼 오라클(인간 입력 의존)을 포함하여 다양한 유형의 오라클이 존재합니다. 손상된 오라클은 스마트 컨트랙트 사용자에게 부정확한 데이터와 상당한 재정적 손실을 초래할 수 있으므로 오라클의 보안과 신뢰성은 매우 중요합니다.

🛡️ Trust Score

100%

✅ 검증된 기술 정보

  • Oracles provide smart contracts with access to external data.
  • Blockchains cannot natively fetch off-chain data due to their deterministic nature.
  • The 'Oracle Problem' refers to the trust and decentralization challenges of external data.
  • Decentralized Oracle Networks (DONs) use multiple sources to ensure reliability.
  • Push-based oracles update on-chain data at regular intervals.
  • Pull-based oracles update on-chain data only when requested by a transaction.
        graph LR
  Center["Oracles"]:::main
  Pre_smart_contract["smart-contract"]:::pre --> Center
  click Pre_smart_contract "/terms/smart-contract"
  Pre_blockchain["blockchain"]:::pre --> Center
  click Pre_blockchain "/terms/blockchain"
  Rel_decentralized_finance_defi["decentralized-finance-defi"]:::related -.-> Center
  click Rel_decentralized_finance_defi "/terms/decentralized-finance-defi"
  Rel_chainlink["chainlink"]:::related -.-> Center
  click Rel_chainlink "/terms/chainlink"
  Rel_inter_blockchain_communication_ibc["inter-blockchain-communication-ibc"]:::related -.-> Center
  click Rel_inter_blockchain_communication_ibc "/terms/inter-blockchain-communication-ibc"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧒 5살도 이해할 수 있게 설명

🔌 Imagine a smart car that only drives when the weather is sunny. The car can't 'see' the sky because it's in a closed garage. An **[Oracle](/ko/terms/oracle)** is like a trusted friend who looks out the window and tells the car's computer 'It's sunny!' so the car can start. If the friend lies, the car might drive into a storm.

🤓 Expert Deep Dive

The security and reliability of oracles are paramount, as they represent a critical attack vector ('oracle problem'). Decentralized Oracle Networks (DONs) employ cryptoeconomic incentives, such as staking and slashing mechanisms, to ensure node honesty. Consensus [algorithms](/ko/terms/consensus-algorithms) among oracle nodes are used to agree on data validity before submission to the blockchain. Advanced oracle designs incorporate techniques like Trusted Execution Environments (TEEs) for secure off-chain computation and data handling, and sophisticated aggregation functions (e.g., median, trimmed mean) to resist outliers and manipulation. The 'data availability problem' is also a concern, ensuring that the data submitted on-chain is verifiable and accessible. Architectural trade-offs include the choice between push (oracle pushes data periodically) versus pull (smart contract requests data) models, the frequency of data updates, and the cost implications of different consensus and aggregation mechanisms on L1 gas fees.

🔗 관련 용어

선행 지식:

📚 출처