# Aleo 2亿美金融资的隐私龙头节点搭建教程

By [0xFish](https://paragraph.com/@ccnewscc) · 2022-11-29

---

*   欢迎大家关注 [0xFish](https://twitter.com/9xFish)，专注挖掘精品空投项目，相互交流持续学习
    
*   `免责声明`： **所有分享内容仅做学习交流，不构成任何投资建议**
    

背景
--

[Aleo](https://www.aleo.org/) 是第一个支持私有和可编程应用程序的去中心化开源平台。 使用零知识证明协议，提供更私密和更个性化的 Web 体验。可以在不透露信息本身的情况下证明某事的真实性。

Aleo 已获得2亿美金的B轮融资，与Aptos、Sui等明星公链量级相当。Aptos的测试网给参与节点搭建者空投了300APT，价值6000U。因此Aleo理论上也是妥妥的大毛。

[**Aleo官方discord**](https://discord.com/channels/700454073459015690/998987048700608653) **明牌空投:**

![奖励说明](https://storage.googleapis.com/papyrus_images/ebfaff1ab892441c9a893c344747f15f0c986954fa31cf5215581b83f1f975f5.png)

奖励说明

2500万个Aleo代币，将分配给开发者、白帽测试、证明者（我们现在要做的）和验证者。 具体的分配规则尚不清晰，请斟酌投入成本，自行判断是否参与。

`Testnet 3`的第二阶段 `prover` 已于 2022年11月10日开启，目前是准备阶段，4-8周后正式开始。

部署指南
----

### 1.1 节点要求

*   CPU：16C，建议 32C
    
*   RAM：16G，建议 32G
    
*   Storage：128G
    
*   Net：10Mbps
    

> 如果要运行具有竞争力的 **Aleo**

### 1.2 手动安装SnarkOS环境

在开始安装之前，请确保你已安装 `Rust v1.64+`

#### 安装 Rust

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

载入当前 `shell`

    source $HOME/.cargo/env
    

#### 安装 SnarkOS

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

进入 snarkos 目录

    cd snarkOS
    

对于 `Ubuntu` 用户提供了安装依赖项的帮助脚本。在snarkOS目录中，运行：

    ./build_ubuntu.sh
    

最后，开始安装

    cargo install --path .
    

脚本执行正确的情况下，可以看到如下提示。这里说明需要使用到4133和3033端口

    sudo ufw allow 4133
    sudo ufw allow 3033
    

> 提示：
> 
> *   如果提示未安装 `cargo`，则通过 `apt install cargo` 安装
>     

以上 `SnarkOS` 的环境基本就安装完成了

### 1.3 运行 Aleo 节点

#### 1.3.1 运行 Aleo Client

要启动 client 节点需要在 `snarkOS` 目录运行

    ./run-client.sh
    

> 说明：
> 
> *   如果只运行 `Prover` 的话，不需要执行上述 `1.3.1` 的步骤内容
>     

#### 1.3.2 运行 Aleo Prover

生成 `aleo` 地址

    snarkos account new
    

这将生成一个新的 `Aleo` 账号在终端上

**以下的内容严格保存起来：**

     Attention - Remember to store this account private key and view key.
    
      Private Key  APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  <-- Save Me And Use In The Next Step
         View Key  AViewKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  <-- Save Me
          Address  aleo1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx  <-- Save Me
    

**启动节点**

    ./run-prover.sh
    

出现提示时，输入上面获得的的 Aleo 私钥（Private Key）：

    Enter the Aleo Prover account private key: APrivateKey1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    

等待下载编译后，搞定！

节点运行半小时以上后，可以在 [在这里查看自己的积分](https://explorer.hamp.app/)，在右上角输入自己的地址（之前生成的Address）就可以查询了

### 1.3 一键安装

目前官方的版本无法更好的利用 `CPU` 资源，因此社区有人改了代码，可以更好的利用 `CPU` 资源。

**一键安装社区魔改版本**

    cd ~ && wget -O /root/aleo_simplefish.sh https://raw.githubusercontent.com/simplefish0909/aleo_cpu/main/aleo_simplefish.sh && chmod +x aleo_simplefish.sh
    

**一键安装官方版本**

    cd ~ && wget -O /root/aleo_simplefish.sh https://raw.githubusercontent.com/simplefish0909/aleo/main/aleo_simplefish.sh && chmod +x aleo_simplefish.sh
    

[https://explorer.hamp.app/](https://explorer.hamp.app/)

> 运行半小时后查看状态

---

*Originally published on [0xFish](https://paragraph.com/@ccnewscc/aleo-2)*
