ZKP Auth API
ZKP Auth API is a privacy-first, secure authentication service using Zero-Knowledge Proofs (ZKP) for passwordless login, user registration, password reset, and public key verification — all without storing or transmitting actual passwords. Only public keys and cryptographic parameters (like prime numbers) are saved, ensuring that even if your database is breached, user passwords remain…
ZKP Auth API endpoints
| Method | Endpoint | Description |
|---|---|---|
| GET |
Root Info / |
Returns basic information about the ZKP Auth API. |
| POST |
register /register |
Registers a new user by accepting a username and password. The password is securely hashed and used to generate a public key (y) based on the zero-knowledge proof setup… |
| POST |
login /login |
Authenticates a user using zero-knowledge proof (ZKP). The client submits username, password, and stored ZKP parameters (g, p, y). The server verifies the proof and returns… |
| POST |
Forget_password /forgot-password |
Allows a user to reset their password securely by providing their username and a new password. The server recalculates and returns the updated public key parameters (g, p, y)… |
| POST |
verify /verify |
Verifies the validity of the public key parameters (g, p, y) submitted by the client for a given username. Ensures the parameters are within valid ranges to confirm integrity. |
| GET |
Documentation /docs |
Returns a simple HTML page with detailed documentation and usage instructions for the ZKP Auth API. |