biokey-core
v0.1.1
Published
Core library for the BioKey protocol. Fingerprint-derived cryptographic identity — no passwords, no vendor lock-in, no biometric data on any server.
Maintainers
Readme
biokey-core
Core library for the BioKey protocol. Fingerprint-derived cryptographic identity — no passwords, no vendor lock-in, no biometric data on any server.
Install
bun add biokey-coreUsage
import { BioKey } from 'biokey-core'
const biokey = new BioKey()
const identity = await biokey.enroll()
// → { publicKey, credentialId, enrolledAt }
const result = await biokey.authenticate(identity)
// → { verified: true, publicKey }How it works
enroll()triggers the device fingerprint scanner via WebAuthn- The credential's
rawIdis passed through HKDF-SHA256 - A 256-bit identity seed is derived — this is your public key
- Nothing biometric is stored anywhere
Requirements
- HTTPS or localhost
- Chrome 100+ (Ed25519 support)
- Platform authenticator (device fingerprint sensor)
License
MIT
