Skip to content
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.

  1. Your server asks Root Herald for a challenge with issueChallenge.
  2. The device answers it with the client SDK, and sends the evidence to your server.
  3. Your server passes the evidence to verify and 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 challenge your 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

Clients

The server half is the same everywhere. Pick where the evidence is collected:

  • Browser — a web page, through a link handler or extension you build to your own app on the machine.
  • Native — a desktop app, launcher or agent linking the C SDK.
  • iOS — an iPhone or iPad app with the Swift SDK.

SDKs

API and reference