toip.tools

tipline/tip/submit

https://toip.tools/spec/tipline/tip/submit/0.1

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. The proof is bound to this drop box, story and tip, and its nullifier lets the inbox recognize the same source again without knowing who they are.

Sent
source's tip DID drop box (the journalist's inbox)
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/tipline/src/protocol/messages.ts:11 as SUBMIT
Handled in
projects/tipline/src/agents/inbox.ts, projects/tipline/src/agents/source.ts
Design
7.1 Message types in projects/tipline/docs/design.md

Payload

TypeScriptprojects/tipline/src/protocol/messages.ts:41
export interface SubmitPayload {
  v: 1;
  tipId: string;
  story: string;
  body: TipBody;
  attachments: AttachmentInfo[];
  /** Sealed chunk messages that follow, dummy ones included. */
  chunks: number;
  membership: MembershipProof;
  padding: string;
}

Notes

Every source message is padded to one fixed size, so its length says nothing about its content.

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/tipline/tip/submit/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…"
  }
}