> For the complete documentation index, see [llms.txt](https://doc.cryptostone.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.cryptostone.org/crypto-stone/crypto-stone-wp-kr/protocol-architecture/34_-_-_.md).

# 34 탈중앙 채굴 구조

CryptoStone에서 채굴은 서버가 대신 실행하는 방식이 아니다. 사용자는 자신이 원하는 스톤 풀에 STONX를 스테이킹하고, 시간이 지나 PoM 값이 해당 풀의 필요 임계값에 도달하면 직접 `claimGem()`과 같은 컨트랙트 함수를 호출하여 Gem NFT를 수령한다.

{% stepper %}
{% step %}

### 유저가 STONX를 보유한다.

원하는 스톤 풀을 선택한다.
{% endstep %}

{% step %}

### STONX를 스테이킹한다.

마이닝 파워가 발생한다.
{% endstep %}

{% step %}

### 시간에 따라 PoM 값이 누적된다.

PoM 값이 필요 임계값에 도달하면 `claimGem()`을 호출한다.
{% endstep %}

{% step %}

### 컨트랙트가 채굴 가능 여부를 검증한다.

검증 가능한 랜덤값으로 속성을 생성한다.
{% endstep %}

{% step %}

### Gem NFT를 발행한다.

NFT가 유저 지갑으로 전송된다.
{% endstep %}
{% endstepper %}

이 과정에서 중앙 서버가 보석을 발행하거나 속성을 지정하지 않는다. 채굴 조건과 결과는 코드에 의해 결정된다.

스마트컨트랙트는 스스로 자동 실행되지 않는다. 그러나 누구나 컨트랙트를 호출할 수 있고, 컨트랙트는 사전에 정해진 조건에 따라 결과를 검증하고 실행한다. 따라서 CryptoStone의 채굴 구조는 중앙 서버 없이도 작동할 수 있다.

개발자는 이 구조에서 중요한 점이 “서버가 없다”는 사실이 아니라, “서버가 없어도 사용자가 직접 컨트랙트를 호출하여 정해진 규칙에 따라 채굴 결과를 받을 수 있다”는 점이라고 본다.


---

# 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://doc.cryptostone.org/crypto-stone/crypto-stone-wp-kr/protocol-architecture/34_-_-_.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.
