Skip to main content
Docs

Receipts and verification

Receipts#

A receipt is issued for each money event: a collection that succeeded, a release that succeeded, a refund that succeeded. It has a number, an amount, the tenant, the mandate reference and a content_hash. It is emailed to the parties, listed in the portal and available at GET /receipts. Its verify_url opens a public page:

{PORTAL}/verify/<verify_token>

The token is a 22-character lookup key ([A-Za-z0-9_-]). It is not a credential: the page shows no party names and only the facts of the receipt.

The record#

Each tenant has one record per mode: an append-only chain of entries. Each entry has a body, a body_hash and a hash that commits to the previous entry.

text
body_hash = sha256("hrec-r1-body\n" + canonicalJson(body))
prev_hash for entry 1 = sha256("hrec-r1-genesis\n" + chainId)
hash      = sha256("hrec-r1-link\n" + prev_hash + "\n" + body_hash)

Splitting the body hash from the link means a third party can check that entries are linked using only body_hash values, without seeing the content. A receipt holder can check their own entry's body_hash from the content they hold.

Once a day a checkpoint is made for each chain: a signed statement of the chain's head (seq, head_hash, entry count), signed with an Ed25519 key. The public keys are listed at /verify/keys, only ever added and never silently replaced. The checkpoint body is the exact string that was signed.

Checkpoints are copied outside the database: to a locked storage bucket, by email to your owners in live mode, and as a record.checkpoint_created event to your webhook endpoints, so you hold a copy too.

Checking in a browser#

The public page does the check on your device:

  1. It recomputes each hash along the segment from your entry to the signed checkpoint, using the body_hash values.
  2. It compares the last hash with the checkpoint's head_hash.
  3. It verifies the Ed25519 signature over the checkpoint body with the published key, and shows the key's fingerprint.

Browsers that cannot verify Ed25519 signatures say so, and report the key the server says signed it. An entry newer than the last checkpoint is in the record; its signed checkpoint is made after midnight UTC, so check again the next day.

If you hold a fingerprint published outside this site, compare it with the one on the page. A mismatch is shown as a failure.

What this proves#

  • That the entry existed in this position in the chain and is unchanged since the covering signed checkpoint.
  • That every entry between yours and the checkpoint is linked to its neighbours.

What it doesn't prove#

  • That work was performed. Evidence is what the parties supplied.
  • Who a person is, beyond the access they used.
  • Actions taken directly in Stripe, unless they were detected.
  • Legal compliance.

For your own checks#

Members can verify a range of their own record with GET /record/verify?from_seq=&to_seq=, up to 10,000 entries at a time. Larger ranges return the result of the daily verification. The daily job walks every chain and raises an urgent alert for any break; nothing is repaired automatically.

Terms versions can be checked the same way: GET /mandates/:id/versions/:versionId/canonical returns the exact bytes that were hashed, and the response header Holdyn-Terms-Hash carries the hash. It equals sha256("tv1\n" + body).

Reference: Receipts, The record, Public verification.

Receipts and verification · Holdyn Business docs