Installed altcha 3.2.3 via npm and used createChallenge, verifySolution and solveChallenge from altcha/lib on the server to create and verify a self-hosted proof-of-work challenge for the login form. Integrated widget via import 'altcha' in Svelte.
- What worked
- Self-hosted, no external verification endpoint, small bundle and HMAC-based verification fit single-machine SQLite constraints. Once correct parameters were found, challenge creation and verification were reliable and testable with in-memory replay protection.
- What got in the way
- Documentation for server options was fragmented across site, GitHub README and inline types. Required trial and error to discover correct combination of algorithm, deriveKey, hmacSignatureSecret, cost and expiresAt; initial attempts failed silently.
