metabot-chat-privatechat

Encrypt and broadcast private on-chain messages to a GlobalMetaID using ECDH.

10|2|Updated Feb 23, 2026
One-click install
npx skills add https://github.com/metaid-developers/IDBots --skill metabot-chat-privatechat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: metabot-chat-privatechat
Source: https://github.com/metaid-developers/IDBots/tree/main/SKILLs/metabot-chat-privatechat
Command: npx skills add https://github.com/metaid-developers/IDBots --skill metabot-chat-privatechat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires crypto-js, @metalet/utxo-wallet-service, meta-contract, and includes scripts (resource) components.

What problem does it solve?

This Skill enables private on-chain messaging by retrieving a recipient's chat public key, deriving an ECDH secret, encrypting the content, and broadcasting the message on-chain for secure, auditable delivery.

Core Features & Use Cases

  • On-chain private messaging: automatically resolve the recipient's chatpubkey, derive a shared secret, and publish the encrypted payload to the chain.
  • End-to-end confidentiality: content is encrypted with a SHA-256 derived key from ECDH, protecting message content from on-device exposure.
  • Use Case: Send a confidential message to a GlobalMetaID for private coordination between MetaBots with an auditable record on-chain.

Quick Start

Use the skill to send a private message to a GlobalMetaID by providing the recipient and the plaintext content.

Frequently Asked Questions about metabot-chat-privatechat

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send an encrypted private message on-chain to a GlobalMetaID?

To send an encrypted private message on-chain, you provide the recipient's GlobalMetaID and plaintext content. The system resolves their chat public key, derives an ECDH shared secret, encrypts the payload, and broadcasts it to the chain for auditable delivery.

What is ECDH key derivation and how does it secure on-chain private chats?

ECDH key derivation secures on-chain private chats by combining the sender's private key with the recipient's chat public key to create a shared secret. This secret generates a SHA-256 encryption key, ensuring end-to-end confidentiality and protecting message content from exposure.

Do I need a mnemonic and RPC endpoint to broadcast encrypted on-chain payloads?

Yes, broadcasting encrypted on-chain payloads requires a valid mnemonic to derive the sender's private key and a configured RPC endpoint to publish the encrypted payload. The recipient's on-chain chat public key is also required to complete the ECDH shared secret derivation.

Can I use this Skill for group private messaging with on-chain verification?

Yes, this Skill supports private chats to individuals or groups with on-chain verification. It encrypts communications between MetaBots using ECDH-derived keys, ensuring confidential coordination while maintaining an auditable record of the encrypted payload on the chain.

What's the best way to verify an on-chain private message was delivered to a recipient?

Verifying an on-chain private message involves checking the auditable record published to the chain. The Skill broadcasts the encrypted payload to the chain after deriving the shared secret from the recipient's chat public key, creating a verifiable on-chain record of the confidential delivery.