# 驱动 sBTC 的 Clarity 合约

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

### 已部署的主网合约

* [sbtc-token](https://explorer.hiro.so/txid/SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-token?chain=mainnet)
* [sbtc-registry](https://explorer.hiro.so/txid/SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-registry?chain=mainnet)
* [sbtc-deposit](https://explorer.hiro.so/txid/SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-deposit?chain=mainnet)
* [sbtc-withdrawal](https://explorer.hiro.so/txid/SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-withdrawal?chain=mainnet)
* [sbtc-bootstrap-signers](https://explorer.hiro.so/txid/SM3VDXK3WZZSA84XXFKAFAF15NNZX32CTSG82JFQ4.sbtc-bootstrap-signers?chain=mainnet)

### sBTC Clarity 合约

从高层来看，sBTC Clarity 合约负责以下事项：

#### sbtc-bootstrap 签名者

用于元签名者功能的核心合约，例如注册和轮换流程。

#### sbtc-deposit

由签名者调用的处理合约，用于记录已消费的比特币交易，并向载荷中包含的某个主体铸造一定数量的 sBTC。

#### sbtc-registry

用于在整个协议升级过程中维持可升级性的状态存储。

#### sbtc-withdrawal

供用户和签名者更新提款请求状态的交互点。

<figure><img src="/files/c46a22cc0f725979f7e8f5f78c73b452fdb18f1c" alt=""><figcaption></figcaption></figure>

### 用户类型

除了合约本身之外，还有两种主要的用户类型会与这些合约交互。

#### 签名者

属于当前 sBTC 签名者集合的签名者。关于签名者及其在 sBTC 中角色的更多信息，请参见 [签名者流程详解](/learn/zh/sbtc/walkthroughs/signer-process-walkthrough.md).

#### 钱包

Stacks/比特币生态系统中的参与者，希望存入/提取/使用 sbtc。


---

# 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/sbtc/clarity-contracts.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.
