360 Secure SkillHub
360 安全技能中心

Archon Cashu

核心功能:支持DID锁定代币(仅指定DID可解锁)、普通无锁定转账、余额查询、闪电铸币、钱包备份,可集成Nostr zaps。典型场景:隐私P2P支付、需身份验证的定向转账。通过bash脚本命令执行,输入含金额、接收方DID等参数,输出为Cashu代币或操作结果,需提前配置相关环境。

macterra
macterra
热度 62.08
最近更新 2026-05-18 12:10:24
分类:生活依赖:代码执行 / 读写文件 / 第三方 API应用场景:个人理财 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add archon-cashu
Metadata
name
archon-cashu
description
Cashu ecash operations integrated with Archon DID for P2PK-locked tokens. Send and receive sats using DID-derived pubkeys, backup wallets to vault. Use for Cashu token operations, DID-locked payments, or ecash wallet management.
metadata
{"openclaw":{"requires":{"env":["ARCHON_WALLET_PATH","ARCHON_PASSPHRASE","ARCHON_CASHU_CONFIG"],"bins":["node","npx","cashu"],"anyBins":["curl","jq"]},"primaryEnv":"ARCHON_CASHU_CONFIG","emoji":"🥜"}}

Archon Cashu - DID-Integrated Ecash

Cashu ecash operations using your Archon DID for P2PK-locked tokens. Send sats that only the recipient's DID can unlock.

Prerequisites

  • Archon identity configured (~/.archon.env)
  • Cashu CLI installed (pip install cashu or similar)
  • Config file at ~/.config/archon/cashu.env (or ARCHON_CASHU_CONFIG)

Configuration

./scripts/cashu/config.sh

Sets up Cashu wallet and optional LNBITS integration.

Operations

Check Balance

./scripts/cashu/balance.sh

Send Tokens (Unlocked)

./scripts/cashu/send-unlocked.sh <amount>

Returns a Cashu token anyone can redeem.

Send Tokens (DID-Locked)

./scripts/cashu/send.sh <amount> <recipient-did>

Locks tokens to recipient's DID-derived pubkey (P2PK). Only they can unlock.

Receive Tokens

./scripts/cashu/receive.sh <token>

Mint Tokens (Lightning)

./scripts/cashu/mint.sh <amount>

Creates Lightning invoice to mint new tokens.

Lock/Unlock Tokens

./scripts/cashu/lock.sh <amount> <did>

Backup Wallet to Vault

./scripts/cashu/backup.sh [vault-did]

npub.cash Setup

./scripts/cashu/npub-cash-setup.sh

Configure npub.cash integration for Nostr zaps.

Security Notes

  1. Wallet location: ~/.cashu by default (configurable via CASHU_WALLET_DIR)

  2. P2PK locking: DID-locked tokens use your DID's secp256k1 key for cryptographic locking

  3. LNBITS integration: Optional — for auto-paying invoices during mint operations