# Program Flow Overview

This section describes the **complete lifecycle of an AI inference** within the Orby AI Protocol — from model registration to zk-proof execution, verification, and reward distribution — all coordinated by Ethereum smart contracts.

This modular pipeline ensures:

* Fully verifiable execution logic (via zk-proofs)
* Transparent, slashing-secured task delegation
* Native support for RWA tokenization and revenue distribution

***

**🧬 Core Flow Diagram:**

```scss
[Model Dev] → zkRegistry → [User Input] → Inference Request
     ↓                               ↓
[Executor Node] — zk-Proof —> Verifier Contract (Ethereum)
     ↓                               ↓
[Settlement Contract] → Rewards + Logs
     ↓
[RWA Smart Contracts] → Tokenized Yield Flow (optional)
```

***

**🔗 Components Covered:**

1. **Model Registration (One-Time):** Upload and register zk-compatible models.
2. **Inference Request (User Job):** Users trigger tasks using registered models.
3. **Execution Phase (Off-Chain):** Executor runs circuit and generates zk-proof.
4. **Verification Phase:** Proof is validated on-chain.
5. **Rewards & Settlement:** Payment distribution via Ethereum smart contracts.
6. **Optional Extensions:** Private inference, batch jobs, DAO gating.
7. **Key Takeaways:** Summary of verifiability, automation, and RWA alignment.
