返回顶部
r

receipts-guard收据守护

ERC-8004 identity, x402 payments, and arbitration protocol for autonomous agent commerce. The three rails for the machine economy.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.7.1
安全检测
已通过
2,027
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

receipts-guard

RECEIPTS Guard v0.7.1 - 三条轨道

机器经济的轨道。

ERC-8004 身份 + x402 支付 + 仲裁协议。代理商业的基础设施。

三条轨道:

轨道标准目的
身份ERC-8004链上代理身份锚定
信任
ERC-8004 声誉 | 仲裁结果构建声誉 |
| 支付 | x402 | 付费仲裁,自动结算 |

本地优先。链上锚定。可云部署。安全强化。

v0.7.1 新特性(安全强化)

  • - 🔐 HTTP 认证 - API 密钥和 DID 请求签名
  • 🛡️ 授权检查 - /accept 接口的交易对手验证
  • 🌐 CORS 强化 - 可配置的来源白名单(默认阻止)
  • ⚡ 速率限制 - 每个 IP 每分钟 100 次请求
  • ✅ 输入验证 - 支付地址、费用、截止日期验证

v0.7.0 新特性

  • - ⛓️ ERC-8004 集成 - 将身份锚定到以太坊/Base 注册表
  • 💰 x402 支付 - 使用 USDC/ETH 的付费仲裁
  • ☁️ 云部署 - Dockerfile + Fly.io Sprites 支持
  • 🌐 HTTP 服务器模式 - 用于云代理的 REST API

来自 v0.6.0:

  • - 🪪 自主身份 - 基于 DID 的身份,使用 Ed25519 签名
  • 🔑 密钥轮换 - 旧密钥签署新密钥,创建不间断的证明链
  • 👤 人类控制者 - 基于 Twitter 的恢复后备方案

来自 v0.5.0:

  • - ⚖️ 完整仲裁协议 - 提议 → 接受 → 履行 → 仲裁 → 裁决
  • 📜 PAO(可编程协议对象) - 规范 termsHash,双方签名
  • 📊 LPR(法律来源审查) - 仲裁员的时间线可视化

快速开始

bash

=== 仲裁流程 ===

1. 创建提议

node capture.js propose 我将在周五前交付API文档 AgentX \ --arbiter=arbiter-prime --deadline=2026-02-14

2. 接受提议(作为交易对手)

node capture.js accept --proposalId=prop_abc123

3. 履行协议

node capture.js fulfill --agreementId=agr_xyz789 \ --evidence=文档已交付至 https://docs.example.com

--- 或者如果有争议 ---

4. 开启仲裁

node capture.js arbitrate --agreementId=agr_xyz789 \ --reason=non_delivery --evidence=截止日期前未收到文档

5. 提交证据(双方)

node capture.js submit --arbitrationId=arb_def456 \ --evidence=空收件箱截图 --type=screenshot

6. 发布裁决(作为仲裁员)

node capture.js ruling --arbitrationId=arb_def456 \ --decision=claimant --reasoning=证据显示截止日期后未交付

7. 查看时间线

node capture.js timeline --agreementId=agr_xyz789

命令

身份(v0.6.0)

identity init - 创建身份

bash node capture.js identity init --namespace=remaster_io --name=receipts-guard \ --controller-twitter=@Remaster_io

创建:

  • - Ed25519 密钥对
  • DID 文档:did:agent::
  • 人类控制者配置

identity show - 显示身份

bash node capture.js identity show [--full]

显示身份摘要或使用 --full 显示完整 DID 文档。

identity rotate - 轮换密钥

bash node capture.js identity rotate [--reason=scheduled|compromise|device_change]
  • - 旧密钥签署新密钥(证明链)
  • 旧密钥存档用于历史签名验证
  • 不间断链 = 同一身份

identity verify - 验证身份或签名

bash

验证 DID 密钥链

node capture.js identity verify --did=did:agent:acme:trade-bot

验证签名

node capture.js identity verify \ --signature=ed25519:xxx:timestamp \ --termsHash=sha256:abc123...

