Root cause of the wallet balance stuck at '--' and every other mini-app
write silently failing: @noble/ed25519's signing needs crypto.subtle,
which every browser restricts to a secure context (https://, or
http://localhost). A plain http://<lan-ip>:port origin - exactly what a
second device on the same network needs to reach this - is NOT a secure
context, so crypto.subtle is undefined there and init()'s promise
rejects with no .catch(), leaving accountId stuck at undefined forever.
Reproduced directly against the live deployment with a real headless
browser: confirmed 'crypto.subtle must be defined, consider polyfill'
in the console, isSecureContext: false. Fixed by generating a
self-signed cert (openssl, auto-generated on first run, reused after,
SANs cover localhost/127.0.0.1/every detected LAN IPv4) and serving
HTTPS by default - verified end to end: hasSubtle: true,
isSecureContext: true, wallet balance resolves to a real value instead
of '--'. HTTP_ONLY=1 opts back into plain HTTP for same-machine-only
testing, where http://localhost is already a secure context on its own.