← 返回
未分类 Key

Openclaw Pqsafe

Post-quantum signed SpendEnvelopes for AI agent payments. ML-DSA-65 (NIST FIPS 204) signatures over Airwallex, Wise, Stripe, USDC-Base, and x402 rails.
后量子签名 SpendEnvelopes,适用 AI 代理支付;采用 ML-DSA-65(NIST FIPS 204)签名,覆盖 Airwallex、Wise、Stripe、USDC‑Base 与 x402 通道。
rayc0 rayc0 来源
未分类 clawhub v0.1.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 286
下载
💾 0
安装
1
版本
#latest

概述

PQSafe Post-Quantum Payment Skill (pqsafe.pay.v1)

Post-quantum signed SpendEnvelopes for AI agent payments. ML-DSA-65 (NIST FIPS 204) signatures

over Airwallex, Wise, Stripe, USDC-Base, and x402 rails.

Quick Start

npm install @pqsafe/openclaw
import { OpenClawClient } from "@openclaw/sdk";
import "@pqsafe/openclaw"; // registers pqsafe.pay.v1

const claw = new OpenClawClient();

const envelope = await claw.invoke("pqsafe.pay.v1/create_envelope", {
  agentId:   "agent_my_bot_v1",
  payerId:   "payer_usr_abc123",
  maxAmount: "100.00",
  currency:  "USD",
  rail:      "wise",
  expiresAt: "2026-12-31T23:59:59Z",
});

Set PQSAFE_TEST_MODE=true for local development — no real keys or network calls required.

Operations

OperationDescription
------------------------
create_envelopeIssue a new ML-DSA-65 signed SpendEnvelope with spend cap, rail, and expiry
verify_envelopeVerify signature integrity, expiry, nonce uniqueness, and key ID validity
revoke_envelopeAppend envelope ID to the real-time revocation list (append-only, timestamped)

Security Model

  • HSM-backed signing keys — ML-DSA-65 private keys are generated and stored in hardware

security modules; they never leave the PQSafe key service

  • Single-use nonce — each envelope carries a 256-bit random nonce; replay attacks are

rejected at the verify layer

  • Expiry enforced in signed payloadexpiresAt is part of the signed content; an attacker

cannot extend expiry without invalidating the signature

  • Real-time revocation listrevoke_envelope appends to a low-latency revocation list

checked on every verify_envelope call

  • Append-only audit log — all create, verify, and revoke events are timestamped and written

to an immutable audit log

  • JCS-canonical signing — payload serialized in JSON Canonicalization Scheme form (RFC 8785)

before signing, eliminating signature ambiguity from key ordering or whitespace variation

Supported Rails

RailStatusCurrency
------------------------
airwallexLIVE sandboxMulti-currency (real test transfers)
wiseLIVE sandbox40+ fiat currencies (real test transfers)
stripemock-readyUSD + 135 others
usdc-basemock-readyUSDC
x402mock-readyUSDC + ETH

LIVE sandbox = validated end-to-end with sandbox rails. Mock-ready = SpendEnvelope creation and

verification are fully functional; live rail integration is in progress.

ML-DSA-65 Parameters

ParameterValue
------------------
StandardNIST FIPS 204
Security levelNIST Level 3
Public key size1,952 bytes
Secret key size4,032 bytes
Signature size3,309 bytes
Hardness assumptionModule-LWE + Module-SIS

Links

  • Homepage: https://pqsafe.xyz/openclaw-skill
  • npm package: https://www.npmjs.com/package/@pqsafe/openclaw
  • API docs: https://docs.pqsafe.xyz/agent-pay/openclaw
  • AP2-PQ Profile RFC: https://pqsafe.xyz/ap2-pq-rfc
  • NIST FIPS 204: https://csrc.nist.gov/pubs/fips/204/final
  • Source (Apache-2.0): https://github.com/PQSafe/pqsafe/tree/main/plugins/openclaw-pqsafe

License

Apache-2.0 — Security disclosures: security@pqsafe.xyz

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-05-08 02:46 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,410 📥 325,088
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,492 📥 557,070
ai-agent

Agent Browser

rez0
用于 AI 代理的浏览器自动化 CLI。当用户需要与网站交互(包括浏览页面、填写表单、点击按钮、截图等)时使用。
★ 844 📥 324,595