Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🔑Registered Keys and Signed Tool Communication

Audience: Tool developers, Leaders, and integrators using signed off-chain communication.

Goal: Bind identities to active keys and verify Signed HTTP v3 requests.

NetworkAuth is the on-chain key-binding surface for Tool and Leader identities. It records which public keys an identity registered, which key ID is active, and which keys are revoked. The binding lets a verifier resolve a signature to an identity without trusting an out-of-band key list.

Register Leader and Tool keys before dispatch
Phase 1: Register Leader and Tool keys before dispatch.
Leader and Tool exchange signed HTTPS evidence
Phase 2: Leader and Tool exchange signed HTTPS evidence.
Leader submits Tool evidence in a Workflow transaction
Phase 3: Leader submits Tool evidence in the Workflow transaction. Keyed facts: Tool response = signed response submission; Leader evidence = signed response + Leader key; Workflow tx resolves Tool ID + capability key; NetworkAuth exposes active/revoked key state; the final check verifies signature + Tool allowlist.

Key bindings and lifecycle

A FQN is the client-facing lookup handle: resolve it through ToolRegistry to the stable Tool object ID, then resolve the NetworkAuth binding for that Tool ID. A Leader binding is keyed by the Leader capability ID. Registering a key requires proof of possession for that identity and registration slot. Rotation registers a new key ID and changes the active binding; revocation makes a key unacceptable even if its signature verifies cryptographically. Do not assume a cached canonical request can be replayed with the same nonce across rotation: request a new nonce, obtain a new signed request, and confirm effects with authoritative readback. Retain the identity, stable object or capability ID, key ID, rotation event, and revocation state with the request evidence.

Identity and allowlist ownership

NetworkAuth answers which public key is active for this Tool or Leader identity. It is the on-chain source used to register and rotate keys and to export or refresh the Toolkit's local AllowedLeadersFileV1. It does not decide whether an endpoint should accept every valid Leader. The Toolkit or Tool configuration owns that local policy: allowed_leaders embeds an allowlist, while allowed_leaders_path points to a file-backed AllowedLeadersFileV1; the Toolkit endpoint authenticates against that local allowlist without making RPC calls. Each accepted entry should match the intended Leader capability or identity and active key ID, and the file must be refreshed after key rotation.

The workflow performs the on-chain check: it resolves the current NetworkAuth binding and applies the configured Tool/Leader identity checks when accepting the signed evidence. The Toolkit endpoint performs the local check against its exported allowlist; a valid NetworkAuth signature from a Leader absent from allowed_leaders or its configured path remains unauthorized for that Tool. See the RegisteredKey verification guide and the exact Toolkit allowlist reference for configuration fields.

Signed HTTP v3

Signed HTTP v3 keeps the existing Leader signature over the schema-ordered canonical input hash and the Tool signature over the response domain, Leader signature, deterministic invocation nonce, and canonical response hash. The API remains signed_http::v3, and the wire-version header remains X-Nexus-Sig-V: 3. Protocol revision v3.1 adds a separate Leader context signature in nexus-context-sig and its Unix-millisecond timestamp in nexus-context-timestamp; this signature binds the receiving Tool FQN, invocation nonce, and timestamp without changing the v3 input or result signature transcripts.

In required mode, the Toolkit checks the context signature against the locally allowlisted Leader key and applies the configured symmetric timestamp window, which defaults to 30,000 ms and includes both endpoints, before replay-cache access. Gateways must forward the signed request headers, including both context headers, and signed response headers without renaming or dropping them. The context signature covers only the Tool FQN, nonce, and timestamp; HTTP method, path, query, raw body bytes, arbitrary headers, and status remain outside the signed messages. HTTPS protects those transport fields in transit.

The runtime can serve plain HTTP when both Toolkit TLS credential paths are absent, but the documented operator profile requires authenticated HTTPS on both the public and gateway-to-Toolkit hops. GET /meta advertises an external HTTPS URL regardless of the listener's configured transport, so that metadata does not prove the active listener is TLS-protected. When per-Tool client-certificate binding is enabled, TLS must terminate in Toolkit or pass through to it; forwarded certificate headers do not establish the TLS peer key.

For the exact schema-order, response-domain, nonce, and canonical-response rules, see the Tool communication guide. HTTPS protects method, path, query, raw body, headers, and status; it does not prove which registered Tool or Leader signed the message.

Leader and Tool signatures

The same key-binding model serves two identities. A Leader signature proves the assigned Leader produced or submitted execution evidence, and a Tool signature proves the registered Tool endpoint produced the response. Toolkit request authentication checks an allowlisted Leader locally before invocation; it is not an on-chain verifier result. The RegisteredKey path separately checks submitted Leader and Tool evidence against active on-chain NetworkAuth bindings. The verifier still checks which identity the selected vertex requires and whether the configured trust mode is RegisteredKey.

Toolkit modes and failures

Toolkit integrations can select the signed communication mode for an off-chain Tool. A request with a missing or malformed signature, impossible identity binding, replayed nonce, commitment mismatch, or different FQN that prevents a stamped verdict aborts without a verification result. An invalid active-key signature presented through a valid RegisteredKey verdict path can instead produce VerifierDecision::Reject failure evidence. Keep the no-result branch separate from durable rejection recovery.

Key verification is one verifier choice, not the entire verifier model. Return to Verifiers and Result Trust for None, RegisteredKey, and External, and continue to On-Chain Result Resolution for settlement after a verdict.

Verification checklist

  1. Resolve the Tool FQN to its stable Tool object ID, or resolve the Leader capability ID, from the relevant registry.

  2. Read the active key ID and revocation state from NetworkAuth.

  3. Reconstruct the canonical commitment and verify the nonce boundary.

  4. Verify the signature with the active public key.

  5. Record the failure reason when any identity, key, nonce, or commitment check fails.

Next

Continue to On-Chain Result Resolution after signed evidence has been checked.

Last updated