Encode and decode Cashu tokens that are hidden inside emojis using Unicode variation selectors.
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.
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.
CODEBLOCK0
cashuA.../cashuB... tokenCODEBLOCK1
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.
🥜) and a token stringCODEBLOCK2
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.
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... token is a bearer asset. Treat it like cash.src/emoji-encoder.ts: core encode/decodeThis tool only encodes/decodes text. It does not spend funds.
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 cashu-emoji-1776419963 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 cashu-emoji-1776419963 技能
skillhub install cashu-emoji-1776419963
文件大小: 9.04 KB | 发布时间: 2026-4-17 20:09