Trust Task reference
Explore 55 message types used by the toolkit and its apps. Each page explains the interaction, identifies the sender and recipient, and shows the payload declared in the code.
A Trust Task's type is the URI of its specification. Types defined here use https://toip.tools/spec/<name>/0.1, so the URI also leads to its reference page. These are project-specific definitions, separate from the public Trust Tasks registry.
Types are declared with ourSpec("<name>") from @toip-tools/trust-core. These pages are generated from the source and accompanying notes at build time.
Settle: conditional payments
Invoices, terms, escrow, attestations, disputes, rulings and receipts between a payer, a payee, an attester, an arbiter and a processor. Used by Settle.
settle/arbiter/rulingThe arbiter sends its signed ruling on a disputed payment, with the evidence it relied on and its own outcome signature.
settle/checkout/startA payer who opens a payment link sends the link back to its issuer and asks for an invoice under the link's conditions.
settle/escrow/attestThe attester named in the terms sends a signed claim that the work is complete or not complete, with an optional note.
settle/escrow/disputeThe payer or the payee sends a signed dispute with a reason.
settle/escrow/holdOn a dispute, the arbiter signs a hold that pushes back the escrow's reclaim deadline, so the payer can't wait out the deadline before a ruling.
settle/escrow/openedAfter the escrow opens on-chain, the payer announces it with the terms, both acceptances, the escrow address and the opening transaction signature.
settle/escrow/settledAfter it submits the resolve transaction, the processor tells everyone the escrow settled, with the transaction signature, the payee's share and the evidence hash.
settle/escrow/signA party sends its signature over an escrow outcome (how much of the price goes to the payee), with the evidence the outcome rests on.
settle/payment/receiptAfter settlement, the payee sends the payer a signed receipt credential (SettlePaymentReceipt).
settle/payment/requestThe payee sends an invoice to the payer.
settle/payment/terms/acceptThe payee returns the agreed terms with its own signed acceptance.
settle/payment/terms/proposeThe payer sends the full terms document with its own signed acceptance.
settle/processor/logAnyone can ask the processor for its transparency log. Request and response.
settle/processor/submitA party sends the processor a partly signed transaction: an escrow open, reclaim or claim. Request and response.
Shared To-Do: a list without a server
Joining, membership, signed operations, rosters and catching up. Used by Shared To-Do.
todo/ackA new member sends the admin a signed acknowledgement credential (TodoListMembershipAcknowledgement) after accepting the welcome.
todo/joinA device holding an invitation asks the inviting admin to join the list, with the invitation code, the list's DID and a display name.
todo/join-refusedThe admin tells a joiner why it won't admit them: the invitation is unknown, used or expired, the joiner is already a member, or this device doesn't run the list.
todo/leaveA member who isn't the admin tells the list's admins they are leaving.
todo/opA member who adds, edits, checks, unchecks or deletes an item sends the signed operation, with their membership credential, to every other current member.
todo/rosterThe admin sends the list's newly signed roster after someone joins or is removed.
todo/syncA device sends one page of a list's history: the current signed roster, up to 100 operations, and the membership credentials those operations need.
todo/sync-requestOn start and on reconnect, a device asks one other current member (a different one each time) for everything it holds for a list.
todo/welcomeThe admin admits a joiner.
Mandates: delegation and approval
Issuing and revoking mandates, and asking a principal to approve one action. From @toip-tools/mandates.
mandates/approval/denyThe approver tells the delegate it refused a pending request, with an optional reason.
mandates/approval/grantThe approver returns a signed approval for a pending request.
mandates/approval/requestA delegate asks an approver to allow one action its mandate chain doesn't allow by itself.
mandates/issueA delegator sends its delegate a new mandate, with the chain of mandates above it.
mandates/revokedA delegator tells its delegate that a mandate was revoked, with the mandate's id and the delegator's newly signed status list.
Trail: witnesses and disclosure
Submitting events to witnesses, querying logs, disclosing bundles and reporting duplicity. From @toip-tools/eventlog.
trail/discloseA log's controller sends a reader a bundle: the KEL, the chosen trails with the bodies picked for this reader, and the DID bindings. Request and response.
trail/duplicityWhoever catches duplicity sends the evidence to someone who relies on the log: two conflicting signed versions at the same position, from the controller or from a witness. Request and response.
trail/headA watcher or verifier asks a witness for the head of a log: the latest receipt that witness signed. Request and response.
trail/queryA watcher or verifier asks a witness for a log's messages and receipts, optionally for a range of sequence numbers. Request and response.
trail/witness/receiptsA log's controller passes each witness the receipts the other witnesses signed, so every witness ends up holding every receipt. Request and response.
trail/witness/submitA log's controller sends a witness KEL events or trail messages to witness. Request and response.
Anonymous membership: enrollment
A member enrolls a commitment with a group's issuer. From @toip-tools/anon-membership.
anon-membership/enrollA member's wallet, from the member's own DID, sends a group's issuer a commitment to its secret for that group, optionally with a credential. Request and response.
agents
agents/controlThe principal controls an agent: pause, resume or stop it, ask it to disclose its audit trail, or revoke a mandate the agent issued to a sub-agent.
agents/job/declineThe worker turns a job down, with a reason in words.
agents/job/deliverThe worker hands over the work: a git commit, or a note for a physical task.
agents/job/offerA hiring agent offers a job: what to do, the category, the most it will pay, how the payment is released (by an attester such as CI, or by the hirer), the dispute window, the deadline, and the hirer's passport.
agents/job/quoteThe worker answers an offer with a signed Settle payment link for the job, under the job's conditions.
agents/job/refusedThe worker's check of the hirer's mandate failed, so it won't take the job.
agents/job/watchThe hirer tells the attester what to check before it attests the work complete: for a code job, the repository and the test command to run.
agents/reportAn agent tells its principal something in words, with optional references to jobs, payments or trail entries.
agents/taskA principal or a delegating agent gives an agent work in words.
agora
agora/demo/issueIn the demo only, a member asks a demo issuer (a nursing board, a city) for the credential that later gates their forums, such as a registered-nurse license with its claims. Request and response.
agora/group/leaveA member asks a registrar to take their leaf out of a group. Request and response.
agora/group/receiptA member asks a registrar for a signed receipt that they are in a group, to restore their membership on a new device from a backup code. Request and response.
mesh-demo
mesh-demo/door/openA guest asks a door to open, with no internet. Request and response.
tipline
tipline/messageA reply or a follow-up in a tip's conversation, in either direction.
tipline/proof/presentThe source answers a proof request with a fresh membership proof bound to the challenge.
tipline/proof/requestThe drop box asks a source for a fresh membership proof, for example against a newer group root, with a challenge to bind it to.
tipline/thread/requestA source who kept nothing comes back with their tip code and asks the drop box to resend the conversation.
tipline/tip/chunkOne piece of one attachment, sent after the submit.
tipline/tip/receiptThe drop box tells the source whether the tip was verified or rejected, and why, and asks again for any chunks that didn't arrive.
tipline/tip/submitA source sends a tip from a fresh DID made from their tip code: the story it's for, the text, a list of attachments, and a zero-knowledge proof that they belong to the organization's group.