安全

xProof - Prove Before Act

在关键操作前后把智能体推理与执行结果锚定上链,生成可独立验证的 4W 审计轨迹。

它能做什么

把智能体的每一次关键操作拆成执行前的 WHY 锚点和执行后的 WHAT 锚点,均通过 MultiversX 区块最终性(约 6 秒)固化。WHO 由 MX-8004 链上身份注册表给出,由此拼出可加密重建的 4W 审计链(谁/做了什么/何时/为何)。内置 coherence loop 将每条 WHY 与对应 WHAT 关联并打分(0–100),异常行为通过 Base 上的智能合约登记。接入支持 REST、MCP(JSON-RPC 2.0)以及 x402 协议用 USDC 结算,统一定价 $0.01/次证明。

什么时候用它

  • 交易、划转等高风险操作前的链上留痕
  • 生产部署与数据访问的合规审计
  • 智能体异常行为的事后取证
  • 多智能体集群的一致性评分与违规监控

技能文档

xProof -- Prove Before & After Act — Accountability Layer for AI Agents

This skill enables your agent to anchor reasoning (WHY) on-chain before executing any significant action and the actual result (WHAT) after — creating a complete Prove Before & After Act cycle. Enforce pre-execution audit logging and detect violations via Base, producing tamper-proof, publicly verifiable records of who decided what, when, and why.

The Core Pattern: Prove Before & After Act

1. Reason (WHY) → 2. Hash locally → 3. Anchor WHY on-chain → 4. Get proof_id → 5. Execute → 6. Hash result (WHAT) → 7. Anchor WHAT on-chain → 8. Full 4W trail

Anchor reasoning (WHY) on-chain before execution. Anchor the actual result/output (WHAT) after for a complete 4W audit trail. The proof_id is your immutable pre-execution commitment — if something goes wrong, you have forensic evidence that the reasoning preceded the action.

4W breakdown — what each letter means and who provides it:

QuestionProvided by
WHOWhich agent or actor made this decision?MX-8004 — MultiversX on-chain identity registry; anchors the agent's verified wallet address, DID, and reputation
WHATWhat output or action was certified?xProof — SHA-256 hash of the output, anchored on MultiversX mainnet
WHENImmutable timestamp?xProof — MultiversX block finality (~6 s); not a self-reported clock
WHYWhat reasoning led to the decision?xProofaction_description, risk_level, and context fields from /api/audit

xProof owns WHAT / WHEN / WHY and the causal link that proves reasoning preceded the action. MX-8004 owns WHO. Together they form a forensically complete 4W trail.

Agent reference: https://xproof.app/agent-context — 13 Q&A sections written specifically for autonomous agents: production deployment patterns, retry policy, x402 payment walkthrough, 4W audit trail deep-dive, privacy model, fleet monitoring, latency benchmarks, and framework integration examples (LangChain, CrewAI, AutoGen, LlamaIndex, OpenAI Agents SDK, Fetch.ai).

Why Prove Before Act? An agent that can prove its reasoning before acting is fundamentally more trustworthy than one that cannot. It creates an unbreakable causal chain: the intent existed before the action, and the blockchain makes that sequence immutable.

Why audit? Autonomous agents executing trades, deployments, or data access need an immutable record of every decision. The Agent Audit Log Standard enforces this: no proof = no execution.

Why violations? Trust requires accountability. xProof detects anomalies (gaps, burst patterns) and records violations on Base via smart contracts. Operators can subscribe to violation events and enforce policies automatically.

Pricing

Flat rate: $0.01 per proof -- no tiers, no volume discounts, same price whether you anchor 1 or 100,000 proofs.

ScaleCost
1 proof$0.01
1,000 proofs$10
10,000 proofs$100
50 agents × 20 actions/day × 30 days$300/month

Payment: USDC on Base (x402, no account) or EGLD on MultiversX (ACP/wallet) or prepaid credits.

Quick Install

The canonical source for all skill files is the main xProof repository (jasonxkensei/xProof), which is the repository audited by security tools. Install from there directly:

mkdir -p .agent/skills/xproof/references

# Core Skill — from the canonical main repository
curl -sL https://raw.githubusercontent.com/jasonxkensei/xProof/main/clawhub-publish/xproof/SKILL.md \
  > .agent/skills/xproof/SKILL.md

