Xpersona
C

confidential-agentic-payment-stack

CLAWHUB · Unverified

FHE-encrypted x402 payments for OpenClaw agents. Use when the agent needs to make private on-chain payments, wrap/unwrap encrypted tokens, manage escrow jobs...

62
Rank
84
Safety
1.0k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ep93st8gsn4c6new2ycqnc584dwhd:confidential-agentic-payment-stack
  1. Install using `clawhub skill install s17ep93st8gsn4c6new2ycqnc584dwhd:confidential-agentic-payment-stack` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/billynothack/confidential-agentic-payment-stack before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-billynothack-confidential-agentic-payment-stack/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

24,064 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: fhe-x402-payment
description: FHE-encrypted x402 payments for OpenClaw agents. Use when the agent needs to make private on-chain payments, wrap/unwrap encrypted tokens, manage escrow jobs, register agent identity, give reputation feedback, or delegate balance viewing. Runs on Ethereum Sepolia (default) or Mainnet with Zama fhEVM. Supports three wallet modes — local private key, DFNS MPC, and Ledger hardware wallet.
version: 1.0.0
metadata:
  openclaw:
    requires:
      env:
        - RPC_URL
      anyBins:
        - node
    primaryEnv: USER_PRIVATE_KEY
    emoji: "🔐"
    homepage: "https://gitlab.com/bea7892046/fhex402"
---

# FHE x402 Payment Skill

Private, encrypted payments for autonomous agents on Ethereum using Zama's Fully Homomorphic Encryption (fhEVM). All payment amounts are encrypted on-chain — only the payer and payee can see them.

## Quick Start

Set a wallet and RPC, then run any command:

```bash
# Minimal setup (local dev)
export USER_PRIVATE_KEY=0x...
export RPC_URL=https://sepolia.infura.io/v3/YOUR_KEY

# Check wallet info
run info

# Wrap 10 USDC into encrypted cUSDC
run wrap --amount 10

# Send 1 encrypted cUSDC
run pay --to 0xRecipient --amount 1

# Check balance (with optional decrypt)
run balance
run balance --decrypt true
```

## Commands

### Token Operations

| Command | Description | Required Args |
|---------|-------------|---------------|
| `wrap` | Wrap USDC into encrypted cUSDC (ERC-7984) | `--amount` |
| `unwrap` | Initiate unwrap of cUSDC back to USDC (step 1 of 2) | `--amount` |
| `finalize-unwrap` | Complete unwrap via KMS decryption proof | `--handle` (recommended) or `--requestId --cleartextAmount --proof` (legacy) |
| `pay` | Send encrypted cUSDC via verifier relay | `--to --amount` |
| `balance` | Check USDC + cUSDC balances | Optional: `--decrypt true`, `--of 0xAddress` |
| `info` | Display wallet, network, and contract addresses | (none) |

### Escrow (Agentic Commerce Protocol — ERC-8183)

| Command | Description | Required Args |
|---------|-------------|---------------|
| `create-job` | Create an escrow job with provider + evaluator | `--provider --evaluator --expiry --description` Optional: `--hook` |
| `fund-job` | Encrypt budget + fund a job (3-step TX) | `--jobId --amount` |
| `complete-job` | Approve or reject a submitted job | `--jobId --action` (approve/reject) Optional: `--reason` |

### Identity & Reputation (ERC-8004)

| Command | Description | Required Args |
|---------|-------------|---------------|
| `register-agent` | Mint an agent identity NFT | `--uri` |
| `give-feedback` | Submit proof-linked reputation feedback | `--agentId --score --nonce` Optional: `--tag1 --tag2 --endpoint --feedbackURI --feedbackHash` |

### Delegation (FHE Viewing Keys)

| Command | Description | Required Args |
|---------|-------------|---------------|
| `grant-view` | Grant read access to your encrypted balance | `--delegate` Optional: `--hours --permanent --contract` |
| `revoke-view` | Revoke a 

_meta.json

{
  "ownerId": "kn72mdn88wv79xvs062ez7f85n84c44m",
  "slug": "confidential-agentic-payment-stack",
  "version": "1.0.0",
  "publishedAt": 1776021709935
}

skill-card.md

## Description:

Enables OpenClaw agents to make FHE-encrypted x402 payments, wrap or unwrap encrypted tokens, manage escrow jobs, register identity, submit feedback, and delegate balance viewing on Ethereum Sepolia or Mainnet with Zama fhEVM.

This skill is ready for commercial/non-commercial use.

