# Hybrid On-Chain / Off-Chain Framework

<figure><img src="/files/UVWaNHxSe39nmTN88aUh" alt=""><figcaption></figcaption></figure>

InSoBlok AI separates **critical state logic** from **high-volume, performance-sensitive operations** using a dual-layer system:

**On-Chain Layer (Security-Critical State Management)**

The **on-chain contract layer**, deployed on **InSoBlok Layer 1**, ensures the cryptographic integrity and trustworthiness of identity mappings, validator interactions, and tokenized asset ownership. Only operations that require **immutability, consensus, or fraud protection** are processed on-chain. These include:

* Account creation and DID registration
* Rent payments to reserve message slots
* Key management for connected applications
* Token staking and governance voting
* Smart contract execution logs with TasteScore-conditional logic

By maintaining minimal but essential state on-chain, the protocol balances **security and cost-efficiency** while anchoring trust for higher-order operations off-chain.

**Off-Chain Layer (Performance-Critical Data Operations)**

The **off-chain execution layer** is composed of a distributed, peer-to-peer network of specialized servers known as **Containers**. These nodes handle high-throughput, low-latency operations such as:

* Posting public messages, media, or polls
* Following, liking, and replying
* Updating profile images, VTO metadata, or creator badges
* Decentralized chat (including emoji, image, P2P payments)

All off-chain actions are cryptographically signed using a user’s on-chain keys and validated according to protocol rules. This design supports **massively scalable, socially dynamic interactions** with strong **eventual consistency guarantees**.


---

# 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.insoblokai.io/whitepaper/dynamic-sovereignty-architecture/hybrid-on-chain-off-chain-framework.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.
