# Aleo prover激励节点教程

By [0xHPJ_node](https://paragraph.com/@0xhpj-node) · 2024-07-12

---

1\. Aleo基本情况介绍
--------------

Aleo 是一个专注于隐私保护的区块链项目，通过零知识证明技术（ZKP）实现更高的隐私和可扩展性。Aleo 的核心理念是让用户能够在不泄露个人数据的前提下进行身份验证和数据处理。

Aleo运行证明者节点的激励计划将从 7 月 1 日持续到 7 月 15 日，并将分配 100 万个 Aleo 积分用于奖励证明者节点解决 coinbase 难题并生成证明并获得奖励。

2\. Aleo Prover节点教程
-------------------

1）更新系统的包列表并升级所有已安装的软件包至最新版本。

`sudo apt-get update && sudo apt-get upgrade -y`

![](https://storage.googleapis.com/papyrus_images/b75d70821c05a2ec391ffe11a903eaa3aa80cea4ec8930da4032efa6443af9a5.png)

2）安装`screen`和`git`两个软件包

`apt install screen git -y`

![](https://storage.googleapis.com/papyrus_images/b1a09538166716588d232fc8d3d125433b1dcef23f16e31f396116d8e1fafc0d.png)

3）下载rustup脚本。使用`curl`下载并执行Rust编程语言的安装脚本。

`curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`

![](https://storage.googleapis.com/papyrus_images/9ad74c76b95333809755e6d8d05c950a3203198530e3167f3234b9e80cf94b57.png)

选择1，standard installation

4）加载Rust安装脚本创建的环境变量，使Rust工具链（如cargo）在当前终端会话中可用。

`source "$HOME/.cargo/env"`

5）使用`git`克隆`snarkOS`的GitHub仓库，复制最新的提交记录

`git clone https://github.com/AleoHQ/snarkOS.git --depth 1`

![](https://storage.googleapis.com/papyrus_images/d20ec7c1ef8536399e3db84b1377a8ada7a9a41048d037ee44c4afc5c510937c.png)

6）将当前工作目录切换到刚刚克隆的`snarkOS`目录中

`cd snarkOS`

7）运行`snarkOS`目录中的脚本`build_ubuntu.sh`，该脚本会安装构建`snarkOS`所需的依赖项和库。该步骤将等待较长时间。

`./build_ubuntu.sh`

![](https://storage.googleapis.com/papyrus_images/6f8eb8e9964bc04a49416c4df6e624efda0fa02c5ffa73e30ae307d45a048b04.png)

8）使用Rust的包管理工具`cargo`在当前目录（即`snarkOS`目录）中安装所有依赖项，并构建`snarkOS`项目。

`cargo install --path .`

![](https://storage.googleapis.com/papyrus_images/fc94216162abe3ff21ecd61ebbf61cc44a9f82d7b563c97da25bb9512af6c359.png)

9）启动一个新的`screen`会话

`screen -S aleo`

10）生成一个新的Aleo账户，包括私钥、查看密钥和地址。这些信息将用于在Aleo网络上进行交易和验证。

`snarkos account new`

![](https://storage.googleapis.com/papyrus_images/7e506e79f11920e3c1a4e44c8ab235ffbf5e80b7a921516057c9d32fd48921ee.png)

11）运行`snarkOS`目录中的脚本`run-prover.sh`，启动一个用于验证零知识证明的节点。

`./run-prover.sh`

![](https://storage.googleapis.com/papyrus_images/9cc8e8a7d735319140b1697b35b3d4e06558bfd717c1301e29365b87f42e90f8.png)

该步骤跑完会出现一个大的Aleo logo，那就是跑成功了。

![](https://storage.googleapis.com/papyrus_images/688ed75efada23ec71c59e3d55456a085f2b71bc2d8432da7b6ace1f3474273f.png)

12）重新连接到名为`aleo`的`screen`会话，允许查看和控制在该会话中运行的程序。

`screen -r aleo`

查询挖到的积分：[https://testnetbeta.aleo123.io/provers](https://testnetbeta.aleo123.io/provers)

3\. 官方链接
--------

Aleo推特：

[https://x.com/AleoHQ](https://x.com/AleoHQ)

Discord：

[https://discord.gg/aleo](https://discord.gg/aleo)

4.风险提示
------

剩下的时间已经不多了

很卷很卷很卷，非常有可能挖不到

DYOR

---

*Originally published on [0xHPJ_node](https://paragraph.com/@0xhpj-node/aleo-prover)*
