Skip to content

Commit eb435a9

Browse files
committed
refactor: rename psy_validator to psy_prover
- psy_validator -> psy_prover - psy_validator_cli -> psy_prover_cli - Update all docs, install scripts, and workflows
1 parent a3fc1ec commit eb435a9

File tree

10 files changed

+58
-58
lines changed

10 files changed

+58
-58
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,23 @@ jobs:
8484
8585
- name: Build release binary
8686
run: |
87-
cargo build --release --target ${{ matrix.target }} --bin psy_validator_cli
87+
cargo build --release --target ${{ matrix.target }} --bin psy_prover_cli
8888
8989
- name: Strip binary (Unix)
9090
if: matrix.os != 'windows-latest'
9191
run: |
9292
if command -v strip >/dev/null 2>&1; then
93-
strip target/${{ matrix.target }}/release/psy_validator_cli${{ matrix.extension }} || true
93+
strip target/${{ matrix.target }}/release/psy_prover_cli${{ matrix.extension }} || true
9494
fi
9595
9696
- name: Compress binary (Unix)
9797
if: matrix.os != 'windows-latest'
9898
run: |
9999
cd target/${{ matrix.target }}/release
100-
if [ -f psy_validator_cli${{ matrix.extension }} ]; then
101-
tar czf ../../../../${{ matrix.artifact_name }}.tar.gz psy_validator_cli${{ matrix.extension }}
100+
if [ -f psy_prover_cli${{ matrix.extension }} ]; then
101+
tar czf ../../../../${{ matrix.artifact_name }}.tar.gz psy_prover_cli${{ matrix.extension }}
102102
else
103-
echo "Error: Binary not found at target/${{ matrix.target }}/release/psy_validator_cli${{ matrix.extension }}"
103+
echo "Error: Binary not found at target/${{ matrix.target }}/release/psy_prover_cli${{ matrix.extension }}"
104104
exit 1
105105
fi
106106
@@ -109,10 +109,10 @@ jobs:
109109
shell: pwsh
110110
run: |
111111
cd target/${{ matrix.target }}/release
112-
if (Test-Path psy_validator_cli${{ matrix.extension }}) {
113-
Compress-Archive -Path psy_validator_cli${{ matrix.extension }} -DestinationPath ../../../../${{ matrix.artifact_name }}.zip -Force
112+
if (Test-Path psy_prover_cli${{ matrix.extension }}) {
113+
Compress-Archive -Path psy_prover_cli${{ matrix.extension }} -DestinationPath ../../../../${{ matrix.artifact_name }}.zip -Force
114114
} else {
115-
Write-Error "Error: Binary not found at target/${{ matrix.target }}/release/psy_validator_cli${{ matrix.extension }}"
115+
Write-Error "Error: Binary not found at target/${{ matrix.target }}/release/psy_prover_cli${{ matrix.extension }}"
116116
exit 1
117117
}
118118
@@ -191,14 +191,14 @@ jobs:
191191
**Linux/macOS:**
192192
```bash
193193
tar -xzf psy-validator-cli-<platform>.tar.gz
194-
chmod +x psy_validator_cli
195-
./psy_validator_cli --help
194+
chmod +x psy_prover_cli
195+
./psy_prover_cli --help
196196
```
197197
198198
**Windows:**
199199
```powershell
200200
Expand-Archive psy-validator-cli-windows-x86_64.zip
201-
.\psy_validator_cli.exe --help
201+
.\psy_prover_cli.exe --help
202202
```
203203
files: release-assets/*
204204
draft: false

Cargo.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
[workspace]
22

33
[package]
4-
name = "psy_validator"
4+
name = "psy_prover"
55
version = "0.1.0"
66
edition = "2021"
77
rust-version = "1.86"
88

99
[lib]
10-
name = "psy_validator"
10+
name = "psy_prover"
1111
path = "src/lib.rs"
1212

1313
[[bin]]
14-
name = "psy_validator_cli"
14+
name = "psy_prover_cli"
1515
path = "src/main.rs"
1616

1717
[dependencies]

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ build:
22
RUSTFLAGS="-A warnings" cargo build --release
33

44
run:
5-
RUSTFLAGS="-A warnings" ./target/release/psy_validator_cli server --listen-addr 0.0.0.0 --port 4000
5+
RUSTFLAGS="-A warnings" ./target/release/psy_prover_cli server --listen-addr 0.0.0.0 --port 4000
66

77
test:
88
RUSTFLAGS="-A warnings" cargo test --release

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ cargo run --release -- server --listen-addr 0.0.0.0 --port 4000
148148
or run the binary directly:
149149

150150
```bash
151-
./target/release/psy_validator_cli server --listen-addr 0.0.0.0 --port 4000
151+
./target/release/psy_prover_cli server --listen-addr 0.0.0.0 --port 4000
152152
```
153153

154154
**Server Options:**

install.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ for /f "tokens=*" %%i in ('powershell -c "'%PROOF_ID%'.Trim()"') do set "PROOF_I
1616

1717
echo [DEBUG] PROOF_ID=[%PROOF_ID%]
1818

19-
echo [INFO] Installing psy_validator_cli from %REPO%
19+
echo [INFO] Installing psy_prover_cli from %REPO%
2020
echo [INFO] Platform: windows/amd64
2121

2222
:: Get latest version
@@ -33,7 +33,7 @@ if not exist "%INSTALL_DIR%" (
3333
mkdir "%INSTALL_DIR%" 2>nul
3434
)
3535

36-
set FINAL_PATH=%INSTALL_DIR%\psy_validator_cli.exe
36+
set FINAL_PATH=%INSTALL_DIR%\psy_prover_cli.exe
3737

3838
:: Check if already installed
3939
if exist "%FINAL_PATH%" (
@@ -43,7 +43,7 @@ if exist "%FINAL_PATH%" (
4343
)
4444

4545
:: Download binary
46-
set ASSET_NAME=psy_validator_cli_windows_x64.exe
46+
set ASSET_NAME=psy_prover_cli_windows_x64.exe
4747
set DOWNLOAD_URL=https://github.com/%REPO%/releases/download/%VERSION%/%ASSET_NAME%
4848
set DOWNLOAD_PATH=%TEMP%\%ASSET_NAME%
4949

install.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ get_latest_version() {
8585

8686
list_assets() {
8787
info "Available binaries:"
88-
echo " psy_validator_cli_macos_arm64"
89-
echo " psy_validator_cli_ubuntu22.04_amd64"
90-
echo " psy_validator_cli_windows_x64"
88+
echo " psy_prover_cli_macos_arm64"
89+
echo " psy_prover_cli_ubuntu22.04_amd64"
90+
echo " psy_prover_cli_windows_x64"
9191
}
9292

9393
try_download_asset() {
@@ -119,7 +119,7 @@ try_download_asset() {
119119
*) error "Unsupported OS: $os" ;;
120120
esac
121121

122-
asset_name="psy_validator_cli_${asset_suffix}"
122+
asset_name="psy_prover_cli_${asset_suffix}"
123123
url="https://github.com/$REPO/releases/download/$ver/$asset_name"
124124
output="$tmp_dir/$asset_name"
125125

@@ -168,7 +168,7 @@ EOF
168168
}
169169

170170
main() {
171-
info "Installing psy_validator_cli from $REPO"
171+
info "Installing psy_prover_cli from $REPO"
172172

173173
OS=$(detect_os)
174174
ARCH=$(detect_arch)
@@ -179,7 +179,7 @@ main() {
179179

180180
[ ! -d "$INSTALL_DIR" ] && { info "Creating: $INSTALL_DIR"; mkdir -p "$INSTALL_DIR"; }
181181

182-
FINAL_PATH="$INSTALL_DIR/psy_validator_cli"
182+
FINAL_PATH="$INSTALL_DIR/psy_prover_cli"
183183

184184
# Check if already installed with same version
185185
if [ -f "$FINAL_PATH" ]; then
@@ -230,6 +230,6 @@ main
230230

231231
[ -z "$PROOF_ID" ] && error "PROOF_ID environment variable is required"
232232

233-
info "Running: $INSTALL_DIR/psy_validator_cli fetch-job -b \"$PSY_DATA_URL\" -p \"$PROOF_ID\""
233+
info "Running: $INSTALL_DIR/psy_prover_cli fetch-job -b \"$PSY_DATA_URL\" -p \"$PROOF_ID\""
234234

235-
exec "$INSTALL_DIR/psy_validator_cli" fetch-job -b "$PSY_DATA_URL" -p "$PROOF_ID"
235+
exec "$INSTALL_DIR/psy_prover_cli" fetch-job -b "$PSY_DATA_URL" -p "$PROOF_ID"

src/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Psy Validator API Documentation
22

3-
This document describes the HTTP APIs exposed by `psy_validator_cli` service.
3+
This document describes the HTTP APIs exposed by `psy_prover_cli` service.
44

55
## Base URL
66

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use futures::future::join_all;
1010
use once_cell::sync::Lazy;
1111
use parth_core::{pgoldilocks::QHashOut, protocol::core_types::Q256BitHash};
1212
use plonky2::field::goldilocks_field::GoldilocksField;
13-
use psy_validator::{
13+
use psy_prover::{
1414
config::{run, Config},
1515
handler::parse_hex_hash,
1616
models::{

src/user.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Psy Validator CLI User Guide
22

3-
This guide explains how to deploy and use `psy_validator_cli` to generate and verify zero-knowledge proofs.
3+
This guide explains how to deploy and use `psy_prover_cli` to generate and verify zero-knowledge proofs.
44

55
## Table of Contents
66

@@ -25,7 +25,7 @@ cd psy-benchmark-verifier
2525
# Build the validator binary
2626
cargo build --release
2727

28-
# Binary will be at: target/release/psy_validator_cli
28+
# Binary will be at: target/release/psy_prover_cli
2929
```
3030

3131
### System Requirements
@@ -41,15 +41,15 @@ cargo build --release
4141
### Option 1: Direct Execution
4242

4343
```bash
44-
./target/release/psy_validator_cli \
44+
./target/release/psy_prover_cli \
4545
--listen-addr 0.0.0.0 \
4646
--port 4000 \
4747
--log-level info
4848
```
4949

5050
### Option 2: Systemd Service (Linux)
5151

52-
1. **Create service file** `/etc/systemd/system/psy_validator_cli.service`:
52+
1. **Create service file** `/etc/systemd/system/psy_prover_cli.service`:
5353

5454
```ini
5555
[Unit]
@@ -60,7 +60,7 @@ Wants=network.target
6060
[Service]
6161
Type=simple
6262
WorkingDirectory=/opt/psy_validator
63-
ExecStart=/opt/psy_validator/psy_validator_cli --listen-addr 0.0.0.0 --port 4000 --log-level info
63+
ExecStart=/opt/psy_validator/psy_prover_cli --listen-addr 0.0.0.0 --port 4000 --log-level info
6464
Restart=on-failure
6565
RestartSec=5
6666
LimitNOFILE=65535
@@ -78,18 +78,18 @@ WantedBy=multi-user.target
7878
```bash
7979
# Copy binary to /opt/psy_validator/
8080
sudo mkdir -p /opt/psy_validator
81-
sudo cp target/release/psy_validator_cli /opt/psy_validator/
81+
sudo cp target/release/psy_prover_cli /opt/psy_validator/
8282

8383
# Reload systemd and start service
8484
sudo systemctl daemon-reload
85-
sudo systemctl enable psy_validator_cli
86-
sudo systemctl start psy_validator_cli
85+
sudo systemctl enable psy_prover_cli
86+
sudo systemctl start psy_prover_cli
8787

8888
# Check status
89-
sudo systemctl status psy_validator_cli
89+
sudo systemctl status psy_prover_cli
9090

9191
# View logs
92-
sudo journalctl -u psy_validator_cli -f
92+
sudo journalctl -u psy_prover_cli -f
9393
```
9494

9595
---
@@ -99,7 +99,7 @@ sudo journalctl -u psy_validator_cli -f
9999
### Command Line Options
100100

101101
```bash
102-
psy_validator_cli [OPTIONS]
102+
psy_prover_cli [OPTIONS]
103103
```
104104

105105
**Options:**
@@ -112,13 +112,13 @@ psy_validator_cli [OPTIONS]
112112

113113
```bash
114114
# Default settings (0.0.0.0:4000, info log level)
115-
./psy_validator_cli
115+
./psy_prover_cli
116116

117117
# Custom port and log level
118-
./psy_validator_cli --port 8080 --log-level debug
118+
./psy_prover_cli --port 8080 --log-level debug
119119

120120
# Listen on specific interface
121-
./psy_validator_cli --listen-addr 127.0.0.1 --port 4000
121+
./psy_prover_cli --listen-addr 127.0.0.1 --port 4000
122122
```
123123

124124
### Verify Service is Running
@@ -354,16 +354,16 @@ cat input.json | \
354354
355355
```bash
356356
# If using systemd
357-
sudo journalctl -u psy_validator_cli -n 50
357+
sudo journalctl -u psy_prover_cli -n 50
358358

359359
# If running directly
360-
./psy_validator_cli --log-level debug
360+
./psy_prover_cli --log-level debug
361361
```
362362
363363
**Common issues:**
364364
365365
- **Port already in use**: Change port with `--port <different_port>`
366-
- **Permission denied**: Ensure binary has execute permissions (`chmod +x psy_validator_cli`)
366+
- **Permission denied**: Ensure binary has execute permissions (`chmod +x psy_prover_cli`)
367367
- **Missing dependencies**: Ensure all required libraries are installed
368368
369369
### Proof Generation Fails

0 commit comments

Comments
 (0)