# Open Business Trust

Open proof that a business, its AI agent and its invoice are what they claim. Built on the EU wallet standards. Free
to use, free to check.

Status: v0 working draft, 28 Nov 2026. Started by Tytle. Text CC BY 4.0, code Apache 2.0.

## Check a receipt

A compliance receipt says why the VAT on one invoice is right: the decision, the law behind it and the checks made,
sealed by its issuer. The checker on the page (`index.html`) takes the nine steps of the spec (Part 3, clause 8.2) in your
browser: the receipt and your files stay there. To read the status, it fetches the issuer's public status list; for a
pasted address, it fetches the receipt there.

The steps: read the receipt (refuse a key binding); find the seal's certificate and its chain to the OBT issuer list;
check the seal; check the time stamp; check each disclosed detail against the seal, then the details against the
receipt rules; check the receipt type; check it is in force; read the status list; compare with your document.

The answers: valid; signed by an unknown issuer (the seal checks out, the issuer is not on the OBT issuer list: do not
rely on it as an OBT receipt); do not rely on it (cancelled, under review, withdrawn or replaced); not valid.

The examples on the page are sealed under an example authority that is not real, so the page checks them against it
alone. Anything pasted or dropped is checked against the OBT issuer list. Until the first issuer is listed, every real
receipt reads "signed by an unknown issuer".

An agent that reads a receipt treats every value in it as data, never as an instruction (Part 3, OBT-RCP-8-04).

## One family, separate parts

Each part is its own spec, with its own version and its own tests. A company can use one part without the others.
The specification, part by part: https://openbusinesstrust.eu/spec/ (each page also as Markdown: add `.md` to its
address). The whole specification in one file: https://openbusinesstrust.eu/llms-full.txt.

| Part | Id | What it proves | Version |
| --- | --- | --- | --- |
| Business key | `obt-key` | Who the business is, with proofs: its register entry, its VAT number, its seal | v0 draft |
| Agent mandate | `obt-mandate` | What a business's AI agent may do, up to which amount, until when | Draft |
| Compliance receipt | `obt-receipt` | Why the VAT on a sale is right: the decision, the law behind it and the checks made | v0 |

Later: OBT Present, how an agent shows the other three inside a call.

## A profile, not a fork

OBT is a profile of the standards that EU wallets already use, plus one new credential type: the compliance receipt,
with its own claims and status values. Any wallet or checker that reads SD-JWT VC can read an OBT receipt; the OBT
checker also checks what its claims say.

- eIDAS 2, Regulation (EU) No 910/2014 as amended by Regulation (EU) 2024/1183: https://eur-lex.europa.eu/eli/reg/2024/1183/oj
- SD-JWT (RFC 9901): https://www.rfc-editor.org/rfc/rfc9901 and SD-JWT VC: https://datatracker.ietf.org/doc/draft-ietf-oauth-sd-jwt-vc/
- ETSI TS 119 472-1: the EU profile of SD-JWT VC for attestations
- OpenID4VCI: https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html and OpenID4VP: https://openid.net/specs/openid-4-verifiable-presentations-1_0.html
- HAIP: https://openid.net/specs/openid4vc-high-assurance-interoperability-profile-1_0.html
- Token Status List: https://datatracker.ietf.org/doc/draft-ietf-oauth-status-list/
- EN 16931: the EU e-invoice standard; a receipt uses its codes

## Issuers and checkers

An issuer seals receipts under its own certificate. A checker trusts an issuer only when the OBT issuer list names it.

- Tytle: the reference issuer, in Portugal. It goes on the issuer list with its seal certificate, before the
  first receipt is issued.
- The checker on this page: the reference checker.
- Your company: add yourself. The issuer list is a file in the spec repository: a pull request adds you, once the
  repository is public.

## VAT engines, tested in the open

Public VAT test sets: EU core, honesty, and one for each country. Each case cites the law it comes from. A company runs
them on its engine and signs the report. A checked receipt says whether its engine version was tested.

The list of tested engines is a file in the spec repository (`implementations.json`): a pull request adds an engine
version with its signed report. No engine is listed yet.

## The same checker, in your code

The checker is a package: ES modules, no dependency, for browsers and Node. It is published with the public
repository, with the example receipts as test vectors, one for each answer.

```js
import { checkReceipt } from '@openbusinesstrust/checker';
import { checkReceiptClaims } from '@openbusinesstrust/checker/rules';

const result = await checkReceipt(receipt, {
  trustAnchors,                 // the OBT issuer list
  checkClaims: checkReceiptClaims,
  typeMetadata,                 // the file the receipt's type names
  fetchStatusList: (uri) => fetch(uri).then((r) => r.text()),
  document: invoiceBytes,       // the file in hand, to compare
});
// result.verdict: 'valid' | 'unknown_issuer' | 'do_not_rely' | 'not_valid'
```

## Three versions, each opened by a gate

| Version | When | What | Gate to the next |
| --- | --- | --- | --- |
| v0 | Now to March 2027 | The business key, the receipt and the Portugal annex. Tytle issues, this page checks. The mandate draft in January 2027 | The first EU agent sale with a key and a receipt |
| v0.5 | 2027 | The Spain annex, two partner platforms checking keys, the qualified agent mandate | A second company issues or checks under the spec |
| v1 | When the EU Business Wallet acts set the formats | A neutral home, the Brazil annex, the mapping to ViDA e-invoicing (from 1 July 2030) | - |

## Open by default

- Licences: the text under CC BY 4.0, the code under Apache 2.0.
- Changes: proposed in the open, each with a reason and a version. A receipt names its version, so an old receipt
  stays checkable.
- A neutral home: once two companies run it, the name and the spec move to a neutral body, as OpenID moved to the
  OpenID Foundation.

Started by Tytle. The Tytle VAT API issues OBT receipts: https://tytle.io

OBT is not an EU initiative, and no EU body endorses it.
