feat: pin a server from onboarding, derived from the address

This commit is contained in:
randogoth 2026-09-26 21:37:12 +03:00
parent 3576e48b99
commit 1385ecb56c
3 changed files with 80 additions and 16 deletions

View file

@ -39,12 +39,16 @@
<p>Identity is one 32-byte seed. Back it up: it is the only secret, and losing it means losing the address.</p>
<div class="row">
<button id="create-identity">create a new identity</button>
<span>or restore from a saved seed:</span>
<input id="restore-seed" placeholder="64 hex characters" spellcheck="false">
<input id="restore-address" placeholder="alice@example.org (if already registered)"
spellcheck="false">
<button id="restore-identity">restore</button>
</div>
<p class="hint">or restore from a saved seed:</p>
<div class="row restore-row">
<label>seed<input id="restore-seed" placeholder="64 hex characters" spellcheck="false"></label>
<label>address (optional)<input id="restore-address" placeholder="alice@example.org, if already registered"
spellcheck="false"></label>
<label id="restore-key-label">server's public key
<input id="restore-key" placeholder="base32" spellcheck="false"></label>
<button id="restore-identity">restore</button>
</div>
</main>
<main id="app" hidden>