---
title: "Desktop Notary"
description: "A hardware-backed signing daemon for desktops and servers. One key per binary, held in a TPM or the Secure Enclave, and signatures only for the process that is running it."
source: "EQTY Notary"
---
The EQTY Desktop Notary is a daemon that holds a signing key per binary in the machine's hardware
root of trust and signs on behalf of the processes running those binaries. A signature from it
answers one question: which executable made this request, on which machine.

> A signature from `DID(H)` identifies the main executable, with content hash `H`, associated
> with the process that opened the connection.

Everything in the daemon exists to keep that statement true: the hardware key seal, the
kernel-attested observation of `exec`, and the re-hash of the live binary at exec time and again
at signing time. The [Security](./advanced/security.mdx) page spells out what the statement does not
cover.

The notary serves the same HTTP API as the [EQTY Notary](https://vcomp.docs.eqtylab.io/verifiable-confidential-containers/components/notary/)
inside a confidential VM, so the EQTY SDK drives it unmodified.

## How it works

1. A binary is registered, by path or by hash. The notary mints a P-256 key for its BLAKE3 hash
   in the TPM or Secure Enclave, and tells the kernel-side observer to watch for it. With
   auto-registration, which the packages turn on, this step happens on a binary's first call.
2. When a process execs a registered binary, the observer reports it. The notary re-hashes the
   live executable, and if it matches, tracks the PID and opens a per-process audit log.
3. The process calls `POST /v1/sign`. The notary resolves the caller's PID from the connection,
   checks it is tracked, re-reads its start time and re-hashes its live binary, then signs with
   that binary's key. Anything else gets `403`.
4. The same binary on the same machine always resolves to the same key, and so the same DID,
   across daemon restarts.

```mermaid
sequenceDiagram
    participant A as Registered binary
    participant N as Notary
    participant K as Kernel
    participant T as TPM / Secure Enclave
    A->>K: exec
    K-->>N: exec event (inode matches)
    N->>N: re-hash /proc/pid/exe, track PID
    A->>N: POST /v1/sign {data}
    N->>N: caller PID tracked? start time unchanged? live hash unchanged?
    N->>T: sign with the binary's key
    T-->>N: signature
    N-->>A: {signature, did, binary_hash}
```

## What you get

| Property                   | Linux                                                 | macOS                                      | Windows                                        |
| -------------------------- | ----------------------------------------------------- | ------------------------------------------ | ---------------------------------------------- |
| Hardware-backed keys       | TPM 2.0                                               | Secure Enclave                             | TPM 2.0 through the Platform Crypto Provider   |
| Per-binary identity        | BLAKE3 hash of the file, as a `did:key`               | Same                                       | Same                                           |
| Process attribution        | Kernel-attested peer PID on the Unix socket; 4-tuple lookup on loopback TCP | Same                  | Loopback TCP only                              |
| Process observer           | eBPF: exec, fork, exit, open, close                   | kqueue: exec, fork, exit                   | ETW: exec, exit                                |
| Hardware identity          | TPM quote over the IMA log, AK certified by an EQTY Key Guardian | Secure Enclave key, host-reported code identity | TPM quote with the TCG boot log, EK certificate |
| Audit trail                | Per-PID JSONL log with explicit loss counters         | Same, fewer event types                    | Same, fewer event types                        |

Confidentiality of the signed payload is not a goal: the notary signs what it is given.

## The pieces

| Piece              | What it does                                                                                      | More                                                   |
| ------------------ | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| **Daemon**         | `eqty-notary`: an HTTP API over a Unix socket and loopback TCP, run by systemd, launchd or the Windows service manager. | [Install](./install/overview.mdx)           |
| **Keystore**       | Mints and loads per-binary keys in the TPM or Secure Enclave. Blobs on disk are sealed to the chip and useless elsewhere. | [Security](./advanced/security.mdx)                     |
| **Observer**       | Watches for execs of registered binaries and writes the per-process audit log.                   | [Audit Log](./advanced/audit-log.mdx)                           |
| **Credentials**    | W3C Verifiable Credentials for the notary's own identity and for each process it signs for, with the hardware evidence inline. | [Credentials](./advanced/credentials.mdx)              |
| **vTPMs**          | Software TPMs whose state the host root seals and whose IAK is a hardware key, for VMs and containers. | [Notary-backed vTPM](../notary-backed-vtpm/index.mdx)                      |
| **Command line**   | `eqty-notaryctl` registers binaries and manages vTPMs.                                           | [Command Line](./advanced/cli.mdx)                              |

## Get started

1. [Install the notary](./install/overview.mdx) on Linux, macOS or Windows.
2. Sign your first payload with the [Quick Start](./quick-start.mdx).
3. Point the EQTY SDK at it: [Sign with the EQTY SDK](./tutorials/sdk-signing.mdx).
4. See how a signature traces back to the hardware on each platform: [Chain of Trust](./chain-of-trust.mdx).

The reference pages, the [command line](./advanced/cli.mdx), the [HTTP API](./advanced/api.mdx),
[configuration](./advanced/configuration.mdx), the [audit log](./advanced/audit-log.mdx),
[credentials](./advanced/credentials.mdx) and the [trust model](./advanced/security.mdx), are
under Advanced Topics.

To let web agents sign their actions in Firefox or Chrome with keys anchored to this notary, see
[Browser Notary](../browser-notary/index.mdx). To give a VM a TPM rooted in this machine, see [Notary-backed vTPM](../notary-backed-vtpm/index.mdx). To run
Docker containers on a Mac against such a TPM, see [Docker on macOS](../docker-on-macos/quick-start.mdx).