# Reference Manuals
for f in certification x402 mcp; do
  curl -sL "https://raw.githubusercontent.com/jasonxkensei/xProof/main/clawhub-publish/xproof/references/${f}.md" \
    > ".agent/skills/xproof/references/${f}.md"
done

Source verification: All files above are served from github.com/jasonxkensei/xProof — the same repository that contains the server code, contracts, and SDKs. You can audit the full source at that URL before installing.

Security

  • NEVER commit API keys to a public repository.
  • ALWAYS add .env to your .gitignore.
  • API keys are prefixed pm_ -- treat them like passwords.
  • x402 mode requires no API key (payment replaces authentication).
  • NEVER send plaintext content to xproof.app -- always hash locally first (sha256sum, crypto.subtle.digest, or equivalent). The only field xproof accepts is file_hash (64-char SHA-256 hex). No raw text, documents, or binary data should ever leave your environment.
  • x402 is opt-in and autonomous -- once enabled, your agent can initiate USDC payments on Base without per-transaction confirmation. Configure a spending cap in your agent framework and require human approval above your threshold before enabling x402 in production.
  • llms.txt and llms-full.txt are static documentation references -- load them once at install time for API reference, not at runtime on every call. Fetching them dynamically on each invocation creates an unnecessary runtime dependency on xproof.app availability and a potential prompt-injection surface if the file is ever compromised.
  • Guard/enforcement templates are versioned in the repository -- never fetch agent enforcement code from a runtime URL. Use the pinned versions in references/ or the SDK packages (xproof on PyPI, @xproof/xproof on npm).

Configuration

Option A: API Key Authentication

# ---- xProof ---------------------------------------------------------------
XPROOF_API_KEY="pm_..."                          # Your API key (from xproof.app)
XPROOF_BASE_URL="https://xproof.app"             # Production endpoint

Get an API key at xproof.app (connect wallet, go to Settings > API Keys).

Option B: x402 Payment Protocol (No Account Required)

No configuration needed. Pay in USDC on Base (eip155:8453) directly in the HTTP request. The 402 response header tells your agent exactly what to pay. Flat rate: $0.01 per proof.

WARNING -- autonomous payments: x402 is an opt-in mode that enables your agent to initiate on-chain USDC transactions without per-transaction user confirmation. Before enabling x402 in production:

  • Set a spending cap in your agent framework (e.g. max $N/day or $N/session).
  • Require human approval for any single call that would exceed your risk threshold.
  • Note that POST /api/batch supports up to 100 items per call -- at $0.01 each, a batch of 100 costs $1.00.
  • Disable x402 entirely in environments where autonomous spending is not authorised.

1. Core Skills Catalog

1.1 Proof Anchoring (REST API)

Full Reference

SkillEndpointDescription
certify_filePOST /api/proofAnchor a file hash on MultiversX as immutable proof
batch_certifyPOST /api/batchAnchor up to 50 files in one call
audit_agent_sessionPOST /api/auditAnchor agent decision on-chain BEFORE executing critical action
verify_proofGET /api/proof/:idVerify an existing proof
get_certificateGET /api/certificates/:id.pdfDownload PDF certificate with QR code
get_badgeGET /badge/:idDynamic SVG badge (shields.io style)
get_proof_pageGET /proof/:idHuman-readable proof page
get_proof_jsonGET /proof/:id.jsonStructured proof document (JSON)
get_audit_pageGET /audit/:idHuman-readable audit log page

1.2 Proof Anchoring (MCP -- JSON-RPC 2.0)

Full Reference

ToolDescription
certify_fileCreate blockchain proof -- SHA-256 hash, filename, optional author/webhook
verify_proofVerify existing proof by UUID
get_proofRetrieve proof in JSON or Markdown format
discover_servicesList capabilities, pricing, and usage guidance
audit_agent_sessionAnchor agent decision on-chain BEFORE executing critical action

1.3 Payment (x402)

Full Reference

x402 is not a separate skill -- it is a payment method. When you call POST /api/proof or POST /api/batch without an API key, the server returns 402 Payment Required with payment instructions. Your agent pays in USDC on Base and retries with an X-Payment header.


Anchoring the WHY and the WHAT is not enough: you must link them. An unlinked WHY anchor shows as divergent in your public coherence history after 1 hour, and after the 2-hour TTL it is additionally flagged as a proposed fault violation — both lower your public coherence rate.

