> For the complete documentation index, see [llms.txt](https://docs.hashcloud.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.hashcloud.sh/deterministic-compute-challenges/difficulty-matrix-policy.md).

# Difficulty Matrix Policy

### **Overview**

The Difficulty Matrix Policy defines how computational tasks scale across the HashCloud network. By dynamically adjusting matrix sizes based on GPU performance, the system maintains equilibrium between miners of different capacities while ensuring that every participant contributes meaningfully to network throughput.

Matrix sizes serve as the quantitative representation of mining difficulty larger matrices correspond to more complex computations and therefore require greater GPU capability and energy investment. This mechanism forms the backbone of HashCloud’s adaptive Proof-of-Compute ecosystem, ensuring that difficulty progression remains transparent, fair, and computationally verifiable.

### **Matrix Size Parameters**

Each compute task issued to a miner involves the multiplication of two matrices (**A** and **B**) generated deterministically from the miner’s cryptographic seed. The size of these matrices directly determines task complexity.

#### **Matrix Size Range**

* **Minimum:** 256 × 256
* **Maximum:** 1024 × 1024

These bounds represent the controlled limits of difficulty scaling. Smaller matrices are assigned to lower-performance GPUs or new miners entering the network, while high-performance GPUs or established nodes receive proportionally larger matrices to maximize network efficiency.

### **Scaling Behavior**

The difficulty adjustment algorithm automatically benchmarks each miner’s compute speed during participation. Based on performance telemetry, it assigns future workloads that scale appropriately, ensuring balanced contribution and eliminating wasteful over- or under-utilization.

#### **Adaptive Scaling Rules**

* **Dynamic Load Assignment:** Faster GPUs are matched with larger matrices to ensure full hardware utilization.
* **Equilibrium Maintenance:** The network constantly re-evaluates miner performance and adjusts matrix difficulty to maintain global compute stability.
* **Anti-Cheat Measures:** Difficulty adjustments occur through backend calibration, preventing miners from falsifying performance reports to gain an advantage.

This feedback loop ensures that no miner can dominate through hardware brute force alone, as computational fairness is reinforced by proportional scaling.

### **Reward Impact**

Rewards in the HashCloud system are derived from the measurable efficiency of GPU computation. The reward formula incorporates both **matrix size** (as a representation of workload magnitude) and **elapsed computation time** (as a measure of speed and efficiency).

#### **Reward Formula**

$$
\text{reward} \propto \frac{\text{matrixSize}^2}{\text{elapsedTime}}
$$

This proportional relationship incentivizes two outcomes:

1. **Higher Efficiency:** Miners with optimized GPUs complete larger matrices faster, increasing reward output.
2. **Network Balance:** Rewards remain fair across hardware tiers, as slower GPUs may receive smaller matrices, balancing competition.

#### **Conceptual Flow**

```
Matrix Size ↑ → Compute Demand ↑ → Elapsed Time ↑ → Reward Balanced by Efficiency
```

Through this formula, HashCloud achieves a synergy of fairness and performance each miner is rewarded according to actual, verified compute work rather than random outcomes or speculative staking.

### **Governance and Future Calibration**

The Difficulty Matrix Policy is not static. As GPU technology evolves and the HCLD network expands, new matrix ranges and scaling coefficients can be introduced through on-chain governance proposals. Community-approved upgrades may include:

* Expanding maximum matrix size to accommodate next-generation GPUs
* Introducing non-linear scaling for advanced compute tiers
* Refining reward normalization curves based on empirical performance data

This flexible policy framework ensures the protocol remains future-proof while continuing to uphold the principles of decentralization, verifiable computation, and reward integrity.


---

# 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.hashcloud.sh/deterministic-compute-challenges/difficulty-matrix-policy.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.
