AGENT SKILL

cheshire-zk-omni

Zero-knowledge omnichain messaging (msgType 4) between Robinhood Chain and Solana via CheshireZkOmniMessenger — LayerZero V2 peers, nullifier anti-replay, optional identity authorization. Use for sendZkOmni, quoteSend, nullifiers, zk-omni relayer. Source: contracts/zk-omni/CheshireZkOmniMessenger.sol.

License 许可
MIT
最近更新
2026-10-08
Stars
★ 0
Forks
0

01 前言 Front Matter

name
cheshire-zk-omni
description
Zero-knowledge omnichain messaging (msgType 4) between Robinhood Chain and Solana via CheshireZkOmniMessenger — LayerZero V2 peers, nullifier anti-replay, optional identity authorization. Use for sendZkOmni, quoteSend, nullifiers, zk-omni relayer. Source: contracts/zk-omni/CheshireZkOmniMessenger.sol.

03 SKILL.md 正文

CheshireZkOmniMessenger (zk-omni)

Cross-chain messenger for Robinhood Chain ↔ Solana with domain-separated nullifiers (anti-replay). LayerZero authenticates peers; this contract enforces peer allowlist, nullifier uniqueness, expiry, and optional agent identity auth on send.

Source

cheshire-terminal/robinhood-agents/contracts/zk-omni/
  CheshireZkOmniMessenger.sol
  ILayerZeroEndpointV2.sol
  MockLzEndpoint.sol   # local tests only

Also mirrored by skill zk-omni-messaging (CLI / relayer). Prefer that skill for relayer ops; this skill is the contract surface.

Constants

Name Value
MSG_ZK_OMNI 4
SOLANA_EID 30168
ROBINHOOD_EID 30416
Max action / memo 64 / 200 chars

Payload (abi.encode)

uint16  msgType            // = 4
bytes32 agentId
bytes32 controller
bytes32 nullifier          // unique; consumedNullifier[nullifier]
bytes32 payloadCommitment
bytes32 modelHash
uint64  expiresAt
string  action
string  memo

Key functions

Function Role
constructor(endpoint, owner, identityRegistry) endpoint must have code; optional identity
setPeer(eid, peer) owner — LZ peer bytes32
setIdentityRegistry(registry) owner — optional isAuthorized gate
quoteSend(...) fee quote
sendZkOmni(...) payable send; may require identity auth
lzReceive(...) LZ callback — peer + nullifier + expiry checks

Events: PeerSet, IdentityRegistrySet, ZkOmniSent, ZkOmniReceived.

Errors (agent-facing)

UnauthorizedPeer, UnauthorizedAgent, InvalidNullifier, NullifierReplay, IntentExpired, InvalidMessageType, IntentTextTooLong, FeeTooLow, …

Operator notes

  1. Deploy once with a live LayerZero Endpoint V2; never use MockLzEndpoint on mainnet.
  2. Set peers for Solana EID 30168 and RH EID 30416 before production sends.
  3. If identityRegistry is set, senders must be authorized for agentId.
  4. Always derive a fresh nullifier per intent; never reuse.
  5. Product / UX hosts: FunPump https://funpump.ai · Cheshire forge https://cheshireterminal.ai.

CLI / relayer (package)

npx robinhood-agents zk-omni-plan --action attest --memo "demo"
npx robinhood-agents zk-omni-nullifier --context "zk-omni:attest:v1"
npx robinhood-agents zk-omni-oneshot --action publish_attestation --memo "one-shot"

Related

  • Suite overview: cheshire-agent-registries
  • Identity auth gate: cheshire-agent-identity-registry
  • Full messaging skill: zk-omni-messaging

04 同仓库更多 Skills

Solizardking
Solizardking/skillhub-main

zkrouter

Self-hosted OpenAI-compatible LLM router — smart tier-based routing, ZK-stamped routing decisions, mode overrides, free OpenRouter at install via the Birth bot. Save 60-80% on inference costs by routing to the cheapest capable model across 12+ OpenRouter models.

★ 0
Solizardking
Solizardking/skillhub-main

zk

For custom ZK Solana programs and privacy-preserving applications to prevent double spending. Guide to integrate rent-free nullifier PDAs for double-spend prevention.

★ 0
Solizardking
Solizardking/skillhub-main

zk-omni-messaging

Zero-knowledge omnichain messaging between Robinhood Chain and Solana using CheshireZkOmniMessenger (msgType 4) with nullifier anti-replay and the zk-omni-relayer service.

★ 0
Solizardking
Solizardking/skillhub-main

zerion-wallet-data

Use when the user asks to check a wallet's portfolio, token balances, DeFi positions, PnL, transaction history, or NFTs. Provides interpreted on-chain data across 40+ EVM chains and Solana via x402 pay-per-request or API key — no raw RPC decoding needed.

★ 0
Solizardking
Solizardking/skillhub-main

youtube-clipper

YouTube 视频智能剪辑工具。下载视频和字幕,AI 分析生成精细章节(几分钟级别), 用户选择片段后自动剪辑、翻译字幕为中英双语、烧录字幕到视频,并生成总结文案。 使用场景:当用户需要剪辑 YouTube 视频、生成短视频片段、制作双语字幕版本时。 关键词:视频剪辑、YouTube、字幕翻译、双语字幕、视频下载、clip video

★ 0
Solizardking
Solizardking/skillhub-main

yield-optimization

Multi-chain yield optimization via yield.xyz (StakeKit). Discover 2,988+ yield opportunities across 75+ blockchains, build deposit/withdrawal transactions with shell scripts, and sign them with a MoonPay wallet. Use when the user wants to earn yield, find the best lending or staking rate, enter/exit a position, or check portfolio balances.

★ 0