Documentation
Primitives - Building Blocks
Messages

Messages

Overview

Messages on Orbis allow you to submit content to Conversations.

Messages are text-based.
All messages are automatically encrypted and can only be read by Conversation participants.

Use case

Examples match those of a Conversation, as these primitives are tied together.

These include:

  • private messaging on Marketplaces
  • message inboxes on social apps
  • end-to-end encrypted messaging apps
  • chatbots, including an encrypted version of ChatGPT

Properties

Schema

The stream ID of Message schema is kjzl6cwe1jw14bcux0xa3ba15686iwkw78y4xda0djl58ufyq219e116ihujfh8.

You can check the latest version using Cerscan (opens in a new tab).

Format

{
    "conversation_id": "string", // required
    "master": "string",
    "reply_to": "string",
    "encryptedMessage": {
        "encryptedString": "string",
        "encryptedSymmetricKey": "string",
        "accessControlConditions": "string"
    },
    "encryptedMessageSolana": {
        "encryptedString": "string",
        "encryptedSymmetricKey": "string",
        "solRpcConditions": "string"
    }
}

Parameter explanation:

  • conversation_id - (stream) ID of the conversation this message belongs to
  • master - (stream) ID of the message this one is a direct comment to
  • reply_to - (stream) ID of a message comment this message is a reply to
  • encryptedMessage - Lit Encrypted data used to request decryption keys and decrypt content
  • encryptedMessageSolana - Lit Encrypted data used to request decryption keys and decrypt content

SDK methods

Related concepts