> For the complete documentation index, see [llms.txt](https://docs.minervachain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.minervachain.org/use-minerva/security-recovery.md). Agents can also search and read this documentation through its [MCP server](https://docs.minervachain.org/~gitbook/mcp).

# Security, recovery and key rotation

Your account is controlled by one ML-DSA-65 key stored on your device, encrypted under your passcode. Minerva has no "forgot password". Two things keep you safe: an exported Recovery Kit, and the ability to rotate the key if a device is lost.

## Security screen

![Security](https://15420461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6nJaiwtSaPxngEc1oUhI%2Fuploads%2Fgit-blob-d6578716052b24e83eb26106d8e853b7f20b178c%2Fext-05-security.png?alt=media)

The Security view shows the account's mode (**PQ Native** for every default account), its deployment state, the current key's commitment and policy version, and the signals the wallet watches: whether a Recovery Kit was ever exported and whether the key was ever rotated.

## Recovery Kit

![Recovery](https://15420461-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6nJaiwtSaPxngEc1oUhI%2Fuploads%2Fgit-blob-c84eb19208b4baa60ead47682872e02b7d42126c%2Fext-06-recovery.png?alt=media)

**Export Recovery Kit** produces a JSON document containing your key material encrypted with your passcode (the same algorithm on every platform). Store it somewhere that survives the loss of the device: a password manager, an encrypted drive, a printout of the text. Anyone with the kit **and** the passcode controls the account, so treat the pair like a seed phrase.

Restore on another device: on the create screen choose **Restore from Recovery Kit**, paste the kit, enter its passcode. The same address comes back, on any platform, on any Minerva network.

Rehearse it once on the testnet: export, restore into a second browser profile, and confirm the address matches. The wallet reminds you until a rehearsal has been done.

## Key rotation

**Rotate key** generates a new ML-DSA-65 key pair, asks the account contract to adopt it, and bumps the account's policy version in the on-chain control registry. From the next block, every node rejects transactions signed by the old key. Your address does not change.

Rotate when:

* a device that held the key is lost, sold or compromised,
* a Recovery Kit may have been exposed,
* as routine hygiene for an account holding significant value.

Rotation needs the account contract, so a counterfactual account is deployed first (the account pays for it). After rotating, **export a new Recovery Kit**: the old one restores the old key, which no longer controls anything.

## Device keys

A deployed account can enrol additional ML-DSA-65 keys with a scope: allowed targets, a spending limit per window, an expiry. A second device or an automation can then spend within those limits without ever holding the control key, and the chain itself prevents a device key from rotating the control key or touching the registries. Enrolment and revocation are in the wallet's **Devices** screen on mobile and desktop.

## Guardian recovery

Guardian recovery (a quorum of other accounts that can rotate your key after a delay, without the current key) is designed but **not deployed**. It changes the account contract and therefore every account address, so it ships only with a planned genesis change. The wallet's Guardians screen says so and points you to the Recovery Kit. Until then: one key, one kit, keep both safe.

## What the wallet never does

* It never sends your key, seed or passcode anywhere.
* It never signs without showing you the target, value, data and network first.
* It never asks for your Recovery Kit except on the restore screen you opened yourself.


---

# 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.minervachain.org/use-minerva/security-recovery.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.
