AccessDiff for Google Workspace

Check a record

AccessDiff signs a record each time a Google Docs, Slides or Sheets file is checked for accessibility: when, which version of the file, what the checks found by rule and where, and which WCAG 2.1 criteria a document check cannot settle. The records of a file form one chain. A district’s ADA coordinator, a buyer or an auditor can check the file here.

Nothing is sent. Your browser does the whole check. The only thing this page loads is AccessDiff for Google Workspace’s public keys, from keys.json on this site.

Drop the file here, or choose it. It is the file AccessDiff gave you: “Download the records and statement” in the side panel’s History.

Check with other public keys

Result

Nothing checked yet.

What is checked

  1. Each signature. AccessDiff for Google Workspace signs each record with its private key when it makes the record. Your browser checks the signature with AccessDiff for Google Workspace’s public key. If anything in the record was changed afterwards, even one character, the signature no longer matches. Only the holder of the private key can make a signature that matches.
  2. The chain. Each record names the fingerprint (SHA-256) of the record before it. If a record was removed, changed or put in between later, the next record no longer points to it, and the page says where.

A record holds when its signature matches. It shows that AccessDiff for Google Workspace made the record and that nobody changed it since. A record shows what the automated checks found in that version on that date; it does not show that the file meets WCAG 2.1 AA or any law, and it holds no text of the file. A chain shows that no record was changed or taken out from between the others; it cannot show that records were cut from the end of a download, so keep each download as you received it. This is not legal advice.

Check it without us

You do not need this page or AccessDiff for Google Workspace to check a record. Save the public keys (keys.json) next to the proof file (saved as proof.json; a single record or a list of records works too) and run this with Node 18 or later. Nothing needs installing:

node -e '
const fs = require("fs"), c = require("crypto");
const C = (v) => v === null || typeof v !== "object" ? (typeof v === "number" && !isFinite(v) ? "null" : JSON.stringify(v))
  : Array.isArray(v) ? "[" + v.map((x) => C(x === undefined ? null : x)).join(",") + "]"
  : "{" + Object.keys(v).filter((k) => v[k] !== undefined).sort().map((k) => JSON.stringify(k) + ":" + C(v[k])).join(",") + "}";
const f = JSON.parse(fs.readFileSync(process.argv[1], "utf8"));
const keys = JSON.parse(fs.readFileSync(process.argv[2], "utf8")).keys;
let last = null;
for (const s of f.entries || (Array.isArray(f) ? f : [f])) {
  const r = s.record || s.receipt, k = keys.find((k) => k.kid === r.keyId);
  const ok = !!k && c.verify(null, Buffer.from(C(r)), c.createPublicKey({ key: { kty: "OKP", crv: "Ed25519", x: k.x }, format: "jwk" }), Buffer.from(s.signature, "base64url"));
  const linked = !last || r.chain !== last.chain || r.seq !== last.seq + 1 ? "" : r.prev === last.hash ? " linked" : " NOT LINKED";
  console.log((r.seq ?? "-") + " " + (ok ? "signature holds" : "SIGNATURE DOES NOT HOLD") + linked);
  last = { chain: r.chain, seq: r.seq, hash: c.createHash("sha256").update(C(r)).digest("hex") };
}' proof.json keys.json

Or check one record with OpenSSL 3. Save the record’s proof_record cell (or its record, written out as canonical JSON) as record.json exactly as it is, with no line break after it; save the pem of the key it names from keys.json as key.pem; put its signature in place of SIGNATURE:

printf '%s==' "SIGNATURE" | tr '_-' '/+' | base64 -d > record.sig
openssl pkeyutl -verify -pubin -inkey key.pem -rawin -in record.json -sigfile record.sig

OpenSSL answers “Signature Verified Successfully” when the record is exactly as signed.

For software and AI agents: keys.json is a JSON Web Key Set: each key with its id, algorithm, public key (also as PEM), the day it was first used and the day it was retired, and how records are signed.