The product
One interface. Every device.
A TPM and a Secure Enclave prove different things, in different formats, against different roots of trust. Root Herald puts all of them behind one call — and returns one verdict shape, whatever the device turned out to be.
The integration
This is the whole thing.
import { attest } from "@rootherald/browser";
const { nonce, challenge } = await post("/api/challenge");
const { evidence } = await attest(challenge, { ak: loadAk() });
await post("/api/verify", { nonce, evidence });// POST /api/challenge
const { nonce, challenge } = await rh.issueChallenge();
// POST /api/verify
const result = await rh.verify(evidence, { nonce });
if (result.device.verdict !== "pass") {
return res.status(403).json({ error: "device_check_failed" });
}Your backend mints a challenge and appraises what comes back. Your page asks the device to answer it. Neither side parses a quote, walks a certificate chain, or learns what a PCR is.
The evidence is an opaque blob to both of you. It is produced by the device, relayed by your server, and appraised on ours.
The same pair handles a Windows laptop with a discrete TPM and an iPhone using App Attest. Nothing in your code says which.
Coverage
Four platforms, one contract.
| Platform | Root of trust | What it proves |
|---|---|---|
| Windows | TPM 2.0 | Quote over a nonce + EK certificate chain to the chip vendor |
| Linux | TPM 2.0 | Quote over a nonce + EK certificate chain to the chip vendor |
| iOS | Secure Enclave | App Attest chain to Apple's attestation root |
| macOS | Secure Enclave | Possession of a non-exportable key |
The desktop SDKs expose a byte-identical C ABI, so the same integration code links on all three. Where a platform proves less, as macOS cannot currently prove its own silicon, the verdict carries a warning instead of a pass. What each platform can prove →
Why one call is enough
The rule lives in the policy, not in your code.
You build the policy once in the dashboard: which chips you accept, whether the boot has to be proven, what a device with warnings gets. Your backend reads one word back.
Tighten the rule and it applies on the next request. Add a platform and the policy already covers it. Nothing to redeploy, no branch per operating system.
- Which chips countReal hardware only, or cloud instances too, or a named list of vendors.
- Whether boot is provenRequire a signed quote and a replayed event log, or accept the chip alone.
- What Secure Boot must sayOn, with firmware Microsoft has not revoked.
- What a warning getsPass it, flag it, or refuse it.
What you don't build
The part that takes months.
Signature and freshness
TPM2_Quote parsed and verified against the enrolled attestation key, with the nonce read from inside the signed structure — not from a field alongside it.
Certificate chains
Endorsement-key chains validated to seeded chip-vendor roots, with revocation and vendor-specific intermediates handled per manufacturer.
Measured boot
The TCG event log replayed and bound to the signed quote, so boot state is only trusted when the replayed PCRs match the ones the chip signed.
Mobile attestation
Apple App Attest validated against Apple's root, with the environment read from the attestation statement rather than claimed by the app.
Device-bound keys and secrets
A key is created inside the device's chip and your server gets its public half. A signature on a request proves the request came from that device, and your server checks it with no Root Herald call. A decrypt key runs the other way: your server encrypts a session token or secret to the public half, and only that chip opens it. A session copied to another machine signs nothing and reads nothing. Windows and Linux: TPM keys. macOS: Secure Enclave keys, not attested. iOS: App Attest assertions; no decrypt.
Cloud and emulator classing
Provider vTPMs and software emulators identified as what they are, so a rented server can't present itself as a laptop.
Policy resolution
Your acceptance rules applied server-side and changed without a redeploy, so tightening a policy doesn't mean shipping code.