toip.tools

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/ruling

    The arbiter sends its signed ruling on a disputed payment, with the evidence it relied on and its own outcome signature.

  • settle/checkout/start

    A 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/attest

    The attester named in the terms sends a signed claim that the work is complete or not complete, with an optional note.

  • settle/escrow/dispute

    The payer or the payee sends a signed dispute with a reason.

  • settle/escrow/hold

    On 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/opened

    After the escrow opens on-chain, the payer announces it with the terms, both acceptances, the escrow address and the opening transaction signature.

  • settle/escrow/settled

    After 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/sign

    A 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/receipt

    After settlement, the payee sends the payer a signed receipt credential (SettlePaymentReceipt).

  • settle/payment/request

    The payee sends an invoice to the payer.

  • settle/payment/terms/accept

    The payee returns the agreed terms with its own signed acceptance.

  • settle/payment/terms/propose

    The payer sends the full terms document with its own signed acceptance.

  • settle/processor/log

    Anyone can ask the processor for its transparency log. Request and response.

  • settle/processor/submit

    A 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/ack

    A new member sends the admin a signed acknowledgement credential (TodoListMembershipAcknowledgement) after accepting the welcome.

  • todo/join

    A 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-refused

    The 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/leave

    A member who isn't the admin tells the list's admins they are leaving.

  • todo/op

    A member who adds, edits, checks, unchecks or deletes an item sends the signed operation, with their membership credential, to every other current member.

  • todo/roster

    The admin sends the list's newly signed roster after someone joins or is removed.

  • todo/sync

    A 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-request

    On start and on reconnect, a device asks one other current member (a different one each time) for everything it holds for a list.

  • todo/welcome

    The 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/deny

    The approver tells the delegate it refused a pending request, with an optional reason.

  • mandates/approval/grant

    The approver returns a signed approval for a pending request.

  • mandates/approval/request

    A delegate asks an approver to allow one action its mandate chain doesn't allow by itself.

  • mandates/issue

    A delegator sends its delegate a new mandate, with the chain of mandates above it.

  • mandates/revoked

    A 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/disclose

    A 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/duplicity

    Whoever 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/head

    A watcher or verifier asks a witness for the head of a log: the latest receipt that witness signed. Request and response.

  • trail/query

    A 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/receipts

    A 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/submit

    A 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/enroll

    A 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/control

    The 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/decline

    The worker turns a job down, with a reason in words.

  • agents/job/deliver

    The worker hands over the work: a git commit, or a note for a physical task.

  • agents/job/offer

    A 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/quote

    The worker answers an offer with a signed Settle payment link for the job, under the job's conditions.

  • agents/job/refused

    The worker's check of the hirer's mandate failed, so it won't take the job.

  • agents/job/watch

    The 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/report

    An agent tells its principal something in words, with optional references to jobs, payments or trail entries.

  • agents/task

    A principal or a delegating agent gives an agent work in words.

agora

  • agora/demo/issue

    In 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/leave

    A member asks a registrar to take their leaf out of a group. Request and response.

  • agora/group/receipt

    A 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

tipline

  • tipline/message

    A reply or a follow-up in a tip's conversation, in either direction.

  • tipline/proof/present

    The source answers a proof request with a fresh membership proof bound to the challenge.

  • tipline/proof/request

    The 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/request

    A source who kept nothing comes back with their tip code and asks the drop box to resend the conversation.

  • tipline/tip/chunk

    One piece of one attachment, sent after the submit.

  • tipline/tip/receipt

    The 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/submit

    A 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.