topic guide

Checking the records: the chain, the digests and the audit

How the holding's records are signed and linked so that a change would show, how the daily digest puts a copy of their fingerprint outside the platform, how an auditor checks it all with ledger-verify and attests a month, and what none of this can prove.

For
The Board, the forum, investors and the auditor
Tools
The console's Audit tab, the digest emails, ledger-verify
Records
Signed, chained, never edited
Attests
The auditor, once per closed month

How each record is signed and chained

Every fact on the holding is saved as a record: a birth, a sale, a payment, a setting changed, an approval given. A record is never edited or deleted. A mistake is put right by a new record, and both stay.

StepWhat happens
Signed where it is madeA phone signs each record with its own key, which the phone created and cannot give out. A record made in the console is signed by the organisation's key, held in Google Cloud KMS: one key per organisation, which nobody, Tech Equity included, can copy out. Each record names the person who made it.
NumberedThe server gives each record the next number in the holding's sequence (seq 1, 2, 3 and so on), with no gaps, and the time it received it.
ChainedEach record's fingerprint (a SHA-256 hash) is worked out from its contents and the fingerprint of the record before it. Change one record and its fingerprint changes, which breaks the link to every record after it.
LockedThe database refuses to update or delete a record, and accepts a new one only if it extends the chain from its last record.

Each record also carries the number of the latest setting change in force when it was made, and, for a restricted record such as a sale, the approval it was made under. See Approvals and sales and the settings reference.

The daily digest

A chain proves that nothing inside it was changed only if someone outside holds a copy of its fingerprint. That copy is the digest.

Once a day (or every hour, if the Board sets anchor.frequency to Every hour) the platform takes every record since the last digest and works out:

FieldMeaning
HoldingThe holding's id
EventsThe first and last record numbers covered, and how many
Merkle rootOne fingerprint that stands for every record covered (built the standard way, RFC 6962). Change any one of them and the root changes.
Chain headThe fingerprint of the last record covered

Then it does three things:

  1. It stores the digest in the anchor storage under a name that can be created once and never overwritten.
  2. It emails the digest to the people in anchor.recipients, which must include at least one address outside the organisation. The email ends with a line starting Digest (JCS): that holds the exact digest.
  3. It adds a record of the digest to the chain itself, so a missing day shows in the chain.

