Video thumbnail

EVM LLM Oracle

A decentralized oracle network enabling EVM smart contracts to securely interact with LLMs.

EVM LLM Oracle

Created At

ETHGlobal Trifecta - Agents

Project Description

This project implements a decentralized oracle network that bridges the gap between deterministic blockchain smart contracts and non-deterministic Large Language Models. Built on the Polygon ZKEVM testnet, the system uses a Practical Byzantine Fault Tolerance (PBFT) consensus mechanism to handle LLM outputs reliably and securely. Key Features

Decentralized Oracle Network: 7-node network with PBFT consensus
Smart Contract Integration: Solidity contracts for query submission and response handling
IPFS Storage: Efficient off-chain storage with on-chain hash references
Response Validation: Semantic similarity scoring using cosine similarity
Docker Support: Containerized oracle nodes for easy deployment
Error Handling: Robust fallback mechanisms for node failures

How it's Made

The system implements a decentralized oracle network that enables smart contracts to access LLM capabilities while maintaining consensus on non-deterministic outputs.

  • Decentralized Oracle Network: A network of 7 nodes operates under a Practical Byzantine Fault Tolerance (PBFT) consensus mechanism to handle non-deterministic LLM outputs.
  • Smart Contract Interface: Solidity-based contracts deployed on the Polygon ZKEVM testnet facilitate the submission of queries to the oracle network and re- trieval of responses.
  • Decentralized Storage: The InterPlanetary File System (IPFS) stores interaction logs, with corresponding hash references maintained on-chain for verifiability.
  • Response Validation: Semantic similarity scoring algorithms, implemented using cosine similarity, assess the consistency of LLM responses across oracle nodes.
background image mobile

Join the mailing list

Get the latest news and updates