> For the complete documentation index, see [llms.txt](https://docs.stacks.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stacks.co/learn/zh/block-production.md).

# 区块生成

<div data-with-frame="true"><figure><img src="https://2842511454-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FH74xqoobupBWwBsVMJhK%2Fuploads%2FAtIlPCw7qrGfrokaExNi%2Fblock-production-cover.png?alt=media&#x26;token=a3179850-9434-42ed-baf4-c64037aa5b03" alt=""><figcaption></figcaption></figure></div>

区块生产是理解 Stacks 底层运行方式的一个关键概念。本节将讲解 Stacks 网络运行所需的三个主要动作。

{% stepper %}
{% step %}
**挖矿**

矿工负责在 Stacks 链上构建并提议新区块。
{% endstep %}

{% step %}
**签名**

签名是区块在加入链之前用于验证它们的过程。签名者是一个与某个签名者管理器合约绑定的签名密钥，只有当具有足够权重的签名者对区块进行签名后，该区块才会加入链中。
{% endstep %}

{% step %}
**质押**

质押就是权重的来源。你将 STX 锁定在自己的账户中，并指定一个现有的签名者管理器合约；你添加的质押会成为该管理器权重的一部分，而你会因此获得以比特币计价的奖励。每个账户的质押只能走两条互斥路径之一：仅 STX，或将原生 BTC 或 sBTC 与 STX 锁定组合成的协议债券。
{% endstep %}
{% endstepper %}

在 Stacks 的区块生产中，三种角色协同工作：矿工构建并提议新区块，签名者验证并签署它们，而质押者通过锁定 STX 到某个签名者管理器来支持签名者。

{% hint style="info" %}
**这里的签名者不是 sBTC 签名者。** 本页上的签名者在 PoX-5 下验证 Stacks 区块。 [sBTC 签名者](https://docs.stacks.co/learn/sbtc/clarity-contracts/sbtc-signers) 是一组独立的签名者，他们在自己的合约中拥有自己的密钥，而且不一定是 Stacks 签名者。它们的阈值签名需要超过 50% 的签名密钥。两者之间唯一的联系是，sBTC 桥是矿工承诺的 BTC 如何变成作为质押奖励发放的 sBTC 的方式。
{% endhint %}

***

### 核心角色：矿工 vs 质押者 vs 签名者

<table><thead><tr><th width="94.29296875">角色</th><th>主要功能</th><th>他们做什么</th><th>奖励</th><th>他们在哪运行</th></tr></thead><tbody><tr><td><strong>矿工</strong></td><td>生成 Stacks 区块</td><td>在 PoX 中发送 BTC 以竞争写入下一个区块并赚取 STX 的权利</td><td>获得 STX 区块奖励 + 手续费</td><td>比特币（用于出价）+ Stacks</td></tr><tr><td><strong>质押者</strong></td><td>通过 PoX 保障网络安全</td><td>将 STX 锁定在自己的账户中，并指定一个签名者管理器合约</td><td>获得由矿工 BTC 资助的以比特币计价奖励，默认以 sBTC 形式发放，或通过投票选择发放原生 BTC</td><td>Stacks（STX 永远不会离开他们的账户）</td></tr><tr><td><strong>签名者</strong></td><td>验证并最终确认区块</td><td>与某个签名密钥绑定的签名者管理器合约为区块签名；其权重与通过它质押的 STX 成正比</td><td>接收来自 pox-5 的按质押者结算奖励用于分配，并且可以收取合约中设定的费用</td><td>Stacks</td></tr></tbody></table>

#### 质押者与签名者之间的关系

在阅读质押部分时，你可能会看到质押者和签名者被同时提及。在 PoX-5 下，这种关系非常明确：

* 质押者不是签名者\
  → 签名由授予其质押权限的签名者管理器合约所使用的密钥完成，而运行该签名者是管理器运营者的工作
* 每个签名者都由 **已质押的 STX**\
  → 要进入签名者集合，某个签名者管理器必须至少累计质押 50,000 STX，并且其权重会随着其代表的质押量增加


---

# 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.stacks.co/learn/zh/block-production.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.
