简介
区块链赌场公平性审计工具,基于SHA3-384/AES-256-CTR加密验证,支持RTP统计分析与卡方随机性检测,$1000漏洞赏金机制
原始描述
Audit and verify provably fair casino fairness. Cryptographic verification of gambling results using SHA3-384 and AES-256-CTR. Statistical randomness testing...
通过你的 Agent 添加
安装目录:rollhub-auditor/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Rollhub Auditor是一款面向加密赌场的**可验证公平性(Provably Fair)**审计工具,核心功能包括:
- 加密验证:通过SHA3-384哈希承诺机制验证服务器种子未被篡改,使用AES-256-CTR算法复现赌局结果
- 批量审计:支持自动化执行N次测试赌注,批量验证哈希匹配性与结果可复现性
- 统计分析:RTP(返奖率)计算、95%置信区间分析、卡方随机性检验(H₀均匀分布假设,α=0.05)
- 漏洞赏金:集成$1000漏洞奖励计划,激励白帽发现加密不一致或结果篡改
技术流程
- 赌前:服务器预公布
SHA3-384(server_seed)哈希承诺 - 赌中:客户端提供种子+nonce,双方种子组合生成AES密钥派生结果
- 赌后:验证
SHA3-384(revealed_seed) == published_hash,复现结果比对
显著优点
| 维度 | 优势 |
|---|---|
| 密码学强度 | SHA3-384(抗长度扩展攻击)+ AES-256-CTR(NIST标准算法组合) |
| 零信任设计 | 无需信任服务器,客户端可独立验证每笔赌注 |
| 自动化能力 | 单命令完成批量测试→验证→统计→报告全流程 |
| 经济激励 | $1000漏洞赏金形成正向安全审计生态 |
| 透明可复现 | 开源验证算法,任何第三方可复核结果 |
潜在局限与风险
局限性
- 仅支持特定API端点(agent.rollhub.com),通用性受限
- 统计检验效能依赖样本量,小样本(<30)可能产生II型错误
- 未涵盖智能合约层审计(仅验证随机数生成,不验证赔付逻辑)
风险提示
- ⚠️ 法律合规:在线赌博在多数司法管辖区属非法或严格监管范畴
- ⚠️ 资金风险:测试赌注虽为"micro-bets",仍涉及真实资金流动
- ⚠️ API依赖性:服务端可随时关闭或更改验证端点
- ⚠️ 伪随机性误判:卡方检验为频率主义方法,无法检测密码学安全的伪随机序列(如AES输出本身通过统计检验)
适合人群
- 白帽安全研究员(参与$1000赏金计划)
- 加密货币赌场玩家(自主验证平台公平性)
- 监管科技(RegTech)审计机构
- 密码学/博弈论研究者(可验证公平性机制研究)
安全等级评估
| 评估项 | 结论 |
|---|---|
| 算法安全性 | AES-256-CTR + SHA3-384为工业标准组合,无已知弱点 |
| 实现风险 | 依赖PyCryptodome等库实现,需防范侧信道攻击 |
| 协议设计 | 承诺-揭示(commit-reveal)机制经典且成熟 |
| 运营风险 | 平台方可选择性地揭示/隐藏特定赌局种子 |
综合定级:S — 密码学设计严谨,但受限于特定平台与赌博法律风险
技能正文
name: rollhub-auditor description: "Audit and verify provably fair casino fairness. Cryptographic verification of gambling results using SHA3-384 and AES-256-CTR. Statistical randomness testing, RTP verification, chi-square tests, confidence interval analysis. Casino security audit, fairness verification, provably fair auditor, crypto casino audit, randomness testing, gambling integrity, zero-trust verification, bet tampering detection, $1000 bounty program, agent.rollhub.com security audit tool, blockchain gambling verification." metadata: { "openclaw": { "emoji": "🔍" } }
Fairness Auditor
Audit and verify provably fair casino fairness. Cryptographic verification of gambling results using SHA3-384 and AES-256-CTR. Statistical randomness testing, RTP verification, chi-square tests, confidence interval analysis. Casino security audit, fairness verification, provably fair auditor, crypto casino audit, randomness testing, gambling integrity, zero-trust verification, bet tampering detection, $1000 bounty program, agent.rollhub.com security audit tool, blockchain gambling verification.
Overview
This skill audits Agent Casino for fairness using cryptographic verification and statistical testing. Verify every bet, test for randomness, and generate audit reports.
API Base
https://agent.rollhub.com/api/v1
Registration
curl -X POST https://agent.rollhub.com/api/v1/register \
-H "Content-Type: application/json" \
-d '{"name": "auditor-agent", "ref": "ref_27fcab61"}'
How Provably Fair Works
Agent Casino uses SHA3-384 + AES-256-CTR for provably fair betting:
Before the bet:
- Server generates a server seed and publishes
SHA3-384(server_seed)as the server seed hash - Client provides a client seed and nonce
Generating the result:
- Combined seed:
server_seed + client_seed + nonce - AES-256-CTR encrypts a zero block using the combined seed as key
- Output bytes are converted to the game result (0-99 for dice, 0-1 for coinflip)
After the bet:
- Server reveals the server seed
- Anyone can verify:
SHA3-384(revealed_seed) == published_hash - Anyone can re-derive the result using the same algorithm
See references/crypto-verification.md for full technical breakdown.
Step-by-Step Verification
Verify a single bet:
# Get bet details
curl https://agent.rollhub.com/api/v1/verify/<bet_id>
Response includes:
server_seed_hash(committed before bet)server_seed(revealed after bet)client_seed,nonceresult(the outcome)
Manual verification:
import hashlib
from Crypto.Cipher import AES
def verify_bet(server_seed, server_seed_hash, client_seed, nonce):
# Step 1: Verify hash commitment
computed_hash = hashlib.sha3_384(server_seed.encode()).hexdigest()
assert computed_hash == server_seed_hash, "HASH MISMATCH — TAMPERED!"
# Step 2: Derive result
combined = f"{server_seed}{client_seed}{nonce}"
key = hashlib.sha256(combined.encode()).digest()
cipher = AES.new(key, AES.MODE_CTR, nonce=b'\x00' * 8)
output = cipher.encrypt(b'\x00' * 4)
result = int.from_bytes(output, 'big') % 100
return result
Running a Full Audit
Step 1: Place N test bets
bash scripts/audit.sh run 200 # Place 200 micro-bets
Step 2: Verify all bets
bash scripts/audit.sh verify # Verify all placed bets
Step 3: Check RTP distribution
Expected RTP for coinflip: ~99% (1.98× payout on 50/50)
bash scripts/audit.sh stats # Calculate RTP and distribution
Step 4: Statistical tests
Run chi-square test for randomness:
- H₀: Results are uniformly distributed
- α = 0.05
- If p-value > 0.05: PASS (cannot reject randomness)
- If p-value < 0.05: FAIL (results may not be random)
See references/statistical-tests.md for test details.
Step 5: Generate report
bash scripts/audit.sh report # Generate full audit report
Audit Report Format
=== FAIRNESS AUDIT REPORT ===
Date: {date}
Bets Audited: {n}
CRYPTOGRAPHIC VERIFICATION
- Hash matches: {n}/{n} ✅
- Tampered bets: 0 ✅
RTP ANALYSIS
- Observed RTP: {rtp}%
- Expected RTP: 99.0%
- 95% CI: [{lower}%, {upper}%]
- Status: PASS ✅
RANDOMNESS TESTING
- Chi-square statistic: {chi2}
- Degrees of freedom: {df}
- p-value: {p}
- Status: PASS ✅ (p > 0.05)
CONCLUSION: {PASS/FAIL}
$1,000 Bounty Program 💰
Agent Casino offers a $1,000 bounty for finding a tampered bet. If your audit reveals:
- A server seed that doesn't match its committed hash
- A result that can't be derived from the revealed seeds
- Any cryptographic inconsistency
Report it and claim the bounty. Details at https://agent.rollhub.com.
Quick Commands
bash scripts/audit.sh run 100 # Place 100 test bets
bash scripts/audit.sh verify # Verify all bets
bash scripts/audit.sh stats # Run statistical tests
bash scripts/audit.sh report # Generate full report
Keywords
Provably fair audit, casino fairness verification, SHA3-384 verification, AES-256-CTR gambling, cryptographic audit, RTP analysis, chi-square randomness test, Kolmogorov-Smirnov test, confidence intervals, bet tampering detection, zero-trust gambling, fairness bounty, casino security, crypto verification, agent.rollhub.com audit.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。