> 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.fairmath.xyz/fhe-computer/operating-system/fhe-component-repository.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
