> For the complete documentation index, see [llms.txt](https://docs.lazai.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.lazai.network/lazai-workflow-and-runtime/dat-specifications-and-flow/detailed-design-of-dat.md). Agents can also search and read this documentation through its [MCP server](https://docs.lazai.network/~gitbook/mcp).

# Detailed Design of DAT

The DAT protocol introduces a structured AI asset management system, leveraging on-chain metadata, off-chain data storage, and cryptographic proofs to ensure security, transparency, and usability.

### Core Data Structure of DAT

Each DAT token instance consists of the following attributes:

<table data-header-hidden><thead><tr><th width="184.58203125"></th><th width="158.83984375"></th><th width="277.49609375"></th></tr></thead><tbody><tr><td><strong>Attribute</strong></td><td><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td>DAT ID</td><td>uint256</td><td>Unique identifier for the tokenized AI dataset or model.</td></tr><tr><td>Asset Type</td><td>enum { Dataset, Model, AI-Agent } </td><td>Specifies whether the token represents a dataset, AI model, or an autonomous AI agent.</td></tr><tr><td>Slot ID (Category Tagging) </td><td>uint256</td><td>Defines the classification of AI assets, allowing datasets/models of the same category to be grouped for composability.</td></tr><tr><td>Partitioned Value (Token Units) </td><td>uint256</td><td>Represents divisible ownership or access quotas, enabling fractional AI asset ownership and licensing.</td></tr><tr><td>Access Control (Permissions) </td><td>struct { readOnly, trainable, inferenceOnly, composable }</td><td>Defines who can use the AI dataset/model and under what conditions.</td></tr><tr><td>Dataset Provenance Hash</td><td>bytes32</td><td>Hash of the dataset, anchoring off-chain data integrity (IPFS, Arweave, Filecoin).</td></tr><tr><td>Usage State</td><td>mapping (address => uint256)</td><td>Tracks AI training/inference requests, ensuring proper usage-based payments.</td></tr><tr><td>Revenue Model </td><td>mapping (address => uint256) </td><td>Specifies how revenue is distributed among data contributors, model developers, and validators.</td></tr></tbody></table>

### AI Data Anchoring & Validation Mechanism

The integrity and trustworthiness of AI datasets and models are secured through on-chain anchoring and decentralized verification mechanisms.

* **Data Anchoring Process**
  * **Dataset Submission →** iDAO submits dataset metadata, cryptographic proofs (Merkle Tree, ZK Proofs), and storage references (IPFS, Arweave).
  * **Anchoring & Hashing →** A dataset fingerprint (hash) is generated and stored on-chain via DAT token metadata.
  * **Token Minting →** The system mints a DAT token representing the dataset, with predefined access rights, licensing conditions, and revenue-sharing logic.
* **Decentralized Verification**
  * **Proof-of-Authenticity:** AI datasets and models require zero-knowledge proof (ZKP) verification, ensuring they were generated from valid sources.
  * **Fraud-Proof Mechanism:** Challengers can submit fraud proofs against datasets/models that violate integrity rules. If successfully disputed, the original submitter is slashed, and the challenger is rewarded.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.lazai.network/lazai-workflow-and-runtime/dat-specifications-and-flow/detailed-design-of-dat.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
