# How ProperTrust works

ProperTrust is a neutral record keeper for agreements. It does three things:

1. **It freezes a wording.** The text of a contract is rendered to a PDF, hashed with SHA-256, stored encrypted, and the hash is anchored in the Bitcoin blockchain. From that moment nobody, including ProperTrust, can change the wording without the hash changing.
2. **It runs the signature round.** Every party is invited, reads the wording clause by clause, confirms each clause, and signs. Each step is recorded with its time.
3. **It issues the result.** When all parties have signed, the signatures are frozen in a signature bundle, the bundle is anchored too, and every party receives a numbered edition.

You, the agent, act for one account, the **owner** of the agreements you create. You prepare, send, follow and report. You never sign: a signature is given personally by each party.

## The objects

| Object | What it is |
|---|---|
| **Document** | A file in the encrypted vault with its SHA-256 and its anchors. Every agreement has one; you can also deposit documents on their own as timestamps. |
| **Agreement** | A document plus a signature round. Status: `collecting`, `completed` or `cancelled`. |
| **Party** | One seat in the round: a person or company that is to sign. Status: `invited`, `joined`, `read`, `signed`. The owner is always the first party. |
| **Clause** | A section of the wording. Parties confirm clauses one by one ("read and understood"). |
| **Signature** | The recorded acceptance of one party: method, time, identity level, hash. |
| **Bundle** | The canonical JSON record of a completed round: document hash, parties, read receipts, signatures. It is hashed and anchored. |
| **Edition** | The numbered copy of a completed agreement that belongs to one party ("Edition 2 of 3"). |
| **Anchor** | The proof that a hash existed at a time: an OpenTimestamps proof that ends in a Bitcoin block. |
| **Verification code** | The short code printed with a QR on the PDF. Anyone holding the paper can check the status at `https://propertrust.com/d/<code>`. |

## The life of an agreement

```
wording ──► agreement_create ──► collecting ──► every party: invited → joined → read → signed ──► completed
              (PDF, hash,          (invitations by e-mail            (clause by clause)          (bundle, anchor,
               vault, anchor)       and, with a handle, Telegram)                                 one edition each)
```

- `collecting` → `completed` happens by itself when the last party signs. If the round was created with `open_for_parties`, it stays open until the owner calls `agreement_close`.
- `collecting` → `cancelled` only by the owner (`agreement_cancel`). A cancelled agreement cannot be reopened; its document and timestamp stay on the record.
- A frozen wording cannot be edited. To change a word, cancel and create a new agreement.

## What a key can do

A key acts as the account that created it and sees what that account sees in the panel. It has up to three scopes:

- `read`: templates, agreements, documents, proofs. Every key has it.
- `write`: create agreements, invite and remove parties, remind, close, cancel, deposit documents, trigger the Telegram bot.
- `content`: read the wording of agreements and download files.

No scope allows signing, confirming a clause, or reading on behalf of a party. Reading a wording through the API never counts as a read receipt.

## Before you act for somebody

- Creating an agreement, adding a party and reminding **send messages to other people** (e-mail, and Telegram when you pass a handle). Confirm with your principal before you call them.
- Composed wordings come from a clause library. They are an aid, not legal advice. Say so when you present one.
- Titles travel: the title of an agreement appears in invitation e-mails and Telegram messages. Keep confidential facts out of titles. See the topic `confidentiality`.

## Where to read on

| Topic | Read it when |
|---|---|
| `contracts` | you need to get a wording into ProperTrust |
| `distribution` | you need to bring it to the parties |
| `signatures` | you need to know what comes back and what it proves |
| `confidentiality` | you handle anything sensitive |
| `telegram` | a party is to be reached through Telegram |
| `recipes` | you want the sequence of calls for a common task |
| `errors` | a call was refused |
