System Design

DeepSol Architecture

Application Layer

  • User/Agent Interaction: Users or AI agents initiate transactions at the application layer. This layer handles the creation of transactions, including input task parameters, signatures, priority fees, and calculation fees. The priority fee determines the transaction's processing order, while the calculation fee covers the computational resources needed for the AI task.

  • AI Task Specification: For AI tasks, users specify the AI model to be used, the type of computation required, and any specific parameters necessary for the AI model's execution. This information is packaged into the transaction at the application layer.

Execution Layer

  • Resource Node Allocation: Once a transaction is created, it is sent to a resource node within the DeepSol network. These resource nodes are equipped with the necessary computational resources (GPUs, TPUs, etc.) to execute AI tasks efficiently.

  • TEE Execution Environment: The resource node leverages Trusted Execution Environments (TEEs) to execute the AI task. TEEs, such as Intel TDX and AMD SEV, provide a secure and isolated environment ensuring data confidentiality and integrity during computation.

  • ZK-SNARKs Generation: After executing the AI task, the resource node generates a zero-knowledge succinct non-interactive argument of knowledge (ZK-SNARK). This cryptographic proof validates the correctness of the AI computation without revealing the underlying data or model details.

Verification Layer

  • Proof Submission: The generated ZK-SNARK proof, along with the transaction data and results, is submitted to the Solana blockchain.

  • Validation by Solana Nodes: Solana validator nodes then verify the ZK-SNARK proof. This verification process is computationally efficient and ensures that the AI task was executed correctly and securely.

  • Final Confirmation: Once the proof is verified, the transaction is confirmed and included in a Solana block. This final confirmation ensures the result's immutability and makes it available for other applications or users to build upon.

Network Layer

  • Relay and RPC Nodes: The network layer handles the communication between different nodes in the DeepSol ecosystem. Relay nodes and RPC nodes facilitate the transmission of transactions and proofs across the network.

  • On-Chain Allocation Contract: The on-chain allocation contract manages resource allocation and staking. It checks the settings for resource preparation and ensures that the necessary resources are available for the AI task.

Last updated