Base protocol frame

interface SendMessage {
    payload: {
        encrypted: SerializedEncryptedMessage;
        messageHash: string;
        to: string;
    };
    requestId?: string;
    timestamp: number;
    type: "send";
}

Hierarchy (view full)

Properties

payload: {
    encrypted: SerializedEncryptedMessage;
    messageHash: string;
    to: string;
}

Type declaration

  • encrypted: SerializedEncryptedMessage

    E2E encrypted message envelope (serialized)

  • messageHash: string

    Original message hash for dedup

  • to: string

    Recipient's public key (hex)

requestId?: string

Request correlation ID for request/response flows

timestamp: number
type