Developers
Root Herald in three calls
Your backend holds the only Root Herald key. A client on the device answers a challenge; your backend appraises the answer and gets the verdict back on the same call.
- Your server asks Root Herald for a challenge with
issueChallenge. - The device answers it with the client SDK, and sends the evidence to your server.
- Your server passes the evidence to
verifyand gets the verdict back on the same call.
server (Node)ts
import { RootHeraldClient } from "@rootherald/node";
const rh = new RootHeraldClient({ secretKey: process.env.RH_SECRET_KEY! });
const { nonce, challenge } = await rh.issueChallenge({
ask: ["identity"],
});
const result = await rh.verify(evidence, { nonce });What it is
- A device proves it is a specific, real chip: a TPM 2.0 quote on Windows and Linux, the Secure Enclave on macOS, App Attest on iOS.
- Every proof answers a single-use
challengeyour backend minted, so it cannot be replayed. - The challenge says what to prove (the ask:
identity,posture) and can name the device that must answer; the policies on your API key judge the answer. - The client holds no Root Herald key and never talks to Root Herald; it returns an opaque blob. The blob carries no device identifier: the server resolves the installation from the key that signed the proof.
- Your backend submits the blob with its
rh_sk_key and gets a verdict on that call. No token, no JWKS. - Each installation enrolls with a two-leg ceremony that creates its own attestation key in the chip and hands it back as a blob the client keeps. On Windows each enrollment needs one elevation; attesting and minting keys do not.
- The verdict carries a stable per-tenant device id, an EAR status, boot booleans and assurance claims.
- Minting a key is its own ceremony: the attestation key certifies a new key that cannot leave the chip. Your backend checks a sign key's signatures with its public half, or encrypts to a decrypt key's public half so only that chip opens the result, with no Root Herald call either way.
- Policies are built in the dashboard and tied to your API key; no call names one.
- Errors are string codes on a 4xx; a device that fails policy is a 200 with a failing verdict.
Guides
Quickstart
Enroll a device and attest it end to end, with your server SDK and client platform.
Developer sandbox
Run a sample server and client on your own machine, and see each verdict in the dashboard.
Enrollment
The two-leg ceremony, the attestation key blob, admission under a policy, and the per-tenant device id.
Challenges and verdicts
The two asks, binding a challenge to a device, and every verdict field.
Policies
Building policies in the dashboard, the presets, and what each check does.
Process a verdict yourself
Ask for every fact and make the decision on your own server.
Verify data came from a device
Mint a signing key, keep its public half, check signatures locally.
Guarantee only a device can decrypt
Mint a decrypt key, encrypt to its public half, and only that chip opens the result.
Re-attestation and step-up
When to challenge again, how fresh a verdict is, and stepping up before a sensitive action.
Webhooks
Verdicts, enrollments and usage alerts on your own endpoint.
Clients
SDKs
Node.js
Available@rootherald/node · server
Browser
In development@rootherald/browser · client
Native C
In developmentRootHerald.lib / librootherald.a · client
All SDKs → — Go, Java, PHP, Ruby, .NET, iOS, and the native status codes.
API and reference
API reference
Every endpoint, error code, and the stability contract.
How attestation works
What the chip signs, what the verifier checks, and the two kinds of key.
Mint a key
The key ceremony and the facts about a key.
TPM classes
Every class, how it is derived, and what a policy does with it.
Windows elevation
Acquiring the one elevation each enrollment needs.