关于 nostr-wot
nostr-wot 是用于交易前评估 Nostr 联系方风险的技能,现已弃用并并入 wot。它可查询信任分数、识别疑似女巫账户、探索信任关系,并查看网络统计。
主要功能
- 01查询信任分数、排名和百分位
- 02按多项信号分类疑似女巫账户
- 03发现信任图谱中的关联公钥
- 04查看全网图谱统计
- 05配置信任阈值并查看缓存
适用场景
- 01交易前评估 Nostr 联系方
- 02筛查可疑或疑似女巫公钥
- 03检查公钥的信任网络邻居
- 04调整评估门槛并查看缓存状态
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ aibtcdev/ skills --skill nostr-wot安装后在 Claude Code 中输入/nostr-wot确认已加载。
附带文件nostr-wot.ts
详细介绍
已弃用: 此技能已合并到
wot。所有 Web of Trust 操作都请使用wot技能。此技能将不再更新。
Nostr Web of Trust 技能
使用 Nostr Web of Trust 评分,在交易前评估交易对手风险。接受十六进制公钥或 npub1... bech32 地址。
- 索引了 52K+ 个公钥,包含 2.4M+ 条信任边
- 信任边按 zap 收据加权(经济信号,更难伪造)
- 免费层:
wot.klabo.world(每个 IP 每天 50 次请求),无需密钥 - 付费备用服务:免费层额度耗尽时使用
maximumsats.com/api/wot-report(通过 L402 支付 100 sats) - 本地缓存 1 小时,避免重复 API 调用
用法
bun run nostr-wot/nostr-wot.ts <subcommand> [options]
子命令
trust-score
查询 WoT 信任评分、排名和百分位数。根据可配置的阈值进行检查。
bun run nostr-wot/nostr-wot.ts trust-score --pubkey 2b4603d2...
bun run nostr-wot/nostr-wot.ts trust-score --npub npub1abc...
输出:
{
"success": true,
"cached": false,
"api": "free",
"pubkey": "2b4603d2...",
"trusted": true,
"normalized_score": 87,
"rank": 142,
"percentile": 99.7
}
sybil-check
根据关注者质量、互信比例和社区融入度信号,将公钥归类为 normal、suspicious 或 likely_sybil。
bun run nostr-wot/nostr-wot.ts sybil-check --pubkey 2b4603d2...
bun run nostr-wot/nostr-wot.ts sybil-check --npub npub1abc...
输出:
{
"success": true,
"pubkey": "2b4603d2...",
"classification": "normal",
"is_sybil": false,
"is_suspicious": false
}
neighbors
发现信任图中的邻居——与之连接且具有综合信任评分的公钥。
bun run nostr-wot/nostr-wot.ts neighbors --pubkey 2b4603d2...
network-health
图范围的统计数据:节点总数、边数、基尼系数、幂律 alpha。无需公钥。
bun run nostr-wot/nostr-wot.ts network-health
config
查看或更新信任阈值。存储位置:~/.aibtc/nostr-wot/config.json。
bun run nostr-wot/nostr-wot.ts config # view current thresholds
bun run nostr-wot/nostr-wot.ts config --min-rank 5000
bun run nostr-wot/nostr-wot.ts config --require-top100
bun run nostr-wot/nostr-wot.ts config --no-require-top100
阈值字段:
minRank— 可接受的最高排名。默认值:10000requireTop100— 若未进入前 100 名则拒绝。默认值:false
cache-status
显示缓存统计信息。缓存存储在 ~/.aibtc/nostr-wot/cache.json,TTL 为 1 小时。
bun run nostr-wot/nostr-wot.ts cache-status
信任阈值
| 排名 | 含义 |
|---|---|
| 1–100 | 精英(按 WoT 排名的 Nostr 用户前 100 名) |
| 101–1000 | 联系广泛、经济活动频繁 |
| 1001–10000 | 活跃的社区成员 |
| >10000 | 信任度低、新账户或没有 Nostr 活动 |
API 详情
按顺序尝试两个端点:
| 基础 URL | 认证 | 费用 | 速率 |
|---|---|---|---|
https://wot.klabo.world | 无 | 免费 | 每个 IP 每天 50 次请求 |
https://maximumsats.com/api/wot-report | L402 | 100 sats | 不限 |
免费层额度耗尽时会返回 HTTP 402;技能会自动切换到付费端点。L402 支付需要 Lightning 客户端——如果没有,付费调用会返回包含 BOLT11 发票的错误。
评论
支持 Markdown