identity set-controller - 设置人类控制者

bash node capture.js identity set-controller --twitter=@handle

链接人类控制者用于紧急恢复。

identity recover - 紧急恢复

bash node capture.js identity recover --controller-proof= --confirm

人类控制者发布恢复授权,所有旧密钥被撤销。

identity publish - 发布 DID 文档

bash node capture.js identity publish [--platform=moltbook|ipfs|local]

identity anchor - 锚定到 ERC-8004(v0.7.0)

bash node capture.js identity anchor --chain=ethereum|base|sepolia

在链上向 ERC-8004 身份注册表注册身份:

  • - 需要 RECEIPTSWALLETPRIVATE_KEY 环境变量
  • 在 DID 文档中存储交易哈希
  • 主网:可信度锚点
  • Base:x402 原生,费用更低

已部署的注册表:

身份注册表状态
以太坊0x8004A169FB4a3325136EB29fA0ceB6D2e539a432已上线
Sepolia
0x8004A818FBf912233c491871b3d84c89A494BD9e | 测试网 |
| Base | 即将推出 | 待定 |

identity resolve - 解析 DID(v0.7.0)

bash node capture.js identity resolve --did=did:agent:namespace:name [--chain=CHAIN]

从本地存储或链上注册表解析 DID。



ERC-8004 集成(v0.7.0)

ERC-8004 标准为代理信任提供了三个注册表:

  1. 1. 身份注册表 - 基于 NFT 的代理标识符
  2. 声誉注册表 - 链上反馈和评分
  3. 验证注册表 - 验证者的工作验证

RECEIPTS 与现有注册表集成,同时提供更优越的链下协议生命周期管理。

链配置:
bash

环境变量


export ETHEREUM_RPC=https://eth.llamarpc.com
export BASE_RPC=https://mainnet.base.org
export RECEIPTSWALLETPRIVATE_KEY=0x... # 切勿提交此内容!


x402 支付集成(v0.7.0)

x402 实现了付费仲裁 - 仲裁员因其工作获得报酬。

带支付条款的提议

bash node capture.js propose 服务协议 交易对手 \ --arbiter=arbiter-prime \ --arbitration-cost=10 \ --payment-token=USDC \ --payment-chain=base \ --payment-address=0x... # 仲裁员地址

带支付证明的仲裁

bash

无支付证明(如果 x402 必需则失败)

node capture.js arbitrate --agreementId=agrxxx --reason=nondelivery

错误:需要支付:10 USDC

带支付证明

node capture.js arbitrate --agreementId=agrxxx --reason=nondelivery \ --evidence=... --payment-proof=0x123...

x402 模式:
json
{
x402: {
arbitrationCost: 10,
arbitrationToken: USDC,
arbitrationChain: 8453,
paymentAddress: 0x...,
paymentProtocol: x402,
version: 1.0
}
}



云部署(v0.7.0)

将 RECEIPTS Guard 作为持久化云代理运行。

HTTP 服务器模式

bash node capture.js serve [--port=3000]

公共端点(无需认证):

  • - GET / - 服务信息
  • GET /health - 健康检查
  • GET /identity - DID 文档
  • GET /identity/chains - 链状态

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 receipts-guard-1776350006 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 receipts-guard-1776350006 技能

通过命令行安装

skillhub install receipts-guard-1776350006

下载

⬇ 下载 receipts-guard v0.7.1(免费)

文件大小: 48 KB | 发布时间: 2026-4-17 15:20

v0.7.1 最新 2026-4-17 15:20
receipts-guard v0.7.1

- 🔐 Added HTTP API authentication with API Key and DID signature support
- 🛡️ Authorization checks: only counterparties can accept proposals via API
- 🌐 CORS restricted: default block, configurable allowed origins
- ⚡ Implemented rate limiting (100 requests/min per IP)
- ✅ Input validation for payment address, amount, and deadlines on proposals
- Clear separation of protected vs public HTTP endpoints in server mode

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部