返回顶部
c

cashu-emojiCashu表情编码

Encode and decode Cashu tokens that are hidden inside emojis using Unicode variation selectors.

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

cashu-emoji

Cashu Emoji Tokens (Variation Selector encoding)

This skill helps agents decode Cashu tokens received as emoji (and encode tokens for sending), and it also supports general hidden messages inside emojis.

If the decoded text starts with cashu, it’s likely a Cashu token. Otherwise treat it as a plain hidden message.

Why this exists

Some services embed a cashu... token into an emoji using Unicode variation selectors (VS1..VS256). Chat apps often display only the emoji, but preserve the hidden selector characters.

Important: many messengers can truncate or normalize Unicode. If the variation selectors are lost, the embedded token cannot be recovered.

Quickstart (copy/paste)

CODEBLOCK0

What you can do

1) Decode

  • - Input: entire message text (may include other text/emojis)
  • Output: the embedded UTF‑8 text, usually a cashuA.../cashuB... token

CODEBLOCK1

Decode semantics (important): the decoder ignores normal characters until it finds the first variation-selector byte, then collects bytes until the first normal character after that payload begins.

2) Encode

  • - Input: a carrier emoji (recommend 🥜) and a token string
  • Output: an emoji string that visually looks like the emoji but contains the hidden token

CODEBLOCK2

Tip: some messengers are less likely to deliver a truncated/corrupted emoji-token if any normal text follows it (even a single character). It’s not required, just a delivery reliability trick.

Tip (Telegram): sending the emoji-token inside a code block / “monospace” formatting can help preserve the hidden characters and makes it easier to tap-to-copy.

Optional metadata

To sanity-check the decoded token without redeeming it, you can request metadata.

For programmatic/agent use, prefer JSON output:

CODEBLOCK3

Example JSON response (Cashu token):

CODEBLOCK4

Example JSON response (plain hidden message):

CODEBLOCK5

CODEBLOCK6

This prints mint/unit/amount using @cashu/cashu-ts getTokenMetadata() (no mint calls).

Cashu gotchas for new agents

  • - A decoded cashu... token is a bearer asset. Treat it like cash.
  • INLINECODE8 is a local parse. It can’t prove the token is unspent/valid.
  • If decode returns a partial token or nonsense, the messenger likely munged the variation selectors; ask for the token to be re-sent (often with some trailing normal text after the emoji token).

Files

  • - src/emoji-encoder.ts: core encode/decode
  • INLINECODE10: CLI wrapper
  • INLINECODE11: test vectors

Safety

This tool only encodes/decodes text. It does not spend funds.

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 cashu-emoji-1776419963 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 cashu-emoji-1776419963 技能

通过命令行安装

skillhub install cashu-emoji-1776419963

下载

⬇ 下载 cashu-emoji v0.1.0(免费)

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

v0.1.0 最新 2026-4-17 20:09
Initial release of cashu-emoji.

- Encode Cashu tokens or any hidden message inside emojis using Unicode variation selectors.
- Decode emoji messages to extract embedded Cashu tokens or plain hidden text.
- Detect Cashu tokens (text starts with `cashu`) and provide optional mint/unit/amount metadata.
- Supports structured JSON output for agent/programmatic use.
- CLI includes encode and decode commands with metadata and formatting options.
- Designed to help safely transmit hidden tokens/messages through chat apps.

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

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

p2p_official_large
返回顶部