# 出块

<div data-with-frame="true"><figure><img src="/files/a57168eaea30238ba8e4792bb8df59d830a356cf" alt=""><figcaption></figcaption></figure></div>

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

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

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

{% step %}
**签名**

签名是用于验证区块并对 sBTC 存款和提款进行签名的过程。Stacker 在满足 stacking 前提条件后参与签名。
{% endstep %}

{% step %}
**Stacking**

Stacking 是由 stacker 执行的一项操作，它是参与签名的必要前提。它使参与验证并获得奖励成为可能。
{% endstep %}
{% endstepper %}

Stacks 区块生产中有两个主要参与方：矿工、stacker 和 signer。矿工构建并提议新区块，而 stacker 验证这些区块并对 sBTC 存款和提款进行签名。Stacking 使 stacker 能够参与签名。

***

### 核心角色：矿工 vs Stacker vs Signer

<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>Stacker</strong></td><td>通过 PoX 保障网络安全</td><td>锁定 STX 并发出对共识的支持信号</td><td>从矿工处赚取 BTC</td><td>Stacks（锁定 STX），在比特币上获得奖励</td></tr><tr><td><strong>签名者</strong></td><td>验证并最终确认区块</td><td>参与区块签名以确认规范链状态；定义奖励集合</td><td>基于与 Stacker 的自定义协议获得奖励</td><td>Stacks</td></tr></tbody></table>

#### Stacker 与 Signer 之间的关系

在阅读 Stacking 部分时，你可能会发现 Stacker 和 Signer 这两个称呼可以互换使用。确实，Stacker 也可以承担 Signer 的角色，反之亦然，但其中有一些细微之处需要理解：

* 并非所有 stacker 都是 signer\
  → 因为 stacker 可以 **委托** 其参与（包括签名职责）
* 所有 signer 都有以下支持： **他们自己的 STX** 或 **被委托的 STX**\
  → 要进入 signer 集合，你必须代表 **已质押的 STX 权重**


---

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