The emailed copies are the independent evidence. Whoever controls the platform's cloud project could delete the stored copy; they cannot delete an email in an outside recipient's mailbox. Keep every digest email.

  • A day with no new records has no digest.
  • The time of day is schedule.digest_time (09:00 on the holding's clock unless the Support Engineer changes it).
  • Each digest is also sent to an outside timestamp authority (RFC 3161), whose signed time is kept with it and carried in every export and verification bundle: proof that the records it covers existed then, even without the emails. See Public timestamps.
  • If the digest cannot be emailed, it is still stored and the Support Engineer sees Digest not emailed. If it cannot be added to the chain, Digest not in the chain. If a digest was already stored under its name, the Support Engineer sees Digest already stored. The Board sees the first two too.
  • The console's Audit tab lists each digest under Daily digests: when it was anchored (Anchored), the records it covers, its Merkle root and Emailed to how many people.

Running ledger-verify

ledger-verify is a separate program that checks the chain. It is written again from the specification and does not use any of the platform's own code, so it does not take the platform's word for anything.

  1. Ask the Support Engineer for a read-only database connection for the holding (a connection string, the DSN).
  2. Find the holding's id: the Audit tab shows the full command with it filled in (Verify with:).
  3. Save each digest email you want to check as a file: the email as it came (a .eml file, from your mail program's save or download option), its text, or just the line that starts Digest (JCS):. The tool reads any of these.
  4. Run: ledger-verify --dsn <read-only DSN> --holding <holding id> --digest <file> --digest <file> (one --digest for each digest; you may give none).

What it checks, for every record from the first:

  • the numbers run 1, 2, 3 with no gap or reordering;
  • each record points to the fingerprint of the one before, starting from the holding's fixed starting point;
  • each record is well formed and belongs to this holding;
  • each record's signature verifies against the key of the phone or server that the record names;
  • each stored fingerprint matches the record's contents;
  • the holding's recorded last fingerprint matches the last record;
  • for each digest given: the records it covers are all there, their count matches, their Merkle root matches, and the last one's fingerprint matches.
It printsMeaning
N digests checkedHow many digest files were read
holding <id>: N events checkedHow many records were checked
head seq N hash HThe number of the last record, and its fingerprint as the tool worked it out
INTACTEvery check passed. The program ends with status 0.
BROKEN seq 57: ...One line per problem, with the record number. The program ends with status 1.

Write down the head seq and hash the tool reports. They are what you attest to.

Given the tool's output by someone else (a lender, an investor or a partner)? Paste it on What the verifier found for a plain explanation of what passed, what failed and what to ask the business. Ids, fingerprints and names are replaced before it is sent, and nothing is kept.

Without a database connection, ledger-verify --export <file.zip> checks the holding's export (Your data) instead: the same chain and signature checks, and every digest in it and its public timestamp.

It checks a herd statement's verification bundle the same way, and each herd statement against a recount of the herd. See Herd statements for lenders.

The sector's own figures are worked out again from its records, without trusting the platform:

  • ledger-verify --building <file.zip> checks the verification bundle from the Building tab (Download the verification bundle), then works out again the certificates, the hold points' photos they rest on and what each contractor was paid. See Building.
  • ledger-verify --rental <file.zip> checks the verification bundle from the Rental tab, then works out again each tenancy's rent, paid, waived and owed, the caretaker's balance, the deposits, the vacant units' photos and each month's close. No tenant is named in the bundle. See Rental.
  • ledger-verify --community <file.zip> checks the verification bundle from the Project tab, then works out again the money given, spent and held, each milestone's budget, order, photos and witness, the pledges and the money held for named work, and each month's close; with --giver <id>, what one giver gave and pledged. See Community project.
  • ledger-verify --school <file.zip> checks the verification bundle from the School tab, then works out again the fees and other charges, discounts, bursaries, payments, what is owed and what is overdue by the schedule, the bursar's balance, the class counts, the staff's days and timesheets, and each month's close. No pupil is named in the bundle. See School.
  • ledger-verify --clinic <file.zip> checks the verification bundle from the Clinic tab, then works out again the visits charged from the price list, what each patient paid and owes, the cashier's balance, the dispensary's ledger and counts, the staff's days and timesheets, and each month's close. No patient is named in the bundle, and nothing clinical is in it. See Clinic.
  • ledger-verify --care <file.zip> checks the verification bundle from the Care tab, then works out again each month's visits, each invoice to a payer from the visits and the payer's rules, each month's close, and the fingerprint of every care record the bundle carries against the chain.
  • ledger-verify --shop <file.zip> checks the verification bundle from the Shop tab, then works out again the credit sales charged from the price list, what each customer owes, the shopkeeper's balance, the shelves' ledger, what each count says was sold for cash against the takings, the returns, each item's cost and the month's margin, and each month's close. No customer is named in the bundle. See Shop.
  • ledger-verify --fleet <file.zip> checks the verification bundle from the Fleet tab, then works out again the remittance due from each hire's terms, its rest days and the vehicle's days off the road, what each hire owes, the supervisor's balance, the photos and each month's close. No driver is named in the bundle. See Fleet.
  • ledger-verify --syndicate <file.zip> checks the syndicate's export, then works out again the member register, the accounts against their bank statements and every decision from the votes cast; --member <id> works out one member's position, and --bridge checks the syndicate's export against a project's. See Running a syndicate.
  • ledger-verify --estate <file.zip> checks the verification bundle from the Estate tab, then works out again what fell due, what was paid and let off, the caretaker's money and each inspection's photo against its property's outline, the let rooms' rent, the administration, the family's decisions, the co-owners' income, the protections and the declared assets, the land's procedures, fees, disputes and land tax, and each month's close. See Running an estate.
  • --at <seq>, with --member--giver, works the position out as it stood at that record.

The auditor's attestation

The Board adds the auditor on the People screen with the role Auditor (press Add a person). When the Board adds the auditor with an email address, the platform emails them how to sign in. The auditor signs in with an emailed sign-in link or Google, and, as the Auditor role attests, also with the authenticator code (Google Authenticator, Microsoft Authenticator or similar). The auditor reads everything the Board reads and records one thing only: an attestation of a closed month.

  1. Wait until the manager has closed the month.
  2. Run ledger-verify with the digests, and review the month: the close, the counts, money against budget, the exceptions and how they were resolved.
  3. In the console, open Audit. Under Attest a closed month, choose the Month and the Opinion.
  4. In Chain verified up to seq and Its hash, type the head seq and hash your own run of the tool reported. Both are required: the console never fills them in from the chain head it shows, because that would be the platform's word, not your check.
  5. Write your Statement (at least 10 characters) and press Attest.
OpinionShown as
UNQUALIFIEDUnqualified
QUALIFIEDQualified
ADVERSEAdverse
DISCLAIMERDisclaimer of opinion

The platform refuses an attestation when:

  • the month is not closed;
  • the record number is earlier than the record that closed the month (the check must cover the whole month);
  • the record at that number does not have that fingerprint ("verify the chain again");
  • the month is already attested. A month is attested once, and the attestation is itself a record on the chain: it cannot be changed or withdrawn.

The platform does not verify itself. It only checks that the chain head you name is really in its records. The verifying is the auditor's, with the independent tool and the emailed digests.

What investors see

Investors read the quarterly Investor pack in the console, and are emailed it on the monthly pack day of the month after each quarter. They sign in with an emailed link or Google and use no authenticator code. Its audit part shows:

  • for each month of the quarter, whether it is closed, and either the auditor's opinion with the date ("attested Unqualified on ...") or Not yet attested;
  • the chain head: the last record's number and fingerprint, with the note that anyone can verify it with ledger-verify and the daily digests.

An investor who wants independent assurance should ask to be one of the digest recipients, keep those emails, and compare the chain head in the pack with a later run of the tool.

The Board and the forum also see the Audit tab: each month's close and opinion, who attested it, and the digests.

What tampering would look like

If someone...What would show
edited a record in the databaseledger-verify reports that record's stored fingerprint does not match its contents, and the link to the next record is broken.
edited a record and recomputed every fingerprint after itThe chain alone would look whole. Any digest you hold that covers that record no longer matches: Merkle root does not match, which means records were changed after the digest was sent.
deleted a recordA gap in the numbers, or the next record points to the wrong fingerprint; a digest covering it reports records missing.
changed what a phone signedThe signature no longer verifies against the phone's key.
sent a different record under a number already usedThe server refuses it and the Support Engineer sees Record sent twice with different content.
deleted a stored digestYour emailed copy still exists and can be checked against the chain.
stopped the digestsNo digest emails arrive, and no digest records appear in the chain. Recipients should notice the silence.

What the platform cannot prove

Be clear about what a clean result means.

  • Only what digests cover is protected against a rewrite. Records made after the last digest you hold could be rewritten, with every fingerprint recomputed, and the tool would not know. A digest protects only if you kept it outside the platform.
  • The keys come from the same database. The tool checks each signature against the key stored for that phone or server. It cannot tell whether a stored key was swapped; the digests are what guard against that.
  • A console record proves the platform signed it. The organisation's key signs on behalf of the signed-in person. The record names the person the platform says was signed in; it cannot prove that person pressed the button. The authenticator code, required of the Board, the Support Engineer, the Auditor, a Lender, an Insurer, a Vet, platform operators and anyone holding a Board delegation, makes it harder for someone else to act as them, but it does not change this.
  • A phone record proves the phone signed it. Phones are shared; the person named is whoever signed in with their PIN.
  • The facts are only as true as what was recorded. A wrong count or a sale never recorded does not break the chain. The monthly counts, reconciliation and the exceptions are what catch those.
  • Times. The time a record says a thing happened comes from the phone's clock. The time the server received it is the server's. Records recovered from a revoked phone's file stand on its clock alone; each recovery is put before the Board (Records recovered from a revoked phone) with the office's own times beside them.
  • The tool checks integrity, not the rules. It does not check that sales had approvals, that the month reconciled, or that a phone had been revoked. Those checks are made by the platform when the record arrives, and the auditor reviews them in the console.
Top