📦

Two published packages

@p2p-trust-stack/core is the protocol engine — crypto, DIDs, the encrypted keystore, TSP, transport, relationships, VTCs/VRCs, the transaction coordination layer and the shared data layer.

@p2p-trust-stack/app-api is the application-facing agent API — createAgentStack() and the typed TrustStack domains. It depends on core; core never depends on it.

🧱

How this reference is organized

Getting Started covers the entry point and lifecycle. The four ToIP layer groups list the API methods for that layer. Events & Errors is cross-cutting, and the Core Reference documents the protocol modules directly.

Methods that require a network host (a running utility server) are marked as such; nothing here documents any single server's internals.

🤖

Using this reference with AI agents

This catalog is machine-readable. It is embedded as window.P2PTS_API_DATA in ../assets/js/api-data.js, and every entry carries method, path, summary, description, params, response and an example — so an AI agent (or any tool) can fetch the file and use it directly.