-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdemo-video-script.sh
More file actions
executable file
·245 lines (200 loc) · 13.5 KB
/
demo-video-script.sh
File metadata and controls
executable file
·245 lines (200 loc) · 13.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
#!/bin/bash
# ═══════════════════════════════════════════════════════════════════════════════
# SolVoid Demo Video Script
# Run this while screen recording to showcase the entire protocol
# ═══════════════════════════════════════════════════════════════════════════════
# Colors for nice output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
BLUE='\033[0;34m'
PURPLE='\033[0;35m'
CYAN='\033[0;36m'
NC='\033[0m' # No Color
# Pause function - waits for Enter key
pause() {
echo ""
echo -e "${YELLOW}▶ Press ENTER to continue...${NC}"
read
clear
}
# Section header
section() {
echo ""
echo -e "${PURPLE}═══════════════════════════════════════════════════════════════${NC}"
echo -e "${CYAN} $1${NC}"
echo -e "${PURPLE}═══════════════════════════════════════════════════════════════${NC}"
echo ""
}
# Command display
run_cmd() {
echo -e "${GREEN}$ $1${NC}"
echo ""
eval $1
echo ""
}
clear
echo -e "${PURPLE}"
cat << "EOF"
███████╗ ██████╗ ██╗ ██╗ ██╗ ██████╗ ██╗██████╗
██╔════╝██╔═══██╗██║ ██║ ██║██╔═══██╗██║██╔══██╗
███████╗██║ ██║██║ ██║ ██║██║ ██║██║██║ ██║
╚════██║██║ ██║██║ ╚██╗ ██╔╝██║ ██║██║██║ ██║
███████║╚██████╔╝███████╗╚████╔╝ ╚██████╔╝██║██████╔╝
╚══════╝ ╚═════╝ ╚══════╝ ╚═══╝ ╚═════╝ ╚═╝╚═════╝
Privacy Lifecycle Management Platform - Demo
EOF
echo -e "${NC}"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 1: Project Overview
# ═══════════════════════════════════════════════════════════════════════════════
section "1. PROJECT STRUCTURE"
run_cmd "ls -la"
pause
run_cmd "cat package.json | head -25"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 2: Build & Compile
# ═══════════════════════════════════════════════════════════════════════════════
section "2. BUILD & COMPILE"
echo -e "${BLUE}Building TypeScript SDK & CLI...${NC}"
run_cmd "npm run build"
pause
echo -e "${BLUE}Checking Rust/Anchor Program...${NC}"
run_cmd "ls -la programs/solvoid-zk/src/"
pause
echo -e "${BLUE}Anchor keys...${NC}"
run_cmd "anchor keys list"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 3: ZK Circuits
# ═══════════════════════════════════════════════════════════════════════════════
section "3. ZK CIRCUITS (Zero-Knowledge Proofs)"
echo -e "${BLUE}Circuit source code...${NC}"
run_cmd "cat circuits/withdraw.circom | head -40"
pause
echo -e "${BLUE}Compiled circuit artifacts...${NC}"
run_cmd "ls -la circuits/build/"
pause
echo -e "${BLUE}Verification key (Groth16)...${NC}"
run_cmd "cat verification_key.json | head -25"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 4: Testnet/Devnet Setup
# ═══════════════════════════════════════════════════════════════════════════════
section "4. TESTNET/DEVNET SETUP"
echo -e "${BLUE}Configure Solana CLI for Devnet...${NC}"
run_cmd "solana config set --url devnet"
pause
echo -e "${BLUE}Check wallet balance...${NC}"
run_cmd "solana balance"
pause
echo -e "${BLUE}Request airdrop (faucet)...${NC}"
run_cmd "solana airdrop 1"
pause
echo -e "${BLUE}Verify new balance...${NC}"
run_cmd "solana balance"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 5: CLI Commands Demo
# ═══════════════════════════════════════════════════════════════════════════════
section "5. CLI COMMANDS - Privacy Analysis"
echo -e "${BLUE}Privacy Ghost Score Analysis...${NC}"
echo -e "${YELLOW}(Analyzing a real mainnet whale wallet - Binance)${NC}"
run_cmd "cd cli && npx ts-node solvoid-scan.ts ghost 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM"
pause
echo -e "${BLUE}Generate Privacy Badge...${NC}"
run_cmd "cd cli && npx ts-node solvoid-scan.ts ghost 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM --badge"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 6: Rescue Dry-Run Demo
# ═══════════════════════════════════════════════════════════════════════════════
section "6. ATOMIC RESCUE ENGINE (Dry-Run)"
echo -e "${BLUE}Rescue simulation (no real transaction)...${NC}"
echo -e "${YELLOW}This shows what would happen in an emergency rescue${NC}"
run_cmd "cd cli && npx ts-node solvoid-scan.ts rescue 9WzDXwBbmkg8ZTbNMqUxvQRAyrZzDsGYdLVL9zYtAWWM --dry-run"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 7: Run Tests
# ═══════════════════════════════════════════════════════════════════════════════
section "7. SECURITY TESTING"
echo -e "${BLUE}Security Test Suite Validation...${NC}"
run_cmd "./scripts/security-test-suite.sh"
pause
echo -e "${BLUE}Rust Program Tests...${NC}"
run_cmd "cd programs/solvoid-zk && cargo test 2>&1 | head -50"
pause
echo -e "${BLUE}Hash Consistency Verification...${NC}"
run_cmd "./scripts/verify-hash-consistency.sh 2>&1 | head -30"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 8: Anchor/Solana Program
# ═══════════════════════════════════════════════════════════════════════════════
section "8. SOLANA PROGRAM (On-Chain)"
echo -e "${BLUE}Program source code (lib.rs)...${NC}"
run_cmd "head -80 programs/solvoid-zk/src/lib.rs"
pause
echo -e "${BLUE}Economics module (circuit breaker, fees)...${NC}"
run_cmd "head -60 programs/solvoid-zk/src/economics.rs"
pause
echo -e "${BLUE}Program keypair...${NC}"
run_cmd "anchor keys list"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 9: Dashboard
# ═══════════════════════════════════════════════════════════════════════════════
section "9. DASHBOARD (Web Interface)"
echo -e "${BLUE}Dashboard components...${NC}"
run_cmd "ls -la dashboard/src/components/"
pause
echo -e "${YELLOW}Starting Dashboard server...${NC}"
echo -e "${YELLOW}Open http://localhost:3000 in browser${NC}"
echo ""
echo -e "${GREEN}$ npm run dashboard:dev${NC}"
echo ""
echo -e "${YELLOW}(Dashboard would start here - Ctrl+C to stop)${NC}"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# SECTION 10: Documentation
# ═══════════════════════════════════════════════════════════════════════════════
section "10. DOCUMENTATION"
echo -e "${BLUE}Trust Assumptions Document...${NC}"
run_cmd "head -60 TRUST_ASSUMPTIONS_FREEZE.md"
pause
echo -e "${BLUE}Mainnet Launch Checklist...${NC}"
run_cmd "head -60 MAINNET_LAUNCH_CHECKLIST.md"
pause
# ═══════════════════════════════════════════════════════════════════════════════
# FINALE
# ═══════════════════════════════════════════════════════════════════════════════
clear
echo -e "${GREEN}"
cat << "EOF"
╔═══════════════════════════════════════════════════════════════╗
║ ║
║ ███████╗ ██████╗ ██╗ ██╗ ██╗ ██████╗ ██╗██████╗ ║
║ ██╔════╝██╔═══██╗██║ ██║ ██║██╔═══██╗██║██╔══██╗ ║
║ ███████╗██║ ██║██║ ██║ ██║██║ ██║██║██║ ██║ ║
║ ╚════██║██║ ██║██║ ╚██╗ ██╔╝██║ ██║██║██║ ██║ ║
║ ███████║╚██████╔╝███████╗╚████╔╝ ╚██████╔╝██║██████╔╝ ║
║ ╚══════╝ ╚═════╝ ╚══════╝ ╚═══╝ ╚═════╝ ╚═╝╚═════╝ ║
║ ║
║ DEMO COMPLETE - Thank you! ║
║ ║
║ Features Demonstrated: ║
║ ✓ TypeScript SDK & CLI ║
║ ✓ Rust/Anchor Solana Program ║
║ ✓ ZK Circuits (Groth16) ║
║ ✓ Privacy Ghost Score ║
║ ✓ Atomic Rescue Engine ║
║ ✓ Security Test Suite ║
║ ✓ Circuit Breaker & Economics ║
║ ✓ Production Documentation ║
║ ║
╚═══════════════════════════════════════════════════════════════╝
EOF
echo -e "${NC}"
echo ""
echo -e "${CYAN} SolVoid v1.3.0 - Privacy Lifecycle Management${NC}"
echo ""