Identity
A .human address starts as a pure function of one public key and a commitment to the next one (see Addresses). An identity lets that address outlive the key: the set of keys that control it is kept in chain state, so keys can be rotated and, if lost, recovered — without changing the address, its balance, names or history.
Before and after the first rotation
| State | Who controls the address |
|---|---|
| Never rotated, no recovery set up | The key the address was derived from (address = f(public key, next-key commitment)) |
| Identity record exists | Only the keys in the record. The original key stops working once it is removed |
The record is created the first time you rotate keys or set up recovery. Paid names (.node, .app, .vault, .agent) follow the identity of the .human wallet that owns them.
curl -s "$GATEWAY/api/v1/identity/neuro:<Bech32m>.human"
# { "address": "…", "keys": ["<pk1>", "<pk2>"], "version": 2, "rotated_at": 4210, "recovery": { … } }Rotating keys
POST /api/v1/identity/rotate with owner, add (a public key to add, or empty), remove (a public key to remove, or empty), signed by a currently active key over:
nc-rotate|<owner>|<add>|<remove>|<nonce>The added key must agree too: add_proof is its signature over the message below. Without it no one could tell that the key's holder wants this address, and a stranger's key could be listed on it.
nc-rotate-accept|<owner>|<add>|<nonce>To find a wallet by its phrase after a rotation: POST /api/v1/identity/by-key with public_key returns rotated (addresses this key was rotated or recovered onto), derived, derived_in_use and derived_replaced.
- The last remaining key cannot be removed.
- The signature covers the exact change, so no one can alter it on the way.
- A rotation keeps the recovery configuration (guardians, threshold, timelock).
- Each signed identity operation uses up the signer's operation nonce in consensus, so a block proposer cannot replay an old signed rotation to bring back a key you removed. The same applies to recovery setup, approval, cancel and reject.
- Applied in consensus on every validator.
Typical move to a new device: add the new key from the old device, then remove the old key with the new one.
Pre-rotation: the next key is committed in the address
The address contains next_commit, a hash of the next key. A rotation is valid only when it is signed by the key that opens that commitment, and it names the following commitment. The current signing key signs everything else but cannot rotate. A thief who copies or forges the signing key can therefore spend from the address but cannot take the identity away from the owner.
The next key is a rotation key that uses SLH-DSA (FIPS 205), a hash-based scheme with different security assumptions from the ML-DSA signing key, so one broken scheme does not expose the other. By default it is derived from the same seed words, so the phrase alone is enough and there is nothing more to keep. That protects against a broken signature scheme but not against a stolen phrase.
For large accounts, the rotation key can be a separate offline key instead. A rotation then waits a number of blocks, during which a separate veto key can cancel it. Switching later takes one rotation that replaces the commitment. If the next key is lost, the address keeps working and can still sign and move funds; it just cannot rotate, and guardians, if set, can replace the commitment under the usual threshold, timelock and veto.
Social recovery
If every key is lost, guardians can restore access.
Set up
POST /api/v1/identity/recovery/setup — signed by an active key:
| Field | Rule |
|---|---|
guardians | One or more .human addresses, not your own |
threshold | How many guardians must approve: 1 to the number of guardians |
timelock | Blocks to wait after the threshold is reached, giving you time to veto |
Recovery is available for .human addresses only.
Recover
- Request — from a new device,
POST /api/v1/identity/recovery/requestwithtarget(your address) andnew_key, signed by the new key. Statuspending. - Approve — each guardian calls
POST /api/v1/identity/recovery/approve(target,guardian). When approvals reach the threshold the request becomesarmed, withexecutes_at = now + timelock. - Execute — at
executes_atevery validator replaces the identity's keys withnew_key, automatically.
At any point before execution:
| Who | Can | Endpoint |
|---|---|---|
| You, with any active key | Veto it | POST /api/v1/identity/recovery/cancel |
| A guardian | Reject it | POST /api/v1/identity/recovery/reject |
| The requester | Withdraw it | POST /api/v1/identity/recovery/withdraw |
Reads: GET /api/v1/identity/recovery/:addr (configuration and open request), GET /api/v1/identity/guardian-of/:addr (whom you guard), GET /api/v1/identity/recovery/initiated/:pk (requests started by a new key).
Choose the timelock with care
The timelock is your window to notice a recovery you did not start. Too short, and colluding guardians can take the address before you react; too long, and a real recovery takes that long.
Planned
The identity record is meant to carry more than keys: a reputation built from on-chain behaviour, a zero-knowledge proof of it, and an IBC v2 packet that lets another chain read it. None of these exist yet.