Class BundleExporter

Constructors

Methods

  • Export a verification bundle containing all events, anchors, and public key. The bundle is signed for tamper evidence.

    Parameters

    • Optional fromSequence: number

      Optional start sequence (inclusive). Defaults to 1.

    • Optional toSequence: number

      Optional end sequence (inclusive). Defaults to latest.

    Returns Promise<VerificationBundle>

    A self-contained verification bundle.

  • Export a bundle as a JSONL string (one JSON object per line). Format: Line 1: Bundle metadata (version, agentId, publicKey, exportedAt, bundleHash, bundleSignature) Lines 2-N: One event per line Lines N+1-M: One anchor per line (prefixed with type: 'anchor')

    Parameters

    • Optional fromSequence: number
    • Optional toSequence: number

    Returns Promise<string>