# Hub Tutorial

## 🌐 **Exploring&#x20;**<mark style="background-color:yellow;">**Hub**</mark>**s in FHE Validation**

<mark style="background-color:yellow;">Hub</mark> serves as a virtual boundary, tailored to specific use cases within FHE validation. The <mark style="background-color:yellow;">Hub</mark> design aims to generalize FHE validation demands and provide flexibility to adapt to various AI and other projects. Each <mark style="background-color:yellow;">Hub</mark> comprises the following components:

#### **1.** <mark style="background-color:yellow;">Hub</mark> **Owner** 👑

The <mark style="background-color:yellow;">Hub</mark> Owner initiates the use case idea and oversees the registration and updates of FHE validation tasks. Utilizing existing templates (e.g., Task Definition), the owner designs the logic and credits initial funds to kickstart the <mark style="background-color:yellow;">Hub</mark>'s operations.

#### **2. Task Definition** 📝

Task Definition stores all essential information for task execution. This includes details such as what needs validation, round logic, SIV opt-in criteria, slash criteria, rewards contract, and the `fheActivationFunction`. Moreover, the task specifies who will handle decryption. If Mind is chosen, it also outlines where decrypted results will be written.

#### **3.** <mark style="background-color:yellow;">Hub</mark> **Manager** 🤖

The <mark style="background-color:yellow;">Hub</mark> Manager acts as a contract for <mark style="background-color:yellow;">Hub</mark> owners to register the <mark style="background-color:yellow;">Hub</mark> and broadcast tasks to attract SIVs. It automates the management of <mark style="background-color:yellow;">Hub</mark> lifecycle, encompassing registration, publishing, and cancellation processes.

#### **4. Openness to Other Consumers** 🌱

<mark style="background-color:yellow;">Hub</mark>s can also extend their services to other consumers. Once a <mark style="background-color:yellow;">Hub</mark> gains mutual trust from the community, individual consumers seeking FHE validation-enabled services can directly engage with the <mark style="background-color:yellow;">Hub</mark> and make payments accordingly.

***

We will introduce a few examples of how to build <mark style="background-color:yellow;">Hub</mark> in next chapters.
