# 3.3 Cloud Computing Reward Mechanism

* Basic Reward

<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXetLrDS_0xbZQ3PaDXme7bG5Ee4kqikvgwDzJ6gwQCf3SecnpU3TNy1-Epm7Rkt02mMYibPI2WeGRBZkNR4v_65yzN352Uyvufo7Os9M-eO27MbVCcL_QCyTKI8VpEVADBfiMhu2O5qBYUzZzWTPjs?key=5XZ-nso-X2d5xjt0asyHbOX8" alt=""><figcaption></figcaption></figure>

\ <br>

➢ Initializing Worker

Execute initialization command >> Create Worker wallet >> Generate Worker proof file

➢ Regular Challenges

1. Use on-chain random numbers to generate challenge data.
2. Combine Worker local proof file data and random numbers to generate encrypted proof.
3. Submit the computation result to PemChain for verification.

➢ Completing Challenge

Other nodes in the network verify the proof submitted by the Worker against the Worker's proof data and challenge data to confirm whether the Worker's submitted proof matches the challenge data.

➢ Issuing Rewards

PemChain issues rewards to Workers who successfully complete the challenge.

* Cloud Computing Rewards

<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfd59qK1cRQFq0Bc3UlQoAU6Cualogk-vlPnmzA31DCzfMHo4Iiz8VQFE1Tk1OyXSVaJgn_SGOzkqI5LcxVM82rDTruAQA5RUjGuuhzNX39RdCyrb43x439CZ0HmMXnrziiiz8t6TFxB_n8nzkZZtE?key=5XZ-nso-X2d5xjt0asyHbOX8" alt=""><figcaption></figcaption></figure>

<br>

➢ Registering Worker

The Worker submits registration information such as service type and pricing to the chain.PemChain stores the Worker in the Worker Pool based on service type and other characteristics, according to certain weights.

➢ Accepting New Tasks

The client receives a new task, which must include pledged PemTokens.

➢ Selecting Worker

An appropriate Worker is matched from the PemPool based on the weights.

➢ Task Distribution

The task details are distributed to the corresponding  Worker.

➢ Submitting Task Proof

After completing the task, the Worker submits the relevant work proof to the chain. The work proof varies depending on the application.

➢ Issuing Rewards

Upon detecting the work proof, the chain issues rewards to the Worker.


---

# Agent Instructions: 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:

```
GET https://pemcoin.gitbook.io/pem-project/3.-blockchain-technology-applications/3.3-cloud-computing-reward-mechanism.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
