# EthStorage V1 Trusted Setup Ceremony 的全过程

By [pangdong](https://paragraph.com/@pangdong) · 2025-08-14

---

    # EthStorage V1 Trusted Setup Ceremony 全流程教程（Linux 远程服务器版）
    
    本教程基于官方文档与本人实际操作过程整理，适合在远程服务器（Linux 环境）中参与 **EthStorage V1 Trusted Setup Ceremony**，确保一次成功。
    
    ---
    
    ## 一、必要条件
    
    在开始前，请确认你具备以下条件：
    
    1. **操作系统**  
       - Linux（Ubuntu 20.04/22.04 推荐），支持 SSH 登录
    2. **GitHub 账号要求**  
       - 注册超过 1 个月  
       - 至少 1 个公开仓库  
       - 至少 5 个关注、1 个粉丝  
       - 允许 CLI 工具访问并写入 Gist
    3. **网络条件**  
       - 稳定且可访问 GitHub  
       - 如果在国内，需准备好代理（http/https）
    4. **基础依赖软件**  
       - Node.js ≥ v18  
       - npm ≥ v9  
       - git  
       - curl
    
    ---
    
    ## 二、检查并安装依赖
    
    ### 1. 检查依赖版本
    ```bash
    node -v
    npm -v
    git --version
    curl --version
    

### 2\. 安装缺失依赖

#### 安装 Node.js & npm（推荐使用 nvm）

    # 安装 nvm
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
    source ~/.bashrc  # 或 ~/.zshrc
    
    # 安装 Node.js LTS 版本（如 18）
    nvm install 18
    nvm use 18
    
    # 更新 npm
    npm install -g npm
    

#### 安装 git & curl（适用于 Ubuntu/Debian）

    sudo apt update
    sudo apt install -y git curl
    

* * *

三、安装 Phase2 CLI
---------------

    npm install -g @p0tion/phase2cli
    

> 提示：安装过程中可能出现 `npm warn deprecated` 警告，可忽略，不影响使用。

* * *

四、参与仪式流程
--------

### 1\. 创建临时工作目录

    mkdir -p ~/ethstorage-ts && cd ~/ethstorage-ts
    

### 2\. GitHub 授权

*   运行后会显示：
    
        Visit https://github.com/login/device
        Your code is: XXXX-YYYY
        
    
*   在本地浏览器打开 `https://github.com/login/device`
    
*   输入 `XXXX-YYYY` 代码，登录 GitHub 并点击 **Authorize**
    
*   授权成功后，终端会显示：
    
        ✔ You are authenticated as @YourGitHubName
        
    

### 3\. 进入贡献流程（建议在 screen 中运行）

    # 启动 screen
    screen -S ethstorage
    
    # 执行贡献命令
    phase2cli contribute -c ethstorage-v1-trusted-setup-ceremony
    

*   当提示：
    
        Do you prefer to type your entropy or generate it randomly?
        
    
    选择 **Randomly** 或直接按回车。
    
*   进入 `Enter entropy (toxic waste)` 提示时：
    
    *   直接按回车使用自动生成的安全随机数。
        

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

> **提示**：
> 
> *   贡献过程中 CPU、内存占用较高，请不要中断。
>     
> *   上传阶段依赖网络质量，耐心等待。
>     
> *   若失败可重试 `phase2cli contribute -c ethstorage-v1-trusted-setup-ceremony`
>     

### 4\. 清理环境

    phase2cli clean
    phase2cli logout
    cd ~ && rm -rf ~/ethstorage-ts
    

* * *

五、常见问题
------

*   **提示中断或需重试** → 可能是网络问题或 SSH 会话断开，建议全程在 `screen` 中执行。
    
*   **长时间卡住** → 可能是队列等待，请耐心等待，轮到你时会自动开始。
    
*   **多次失败** → 换更稳定的网络或代理后重试。
    

* * *

六、参考资源
------

*   官方文档：[Join the EthStorage V1 Trusted Setup Ceremony](https://blog.ethstorage.io/join-the-ethstorage-v1-trusted-setup-ceremony/)
    
*   p0tion 项目：[GitHub - 0xPolygon/p0tion](https://github.com/0xPolygon/p0tion)
    

* * *

---

*Originally published on [pangdong](https://paragraph.com/@pangdong/ethstorage-v1-trusted-setup-ceremony)*
