BrowserIdentity: get keypair from server instead of local generation
Noble-ed25519 pure-JS keygen blocks the browser main thread (BigInt
scalar multiplication too heavy). Server generates keypair via
sodium-native (fast, C) at POST /api/identity/generate. Browser
stores it and only does signing locally (which noble handles fine).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
01e5a8897020e4eb162b1f321e06cb066cc320b7
by plankatron <fleeky@gmail.com> · 2026-03-30T23:34:04.000Z