# Guides

Short how-tos, each answering one question with one complete program you can run.

Every guide installs the published packages from npm and runs with Node 22.13 or later. The programs are checked on every build of this site, and the output shown is recorded from a real run. New to the libraries? Start with the [Quickstart](https://toip.tools/quickstart/).

- [Create a did:key and sign a JSON document in TypeScript](https://toip.tools/guides/did-key-sign-document/): Generate an Ed25519 did:key, sign a JSON document with a Data Integrity proof, and verify it from the DID alone.
- [Issue and verify a W3C verifiable credential in TypeScript](https://toip.tools/guides/issue-verify-credential/): Issue a credential in the W3C VC 2.0 shape with a Data Integrity proof, then check its proof, issuer, subject and validity window.
- [Revoke a verifiable credential with a status list](https://toip.tools/guides/revoke-credential-status-list/): Give each credential a bit in a signed status list, revoke by setting the bit and re-signing, and check status as a verifier.
- [Send an end-to-end encrypted message with TSP (the Trust Spanning Protocol)](https://toip.tools/guides/tsp-encrypted-message/): Send a signed, end-to-end encrypted Trust Task with TSP Direct mode between two did:key identities, and see what the network sees.
- [Run a TSP relay: a mailbox for encrypted messages](https://toip.tools/guides/run-tsp-relay/): Run a WebSocket mailbox that stores sealed TSP messages in SQLite until the recipient connects, survives restarts, and sees only metadata.
- [Delegate bounded authority to an AI agent with mandates](https://toip.tools/guides/delegate-to-ai-agent/): Give an AI agent a signed mandate with allowed actions, spending limits, one-time approvals and revocation, and decide each action against it.
- [Keep a tamper-evident audit log with KERI key event logs](https://toip.tools/guides/tamper-evident-audit-log/): Write an append-only, witnessed audit log under a KERI identifier, rotate keys with pre-rotation, and detect an edited entry offline.
- [Sign and verify COSE messages in TypeScript](https://toip.tools/guides/sign-cose/): Sign COSE\_Sign1 messages over deterministic CBOR with Ed25519 or a non-extractable WebCrypto P-256 key, and verify them against trusted keys.
- [Send Trust Tasks over LoRa radio](https://toip.tools/guides/trust-tasks-over-lora/): Send a signed, encrypted Trust Task over LoRa with no internet: compacted, fragmented into radio frames, acknowledged and reassembled.
- [Prove group membership with zero knowledge (Noir)](https://toip.tools/guides/zero-knowledge-membership/): Prove membership in a group without saying which member, with a Noir circuit and UltraHonk proofs, and count one voice per member with nullifiers.

Looking for a whole application? See the [examples](https://toip.tools/examples/). Looking up one function? Search the [SDK reference](https://toip.tools/toolkit/).

---

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