Full loop: check_coherence (WHY) → execute → certify_file with metadata.why_proof_id (WHAT) → POST /api/coherence/link.

# Step 4 — close the loop (API key required; both proofs must be yours)
curl -X POST https://xproof.app/api/coherence/link \
  -H "Authorization: Bearer pm_..." \
  -H "Content-Type: application/json" \
  -d '{"why_proof_id": "", "what_proof_id": ""}'
# → 200 {"success": true, "coherence_check": {"coherence_score": 85, ...},
#        "score_breakdown": {"linked": true, "what_within_1h": true,
#                            "what_references_why": true, "what_confirmed_on_chain": false,
#                            "execution_preceded_intent": false}}

Score (0–100): 50 for linking + 15 if WHAT within 1h of WHY + 20 if WHAT's metadata.why_proof_id references the WHY + 15 if WHAT confirmed on-chain. WHAT certified before the WHY → base halved to 25.

Error cases:

StatusErrorMeaning
409ALREADY_LINKEDWHY anchor already linked to a different WHAT. Re-linking the same pair returns 200 with already_linked: true (idempotent).
400NOT_A_COHERENCE_ANCHORwhy_proof_id is a regular proof. Create the WHY via the check_coherence MCP tool, or certify with metadata.type = "coherence_check".
404WHY_PROOF_NOT_FOUND / WHAT_PROOF_NOT_FOUNDProof missing or owned by another account.

SDK helpers: client.link_coherence(why_proof_id, what_proof_id) (Python xproof ≥ 0.2.10) · client.linkCoherence(whyProofId, whatProofId) (npm @xproof/xproof ≥ 0.1.11).

Check your history: GET https://xproof.app/api/agents//coherence — public; per-anchor status (linked / pending / divergent) + aggregate coherence rate.


3. Webhooks

Supply an optional webhook_url field on POST /api/proof or POST /api/batch to receive a callback when the proof is confirmed on-chain.

Scope — the webhook payload contains only:

FieldTypeDescription
proof_idstring (UUID)The proof identifier
file_hashstringSHA-256 hex of the certified file
filenamestringFilename submitted with the proof
statusstring"confirmed"
blockchain_txstringMultiversX transaction hash
explorer_urlstringLink to the transaction on MultiversX Explorer
timestampstringISO 8601 confirmation time

No raw file content, no API keys, no account information, and no metadata beyond the above is ever sent to the webhook endpoint.

Authentication: Every delivery includes an X-Webhook-Signature header containing an HMAC-SHA256 signature computed with a per-relationship secret. Verify this signature before processing the payload. Retry policy: 3 attempts with exponential backoff (1 s, 5 s, 30 s).

SSRF protection: xproof.app validates webhook_url before delivery. Private IP ranges (RFC 1918), loopback (127.x, ::1), link-local, and non-HTTPS destinations are blocked. DNS rebinding is mitigated by pinning the resolved socket address to the pre-validated IP at connection time.

# Example proof request with webhook
curl -X POST https://xproof.app/api/proof \
  -H "Authorization: Bearer pm_..." \
  -H "Content-Type: application/json" \
  -d '{
    "file_hash": "a1b2c3...",
    "filename": "output.json",
    "webhook_url": "https://your-agent.example.com/hooks/xproof"
  }'

9. Violations Layer (Base)

xProof monitors agent behavior and detects anomalies. When a violation is confirmed, it is recorded on Base via the XProofViolations.sol smart contract, impacting the agent's trust score.

Violation Types

TypePenaltyTrigger
gap (fault)-150 trust scoreNo proof activity for 30+ minutes during active session
burst (breach)-500 trust scoreAbnormal spike in proof submissions

Smart contracts: XProofViolations.sol | ViolationWatcher.sol

Docs: https://xproof.app/docs/base-violations


10. Agent Proof Standard

xProof implements the open Agent Proof Standard -- a composable, chain-agnostic format for agent accountability.

Full specification: AGENT_PROOF_STANDARD.md

Standard API: GET /api/standard | GET /api/standard/validate (POST)


11. Discovery Endpoints

