> For the complete documentation index, see [llms.txt](https://docs.talus.network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.talus.network/concepts/10-registered-keys-and-signed-tool-communication.md).

# Registered Keys and Signed Tool Communication

{% hint style="info" %}
**Audience:** Tool developers, Leaders, and integrators using signed off-chain communication.

**Goal:** Bind identities to active keys and verify Signed HTTP v3 requests.
{% endhint %}

`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.

<figure><picture><source srcset="https://2322144477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlV9L0m4FfiDv8fzxk6cT%2Fuploads%2Fgit-blob-e7f9d03139e495f5944ccffcc26050a1f06b35f7%2Fd12-register-keys-dark.svg?alt=media" media="(prefers-color-scheme: dark)"><img src="https://2322144477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlV9L0m4FfiDv8fzxk6cT%2Fuploads%2Fgit-blob-e7f9d03139e495f5944ccffcc26050a1f06b35f7%2Fd12-register-keys-light.svg?alt=media" alt="Register Leader and Tool keys before dispatch"></picture><figcaption><p>Phase 1: Register Leader and Tool keys before dispatch.</p></figcaption></figure>

<figure><picture><source srcset="https://2322144477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlV9L0m4FfiDv8fzxk6cT%2Fuploads%2Fgit-blob-91c44c8f700035f51c9ff1af9928b822c5d5f7d5%2Fd12-signed-http-dark.svg?alt=media" media="(prefers-color-scheme: dark)"><img src="https://2322144477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlV9L0m4FfiDv8fzxk6cT%2Fuploads%2Fgit-blob-91c44c8f700035f51c9ff1af9928b822c5d5f7d5%2Fd12-signed-http-light.svg?alt=media" alt="Leader and Tool exchange signed HTTPS evidence"></picture><figcaption><p>Phase 2: Leader and Tool exchange signed HTTPS evidence.</p></figcaption></figure>

<figure><picture><source srcset="https://2322144477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlV9L0m4FfiDv8fzxk6cT%2Fuploads%2Fgit-blob-4b787e0a911cdc516c98d5920bc92640d7b8ecf8%2Fd12-workflow-transaction-dark.svg?alt=media" media="(prefers-color-scheme: dark)"><img src="https://2322144477-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlV9L0m4FfiDv8fzxk6cT%2Fuploads%2Fgit-blob-4b787e0a911cdc516c98d5920bc92640d7b8ecf8%2Fd12-workflow-transaction-light.svg?alt=media" alt="Leader submits Tool evidence in a Workflow transaction"></picture><figcaption><p>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.</p></figcaption></figure>

### 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](https://docs.talus.network/guides/tool-development/verify-offchain-tool-result.md) and the exact [Toolkit allowlist reference](https://docs.talus.network/reference/toolkit/rust.md) 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://docs.talus.network/guides/tool-development/tool-communication.md). 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](https://docs.talus.network/concepts/04-verifiers-and-result-trust.md) for `None`, `RegisteredKey`, and `External`, and continue to [On-Chain Result Resolution](https://docs.talus.network/concepts/11-onchain-result-resolution.md) 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](https://docs.talus.network/concepts/11-onchain-result-resolution.md) after signed evidence has been checked.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.talus.network/concepts/10-registered-keys-and-signed-tool-communication.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
