# 如何创建验证器密钥？

### **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="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/aKDY4KgNPBSVlf27PxfR/deposit.png" alt=""><figcaption><p>选择适合您操作系统的可执行文件</p></figcaption></figure>

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

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

<figure><img src="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/CnYnraxC0gWwdYSy4yu0/terminal.PNG" alt=""><figcaption><p>打开终端</p></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/wa7w0r9ay7RS3HVYuXnJ/cd.PNG" 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="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/UBjZ0d6eHS1esVOLKn9q/gg.PNG" alt=""><figcaption><p>Generate keys &#x26; <code>deposit_data</code></p></figcaption></figure>

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

<figure><img src="https://content.gitbook.com/content/IQGs7tgkNqzmAzzSFmsJ/blobs/Rp0QD2bPB5u7v8sH6KUZ/depo.png" alt=""><figcaption><p>deposit_data文件稍后将上传至ChainUp Cloud</p></figcaption></figure>

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