> For the complete documentation index, see [llms.txt](https://docs.fairmath.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fairmath.xyz/fhe-computer/operating-system/fhe-component-repository.md).

# FHE Component Repository

The **Component Repository** is a dynamic library of FHE components that serve as modular building blocks for applications stored on blockchain level. These components are implemented as functions built from ISA instructions, providing high-level abstractions for cryptographic computations, such as `ReLU`, `Sign`, or polynomial evaluation.

#### Key Features of the Component Repository

1. **High-Level Abstraction**\
   Components act like **intrinsics** in traditional computing, offering optimized and reusable functionality while hiding the complexity of their implementation. They allow developers to leverage advanced cryptographic operations without needing deep knowledge of the underlying algorithms.
2. **Integration with `polycircuit` Dialect**\
   Components dynamically form the **`polycircuit` dialect** within the Instruction Set Architecture (ISA). This dialect provides specialized instructions for invoking components, ensuring seamless integration into computational pipelines with flexibility and efficiency.
3. **Composability**\
   Components can call other components within their implementation. For instance, a neural network component may internally use activation functions (e.g., `ReLU`, `Sigmoid`) or pooling operations. This composability simplifies the construction and maintenance of complex algorithms.

#### Incentive Mechanism

To encourage the creation of high-quality, reusable components:

* **Developers are rewarded** when their components are used in applications. A proportional share of the rewards generated by the application's execution is distributed to the component’s creator.
* This mechanism fosters a vibrant ecosystem, motivating developers to contribute and maintain robust components.

#### Repository Management

The repository is managed through the **FHERMA** platform, which:

* **Validates** components for security and compatibility.
* **Benchmarks** them to ensure optimal performance.
* **Version-controls** the components to maintain consistency and reliability.