EndpointDescription
GET /.well-known/agent.jsonAgent Protocol manifest
GET /.well-known/mcp.jsonMCP server manifest
GET /.well-known/agent-audit-schema.jsonAgent Audit Log canonical schema
GET /ai-plugin.jsonOpenAI ChatGPT plugin manifest
GET /llms.txtLLM-friendly summary
GET /llms-full.txtComplete LLM reference
POST /mcpMCP JSON-RPC 2.0 endpoint
GET /mcpMCP capability discovery
GET /api/standardAgent Proof Standard specification
GET /agent-contextAgent-first deep-dive: production patterns, retry policy, 4W walkthrough, x402, cost, MCP examples, framework integrations

12. Command Cheatsheet

# Hash locally first -- the original content must never leave your environment.
# xproof only receives the SHA-256 hex hash, filename, and metadata you choose to share.
sha256sum myfile.pdf | awk '{print $1}'
# Then POST the hash to /api/proof

# Anchor via MCP
curl -X POST https://xproof.app/mcp \
  -H "Authorization: Bearer pm_..." \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"certify_file","arguments":{"file_hash":"...","filename":"myfile.pdf"}}}'

# Verify a proof
curl https://xproof.app/api/proof/

# Get badge (embed in README)
![xProof](https://xproof.app/badge/)

# Batch anchor
curl -X POST https://xproof.app/api/batch \
  -H "Authorization: Bearer pm_..." \
  -d '{"files":[{"file_hash":"...","filename":"a.txt"},{"file_hash":"...","filename":"b.txt"}]}'

# Close the WHY→WHAT coherence loop (after check_coherence + certify_file)
curl -X POST https://xproof.app/api/coherence/link \
  -H "Authorization: Bearer pm_..." \
  -d '{"why_proof_id":"","what_proof_id":""}'

# Health check
curl https://xproof.app/api/acp/health

常见问题

定价怎么算?
统一 $0.01/次证明,不分阶梯、不分用户、不设最低消费。可用 API Key、预付额度、MultiversX 上的 EGLD,或通过 x402 用 Base 上的 USDC 直接支付。
哪些数据会上链?
只提交 64 位 SHA-256 哈希以及结构化字段(文件名、action_description、risk_level、context 等)。技能规范明确禁止把原文、文档或二进制内容发送到 xproof.app。
如果一直没把 WHY 链接到 WHAT 会怎样?
1 小时后该 WHY 会在公开 coherence 历史中显示为 divergent,超过 2 小时 TTL 后还会被标记为 proposed fault violation,两者都会拉低你的公开一致性评分。

相关技能

Nano (XNO) cryptocurrency wallet operations, transaction analysis, and explorer lookups. Use for send/receive, balances, pending funds, address validation, unit conversion, tx/hash/account lookup, explorer links, and Nano block-lattice questions. Prefer xno-mcp first; use xno-skills CLI as fallback.

53 次安装

This skill should be used when the user asks to "provision GPU instance", "spin up a cloud server", "list compute plans", "browse GPU pricing", "deploy AI machine", "one-click GPU running an LLM", "deploy a private LLM endpoint", "OpenRouter-ready endpoint", "agent deploy GPU", "spin up my own OpenAI-compatible endpoint", "extend compute instance", "resize compute instance", "destroy server instance", "check instance status", "list my instances", "top up compute credits", "check credit balance", "run inference on the grid", "decentralized inference", "OpenAI-compatible API", "confidential / TEE inference", "list grid models", "check grid capacity", "run a node", "provide compute", "become a grid node", "node operator", "join the grid", "stake to run a node", "serve a model on the grid", "earn from compute", "deploy an always-on AI agent", "deploy a hosted OpenClaw agent", "spin up a ClawPod", "agent pod", "hosted agent with its own wallet", "free agent trial", "deploy a processor", "se

52 次安装4 星标

经用户授权后,通过 CLI 或托管 MCP 读取 Fulcra 个人上下文数据——体征、睡眠、活动、日历、位置。

115 次安装11 星标

一条提示词搞定代币、DeFi、链上数据与组合策略的深度加密研究。

118 次安装8 星标

在本地核验 SAR v0.1 结算回执的 Ed25519 签名与 RFC 8785 规范化摘要。

86 次安装1 星标

把收到的发票归档并审核——OCR、去重校验、增值税分档与可检索的本地存档。

64 次安装2 星标