# Frequently asked questions

Short answers about Trust over IP, TSP, the libraries, and how this project relates to the Trust over IP Foundation.

## What is Trust over IP?

Trust over IP (ToIP) is an architecture for digital trust from the [Trust over IP Foundation](https://trustoverip.org/). It pairs technology (verifiable identifiers and their keys, the Trust Spanning Protocol for messages between them, and tasks such as issuing and checking credentials) with governance: the rules an ecosystem sets for who is trusted for what. The [ToIP model](https://trustoverip.org/toip-model/) separates that shared architecture from the independently run ecosystems that use it. The [Concepts](https://toip.tools/concepts/) page explains each layer.

## What is the Trust Spanning Protocol (TSP)?

TSP is a ToIP [specification](https://trustoverip.github.io/tswg-tsp-specification/) for messages between verifiable identifiers (VIDs). Each message is signed by its sender and encrypted for its recipient with HPKE, whatever transport carries it. In Direct mode, which these libraries use, the sender and recipient identifiers travel in clear; the specification's Routed and Nested modes add metadata protection through intermediaries. The libraries use the OpenVTC TypeScript implementation, `@openvtc/vti-tsp-js`. See [Send an end-to-end encrypted message with TSP](https://toip.tools/guides/tsp-encrypted-message/).

## What is a Trust Task?

A Trust Task is a signed JSON document describing one interaction, such as a request for a quote, a membership credential presentation or an approval. Every one uses the same envelope: an `id`, a specification URI as its `type`, an `issuer`, a `recipient`, a timestamp, a payload and a proof. A response uses the same type with `#response` appended. The framework comes from the [ToIP Trust Tasks task force](https://github.com/trustoverip/dtgwg-trust-tasks-tf); the types defined in this repository use the `https://toip.tools/spec/` namespace and are listed in the [Trust Task reference](https://toip.tools/spec/).

## Is toip.tools part of the Trust over IP Foundation?

No. toip.tools and the `@toip-tools` libraries are an independent project, unaffiliated with the Trust over IP Foundation. They implement published specifications (ToIP's TSP, KERI and Trust Tasks, W3C DIDs, Verifiable Credentials and Data Integrity, and IETF COSE and CBOR) and build on the OpenVTC TypeScript libraries. The project began at the [Internet Identity Workshop](https://internetidentityworkshop.com/) in November 2026. To work on the specifications themselves, see [Contribute](https://toip.tools/get-involved/).

## How do I install the libraries?

Every library is a separate package on npm under `@toip-tools`, at version 0.1.0. Start with trust-core, which the others build on: `npm install @toip-tools/trust-core`. Add the others as you need them, for example `@toip-tools/relay`, `@toip-tools/mandates` or `@toip-tools/eventlog`. The packages are ES modules with TypeScript declarations. The [Quickstart](https://toip.tools/quickstart/) installs two of them in a new project and runs four examples.

## Which Node.js version do I need?

Node 22.13 or later. The relay stores its queue with `node:sqlite`, which needs it; the guides, the quickstart and this site's checks run on Node 22.

## Do the libraries work in the browser?

Most do, through a bundler. Each library's runtime:

- `@toip-tools/trust-core`: Browsers and Node 22.
- `@toip-tools/relay`: Node 22.13 or later (it uses `node:sqlite`). Clients use `RelayTransport` from trust-core, in browsers or Node.
- `@toip-tools/cose`: Browsers and Node. The main entry has no Node-only imports.
- `@toip-tools/web-vault`: Browsers. Tests run in Node with stand-ins for storage and the authenticator.
- `@toip-tools/mandates`: Browsers and Node.
- `@toip-tools/anon-membership`: Node and browsers, proving in a Web Worker. Proving takes about 0.15 s on an Apple M1 Max; phones aren't measured.
- `@toip-tools/eventlog`: Browsers and Node. A file store and an HTTP witness are in the Node entry.
- `@toip-tools/mesh-transport`: Browsers and Node. The `/gwmp`, `/detect` and `/node` entry points are Node only.

## Which DID methods are supported?

trust-core creates and resolves Ed25519 `did:key` identifiers, offline, with no registry. `@toip-tools/eventlog` creates KERI identifiers, written `did:keri:<AID>`, and resolves them from their key event logs. There is no resolver for other DID methods.

## Do I need a server, an account or a blockchain?

No. A `did:key` identity is 32 random bytes made on the device, and verifying a signature needs only the DID. To deliver messages to someone who is offline, run the relay (`npx @toip-tools/relay`); for tests and demos, the in-memory `Bus` needs nothing. One example application, Settle, uses a Solana escrow, but the libraries don't.

## Are the libraries ready for production?

They are at version 0.1.0: expect changes between releases, and pin versions. Each library's page lists what it doesn't do. The zero-knowledge library, `@toip-tools/anon-membership`, is experimental cryptography: its proof system's zero-knowledge mode is designed to be zero-knowledge, and Noir says it is not yet for production use. Report problems in the [issue tracker](https://github.com/yourbuddyconner/toip-tools/issues).

## What license are the libraries under?

The Apache License 2.0 (`Apache-2.0`), as stated in each package's `package.json` and the repository's [LICENSE](https://github.com/yourbuddyconner/toip-tools/blob/main/LICENSE) file.

## How do I use these docs with an AI coding assistant?

Point it at [llms.txt](https://toip.tools/llms.txt) for an index, or [llms-full.txt](https://toip.tools/llms-full.txt) for all the documentation in one Markdown file. Every page also has a Markdown version at `index.md` under its address, and the [machine-readable indexes](https://toip.tools/api/) list every package, export, Trust Task type and example as JSON.

## How do I report a security problem?

Use GitHub's [security page for the repository](https://github.com/yourbuddyconner/toip-tools/security), or open an [issue](https://github.com/yourbuddyconner/toip-tools/issues) if the problem is not sensitive. The same contacts are in [/.well-known/security.txt](https://toip.tools/.well-known/security.txt).

---

This is the Markdown version of https://toip.tools/faq/. An index of the documentation for AI assistants is at https://toip.tools/llms.txt.
