1. Introduction
ComretonAI is a decentralized AI execution and verification platform designed to run machine learning models with provable guarantees. By combining zero-knowledge proofs and the power of the Aptos blockchain, we create a trustless ecosystem where the integrity of every AI inference can be verified on-chain.
Our hybrid architecture separates on-chain trust logic from off-chain computation, ensuring that the platform is both highly secure and economically viable for real-world use.
2. Core Concepts
The entire lifecycle of an AI model on our platform is transparent and secured by the Aptos blockchain.
- Deploy & Package: A developer registers their AI model as a Verifiable Model Artifact (VMA).
- Audit & Stake: A decentralized network of auditors reviews the model and stakes APT to attest to its quality.
- Verify & List: Once a model reaches the required audit threshold, the contract automatically verifies it.
- Infer & Prove: A user pays a fee, a compute provider executes the model, generates a ZK-proof, and returns the result.
- Distribute & Earn: The contract verifies the proof and automatically distributes fees to all participants.
3. Smart Contract API
The core logic is managed by the comreton_ai::marketplace smart contract on the Aptos blockchain.
Entry Functions
These are the primary functions for interacting with the protocol.
View Functions
Read data from the contract without submitting a transaction.
4. Off-Chain Components
ComretonAI SDK
A command-line tool and library for easily packaging models, uploading them to IPFS, and calling the on-chain `register_model` function.
Decentralized Compute Executor
A lightweight service anyone can run to process inference jobs. It listens for on-chain events, executes models, generates proofs, and submits results.
5. Getting Started
Ready to deploy your first verifiable AI model? Follow these steps.
- Install Prerequisites: Ensure you have the Aptos CLI and a funded devnet account.
- Create Your Profile: Call the `create_profile` function to initialize your account on ComretonAI.
- Prepare Your Model: Package your model into one of the supported formats.
- Deploy via SDK: Use the `comretonai deploy` command. This handles uploading your model and registering it on-chain.
- Await Audits: Your model is now visible to auditors. Once verified, you'll start earning rewards from every inference.