Base protocol frame

interface HistoryMessage {
    payload: {
        before?: number;
        limit?: number;
        peerKey: string;
        proof: string;
    };
    requestId?: string;
    timestamp: number;
    type: "history";
}

Hierarchy (view full)

Properties

payload: {
    before?: number;
    limit?: number;
    peerKey: string;
    proof: string;
}

Type declaration

  • Optionalbefore?: number

    Pagination: messages before this timestamp

  • Optionallimit?: number

    Max messages to return

  • peerKey: string

    Peer public key to get conversation with

  • proof: string

    Proof: sign("history:{peerKey}:{timestamp}")

requestId?: string

Request correlation ID for request/response flows

timestamp: number
type