## Publisher:

[billynothack](https://clawhub.ai/user/billynothack)

### License/Terms of Use:

MIT-0

## Use Case:

External developers and agent operators use this skill to let agents perform confidential token payments, escrow workflows, identity registration, feedback, and delegated balance viewing on supported Ethereum networks.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can spend funds or change escrow, unwrap, feedback, and delegation state through irreversible on-chain actions.

Mitigation: Use Sepolia or a low-balance wallet first, review destinations and amounts before execution, and prefer supervised Ledger approval for real funds.

Risk: Configurable paid-service URLs can receive prompts, code, or other sensitive data.

Mitigation: Only point DFNS and paid-service URLs at trusted HTTPS origins and avoid passing proprietary code or secrets to review-and-rate.

Risk: Wallet credentials and signing configuration are sensitive operational inputs.

Mitigation: Install only when the publisher is trusted, configure wallet modes tightly, and protect USER_PRIVATE_KEY, DFNS, and Ledger bridge secrets.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/billynothack/skills/confidential-agentic-payment-stack)
- [Project homepage from metadata](https://gitlab.com/bea7892046/fhex402)

## Skill Output:

**Output Type(s):** [text, json, shell commands, configuration, guidance]

**Output Format:** [JSON strings from command scripts, plus Markdown setup guidance and command examples.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Commands report success or failure as JSON and may initiate irreversible on-chain payment, escrow, unwrap, feedback, or delegation actions.]

## Skill Version(s):

1.0.0 (source: release evidence and skill frontmatter)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

skill.json

{
  "name": "fhe-x402-payment",
  "version": "1.0.0",
  "description": "FHE-encrypted x402 payments for OpenClaw agents using Zama canonical wrappers",
  "network": {
    "name": "Configurable (Sepolia default, Mainnet supported)",
    "chainId": "Set via CHAIN env var (default: auto-detect from RPC_URL)"
  },
  "commands": {
    "wrap": {
      "description": "Wrap USDC into encrypted cUSDC (ERC-7984)",
      "script": "scripts/wrap.ts",
      "args": {
        "amount": {
          "type": "string",
          "required": true,
          "description": "Amount of USDC to wrap (e.g. '2' for 2 USDC)"
        }
      }
    },
    "pay": {
      "description": "Send encrypted cUSDC payment to another address via confidentialTransfer",
      "script": "scripts/pay.ts",
      "args": {
        "to": {
          "type": "string",
          "required": true,
          "description": "Recipient Ethereum address"
        },
        "amount": {
          "type": "string",
          "required": true,
          "description": "Amount of USDC to pay (e.g. '1' for 1 USDC)"
        }
      }
    },
    "unwrap": {
      "description": "Request unwrap of cUSDC back to USDC (step 1 of 2, initiates KMS decryption)",
      "script": "scripts/unwrap.ts",
      "args": {
        "amount": {
          "type": "string",
          "required": true,
          "description": "Amount to unwrap (e.g. '1' for 1 USDC)"
        }
      }
    },
    "finalize-unwrap": {
      "description": "Finalize unwrap via publicDecrypt (recommended) or manual proof. Use --handle from the unwrap command output.",
      "script": "scripts/finalize-unwrap.ts",
      "args": {
        "handle": {
          "type": "string",
          "required": false,
          "description": "Encrypted amount handle from the unwrap event (recommended — uses publicDecrypt to get cleartext + proof automatically)"
        },
        "requestId": {
          "type": "string",
          "required": false,
          "description": "Legacy: request ID for manual finalization (requires --cleartextAmount and --proof)"
        },
        "cleartextAmount": {
          "type": "string",
          "required": false,
          "description": "Legacy: decrypted cleartext amount (uint64) for manual finalization"
        },
        "proof": {
          "type": "string",
          "required": false,
          "description": "Legacy: decryption proof bytes for manual finalization"
        }
      }
    },
    "balance": {
      "description": "Check wallet USDC balance and encrypted cUSDC handle. With --decrypt, decrypts your own cUSDC balance via Zama KMS. With --of, reads another agent's balance via delegation.",
      "script": "scripts/balance.ts",
      "args": {
        "decrypt": {
          "type": "string",
          "required": false,
          "description": "Set to 'true' to decrypt your own cUSDC balance (requires @zama-fhe/sdk)"
        },
        "of": {
          "type": "string",
          "required": false,

Sponsored

Ads related to confidential-agentic-payment-stack and adjacent AI workflows.