toip.tools

settle/escrow/attest

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

The attester named in the terms sends a signed claim that the work is complete or not complete, with an optional note. The payer, the payee and the arbiter verify it and record it as input to their release policies.

Sent
attester payer's party, payee's party and arbiter
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:11 as ESCROW_ATTEST
Handled in
projects/settle/src/agents/party.ts, projects/settle/src/agents/roles.ts
Design
7. The Trust Tasks in projects/settle/docs/design.md

Payload

TypeScriptprojects/settle/src/protocol/documents.ts:113
export interface Attestation {
  type: "settle/attestation";
  issuer: string;
  termsHash: string;
  claim: "complete" | "not-complete";
  note?: string;
  at: string;
  proof?: unknown;
}

Notes

The attester can be the payer, with the link option payer-confirms. The design mentions photos sealed to the parties; the code carries only an optional note.

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/attest/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…"
  }
}