Zero-Password Auth with BIP39 & Schnorr Ring Proofs
Designing local-first authentication in Go where the server stores zero passwords, zero emails, and zero cross-origin correlation.
safeAuth replaces server-side password tables with a 128-bit BIP39 identity root on the client. Each origin receives an unlinkable Ed25519 keypair derived via HKDF-SHA256, so compromising one service reveals nothing about any other.
1. Local Vault & Nonce Hardening
Mnemonics, epoch counters, and session tokens live in a 0600 local vault encrypted with Argon2id + XChaCha20-Poly1305. On login, the server issues 32-byte single-use nonces (60s TTL) with uniform 401 timing hardening and per-IP token-bucket rate limiting.
2. 1-of-N Schnorr Ring Proofs
For anonymous allowlist verification (/anon-verify), the client proves membership in a set of N public keys over edwards25519 without revealing which key signed the challenge.
go test -v ./... go run ./cmd/safeauth-server -addr :8080 -origin localhost:8080 go run ./cmd/safeauth init