Programmable Messages

Programmable Messages in Chatiwal

To provide users with fine-grained control over the sharing, access, and lifecycle of their communications, Chatiwal implements Programmable Messages — a message format embedded with dynamic, policy-based logic.

At the core of this capability is the Super Message framework, a composable and extensible system in which each message instance encapsulates its own behavior rules. These rules are enforced on-chain, ensuring deterministic, tamper-proof execution and compliance with sender-defined policies.

Unlike traditional static messages, Super Messages function as autonomous entities. They can enforce policies such as time-locks, read limitations, pay-per-access, compound rules, or any custom logic defined at creation time. This makes every message an active agent in governing its own visibility, reach, and usage.

Programmable Messages offer:

  • Policy enforcement at the message level, not at the system level

  • Context-aware access control, including role, time, and payment conditions

  • Improved privacy and security, via verifiable, decentralized logic

  • Support for complex interaction patterns, such as ephemeral messaging, paid content, or token-gated access

This framework allows Chatiwal conversations to move beyond static content delivery into the domain of self-regulating, programmable communication.

Policy Type
Description
Example

Time Lock

Limits message reading time

Self-destructs after 24 hours

Limited Read

Restricts number of times a message can be read

One-time sensitive information

Fee Based

Requires payment (in SUI or other tokens) to access content

Fees go directly to message treasury

Compound

Combines multiple policies for complex access rules

Multiple policies working together

Policy Enforcement: Policies are defined in Super Message objects on Sui and automatically enforced by smart contracts when reading messages.

Last updated