Class ConversationVerifier

Constructors

Methods

  • Verify a single post/message within a conversation. Checks that the message event exists and its chain position is valid.

    Parameters

    • messageId: string

      The message ID to verify.

    • Optional publicKeyBase64: string

      Optional public key for signature verification.

    Returns Promise<VerificationResult & {
        messageId: string;
        found: boolean;
    }>

  • Get a summary of provenance status for a conversation. Lighter than full verification - just counts and metadata.

    Parameters

    • conversationId: string

    Returns Promise<{
        conversationId: string;
        totalEvents: number;
        messageEvents: number;
        revisionEvents: number;
        tombstoneEvents: number;
        humanInterventions: number;
        hasGenesis: boolean;
        chainLength: number;
        lastEventTimestamp: null | string;
    }>