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
- ComputeEngine - Orchestrates compute job execution across TEE pools with payment management
- ComputeEngineTeePool - Manages a pool of TEE nodes for executing compute jobs
- ComputeEngineTeePoolFactory - Factory for creating and managing different types of TEE pools
- ComputeInstructionRegistry - Registry for approved compute instructions with DLP-based approval
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
- Users register raw data files in the DataRegistry
- DLPs define refiners in the DataRefinerRegistry
- Refinement services transform data according to schemas
- Refined data URLs are stored back in the DataRegistry
Compute Job Execution
- Users deposit funds in the ComputeEngine
- Jobs are validated against the ComputeInstructionRegistry
- ComputeEngineTeePoolFactory assigns jobs to appropriate pools
- ComputeEngineTeePool assigns a TEE to execute jobs and update status
- Payments distributed via DataAccessTreasury
Data Access & Querying
- DLP owners grant permissions through QueryEngine
- Queries execute with payment processing
Updated 1 day ago