toip.tools

settle/escrow/dispute

https://toip.tools/spec/settle/escrow/dispute/0.1

The payer or the payee sends a signed dispute with a reason. The arbiter records it and signs a hold, so the payer can't reclaim before a ruling. The other party records it, and the processor logs it by role and hash.

Sent
payer's or payee's party arbiter, the other party and processor
Kind
One-way. No response is expected; any answer is a separate message.
Envelope
Signed by the issuer, addressed to one recipient, timestamped, and encrypted in a TSP Direct message. The signature and recipient binding prevent its use as a bearer token.
Defined in
projects/settle/src/protocol/specs.ts:13 as ESCROW_DISPUTE
Handled in
projects/settle/src/agents/roles.ts, projects/settle/src/agents/party.ts
Design
7. The Trust Tasks in projects/settle/docs/design.md

Payload

TypeScriptprojects/settle/src/protocol/documents.ts:127
export interface Dispute {
  type: "settle/dispute";
  issuer: string;
  termsHash: string;
  reason: string;
  at: string;
  proof?: unknown;
}

Notes

The design lists the arbiter and the other party. The code also sends it to the processor.

Document envelope

Every Trust Task uses this envelope. Replace payload with the structure shown above.

JSONShape of a document of this type
{
  "id": "urn:uuid:…",
  "type": "https://toip.tools/spec/settle/escrow/dispute/0.1",
  "issuer": "did:key:… (the sender)",
  "recipient": "did:key:… (the receiver)",
  "issuedAt": "2026-11-06T18:00:00.000Z",
  "payload": { … },
  "proof": {
    "type": "DataIntegrityProof",
    "cryptosuite": "eddsa-jcs-2022",
    "verificationMethod": "did:key:…#…",
    "proofPurpose": "assertionMethod",
    "proofValue": "z…"
  }
}