mern-zkp-auth
v1.0.0
Published
Passwordless Full-stack Schnorr Zero-Knowledge Proof Authentication for MERN stack
Maintainers
Readme
Schnorr ZKP Authentication Demo
A minimal demo showing passwordless authentication using Schnorr Zero-Knowledge Proof (ZKP).
The client proves ownership of a secret key without ever sending the secret to the server.
⚙️ Tech Stack
- React + Vite (Frontend)
- Express (Backend)
- TypeScript
- Web Crypto API (AES-GCM + PBKDF2)
- BigInt modular arithmetic
🧠 Concept
Signup
- Client generates:
- Private key
x - Public key
P = g^x mod p
- Private key
- Private key is encrypted locally using a passphrase.
- Only the public key is sent to the server.
Login (Schnorr ZKP)
- Client creates commitment:
