Renew the device certificate from the browser, with the recovery phrase

Within the last 30 days the owner page offers it. The node signs a new certificate for the same device key (peer ID and listings stay), saves it, and signs again own listings that would outlive the old certificate. The phrase is used for one request and not kept; another identity's phrase and no-phrase identities are refused. Device.Current gives the certificate to sign with while a renewal happens.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
This commit is contained in:
2026-11-18 23:19:30 +01:00
co-authored by Claude Sonnet 5.5
parent 210ba1b3e9
commit dfe35b422d
23 changed files with 1011 additions and 29 deletions
+3 -1
View File
@@ -23,7 +23,9 @@ bin/allmende init # or: make init
This prints your 12-word recovery phrase **once**. Write it down: it is the only
way to get your identity and listings back if the machine is lost
(`allmende recover`). Keys and the database live in the data directory,
(`allmende recover`). The same words renew your device certificate, which lasts
a year: in its last 30 days the owner page offers to renew it, and you type them
once there. Keys and the database live in the data directory,
`~/.local/share/allmende` by default (change it with `--data <dir>` or the
`ALLMENDE_DATA` environment variable). Besides the numbered list, `init` prints the
words as one plain line you can triple-click and paste into a password manager.