Data Access Smart Contracts

Core smart contracts that power Vana's data access layer infrastructure.

The Data Access smart contracts form the backbone of Vana's decentralized data infrastructure, enabling secure data storage, refinement, querying, and computation. These contracts work together to create a comprehensive system for managing data ownership, access permissions, and value distribution in the network.

Contract Overview

Data Management

  • DataRegistry - Central repository for managing all data files with proof validation and access control
  • DataRefinerRegistry - Registry for data refiners that define schemas and transformation instructions

Compute Infrastructure

Data Access & Payments

  • QueryEngine - Manages data access permissions and payments for querying refined data
  • DataAccessTreasury - Treasury for managing and distributing payments for data access and compute jobs

Key Workflows

Data Registration & Refinement

  1. Users register raw data files in the DataRegistry
  2. DLPs define refiners in the DataRefinerRegistry
  3. Refinement services transform data according to schemas
  4. Refined data URLs are stored back in the DataRegistry

Compute Job Execution

  1. Users deposit funds in the ComputeEngine
  2. Jobs are validated against the ComputeInstructionRegistry
  3. ComputeEngineTeePoolFactory assigns jobs to appropriate pools
  4. ComputeEngineTeePool assigns a TEE to execute jobs and update status
  5. Payments distributed via DataAccessTreasury

Data Access & Querying

  1. DLP owners grant permissions through QueryEngine
  2. Queries execute with payment processing