# 4. Digital Identity Layer

The Digital Identity Layer is the foundation that turns an AI-generated cyber pet into a verifiable, ownable on-chain asset. In PetVerse, each PET is more than a visual model or chat interface; it is represented by a structured on-chain record that binds together visual traits, personality parameters, behavior models, and emotional state descriptors. This approach allows every digital pet to persist across applications while maintaining a consistent identity and history. By design, the identity layer is chain-agnostic at the conceptual level, but in implementation it is instantiated as a set of smart contracts deployed on Solana and anchored to persistent storage such as Arweave. The result is a digital companion that behaves like a living entity at the application layer and like a rigorously defined asset at the protocol layer.

Definition: **Digital Identity Layer** — the set of smart contracts and data structures that encode a pet’s traits, behaviors, emotional state, and ownership into a verifiable on-chain representation.

At the core of this layer is the PET Identity Contract, which acts as the canonical registry for all cyber pets in the PetVerse ecosystem. When a user creates a new pet, the system generates a PET Identity record that captures the hash of the input photos, a normalized personality vector, and references to the associated behavior and emotional models. This record is minted as a non-fungible token (NFT)–like asset with an immutable identifier and structured metadata. The contract guarantees that each identity is globally unique, cryptographically verifiable, and permanently linked to its behavioral and visual configuration. This enables third-party applications to rely on a consistent interface whenever they integrate PetVerse pets.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.petverse.vip/4.-digital-identity-layer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
