# 如何创建验证器密钥？

### **Prerequisites** 先决条件

a. 兼容的钱包（目前仅支持 Metamask），可容纳超过 32 个 Eth

&#x20;**b.** 生成 deposit\_data-timestamp.json，可通过 deposit-cli 工具 [**deposit-cli tool**](https://github.com/ethereum/staking-deposit-cli/releases/) 完成。 具体来说，我们真正需要的是 deposit\_data-timestamp.json 中的 withdrawal\_credentials

{% hint style="info" %}
Specifically, what we actually need is the `withdrawal_credentials` within the `deposit_data-timestamp.json`
{% endhint %}

### 1.  生成 `deposit_data`/`withdrawal_credentials`&#x20;

**步骤 1：**&#x5728;此处下载 [**存款 CLI 应用程序**](https://github.com/ethereum/staking-deposit-cli/releases/)，确保您已为您的操作系统选择了正确的应用程序。

{% hint style="warning" %}
请确保您是从以太坊基金会的官方 **GitHub 帐户** 下载的 -  <https://github.com/ethereum/staking-deposit-cli/releases/>
{% endhint %}

<figure><img src="/files/Kj8ESdLxaXtoGyDyYOpt" alt=""><figcaption><p>选择适合您操作系统的可执行文件</p></figcaption></figure>

**步骤 2：**&#x4E0B;载完成后，解压下载的文件。

**步骤 3：**&#x6253;开您的命令行/终端。

<figure><img src="/files/vBf3kcJDqrjKK6lwY5wr" alt=""><figcaption><p>打开终端</p></figcaption></figure>

**步骤 4**：导航（cd）到包含可执行 **`deposit`**  存款文件的目录。

<figure><img src="/files/E97T81QHpmU1isKuXRxL" alt=""><figcaption><p>cd 到包含可执行文件的目录</p></figcaption></figure>

**步骤 5：**&#x4F7F;用以下命令运行可执行文件   `deposit.exe new-mnemonic --num_validators 1 --chain mainnet` （适用于 Windows）和  `./deposit new-mnemonic --num_validators 1 --chain mainnet` （适用于 Linux 或 MacOS）。

<figure><img src="/files/f6HzbnEuhHzfXkj0YX2P" alt=""><figcaption><p>Generate keys &#x26; <code>deposit_data</code></p></figcaption></figure>

&#x20;**步骤 6**：请记下助记词并找到 `deposit_data` 文件

<figure><img src="/files/MILXuaq2PJN1ib4BOpL8" alt=""><figcaption><p>deposit_data文件稍后将上传至ChainUp Cloud</p></figcaption></figure>

{% hint style="info" %}
您可以在此处找到以太坊基金会推荐的[**替代密钥生成工具**](https://ethereum.org/en/staking/solo/#key-generators)。
{% endhint %}


---

# 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.chainupcloud.com/zhong-wen/validator-node/ethereum/ru-he-chuang-jian-yan-zheng-qi-mi-yao.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.
