1,743 Tests. Every One Passing.
Comprehensive test coverage across post-quantum cryptography, homomorphic encryption, zero-knowledge proofs, biometric auth, API endpoints, infrastructure, and memory safety.
Module Breakdown
Post-Quantum Cryptography
Dilithium, Kyber, hybrid key exchange, OCR encrypt
873 tests
✓
▶
Full coverage of Dilithium sign/verify (ML-DSA-65), Kyber encaps/decaps (ML-KEM-1024), hybrid X25519+Kyber key exchange, and OCR encrypt/decrypt (Kyber+AES-256-GCM+Dilithium). Includes NIST test vectors and edge cases for malformed inputs, zero-length messages, maximum-length payloads, and key serialization roundtrips.
API
REST endpoints, auth flows, rate limiting, webhook handlers
289 tests
✓
▶
Authentication endpoints, rate limiting, webhook processing, error handling, CORS policy enforcement, JWT validation, and session management. Covers both happy-path and failure scenarios including expired tokens, malformed requests, and concurrent session limits.
Fully Homomorphic Encryption
BFV encrypt/decrypt, NTT, CKKS, Galois rotation, SIMD
163 tests
✓
▶
BFV encrypt/decrypt roundtrip, NTT forward/inverse consistency, Montgomery multiplication correctness, CKKS approximate arithmetic, Galois rotation, SIMD batch operations, and noise budget tracking. Validates domain conventions (secret key in NTT form, ciphertexts in coefficient form) across all operations.
Zero-Knowledge Proofs
STARK lookup, Groth16, PLONK, recursive proofs
121 tests
✓
▶
STARK lookup table construction, Groth16 proof generation/verification, PLONK arithmetization, recursive proof composition, and constraint satisfaction checks. Includes soundness tests ensuring invalid proofs are rejected and completeness tests for all supported circuit types.
Biometric Authentication
Encrypted matching, template enrollment, batch verify
97 tests
✓
▶
Encrypted Euclidean distance computation, template enrollment, batch verify for 1-32 users, false acceptance/rejection rate validation, and constant-time verification. Tests ensure biometric matching operates entirely on encrypted data with no plaintext exposure.
Infrastructure
Redis, PostgreSQL, load balancing, health checks
97 tests
✓
▶
Redis connection pooling and cache invalidation, PostgreSQL query correctness, health check endpoints, load balancer routing under various traffic patterns, and graceful shutdown behavior. Validates that infrastructure components handle failure modes and recovery correctly.
Miri Memory Safety
Memory safety, undefined behavior detection
43 tests
✓
▶
Pointer validity, uninitialized memory access, data race detection, and undefined behavior in unsafe blocks. Miri interprets MIR at compile time to catch classes of bugs that standard tests cannot, ensuring all unsafe code is sound.
STARK Lookup
LogUp protocol, Merkle commitments, multiplicity tracking
28 tests
✓
▶
STARK lookup table construction, LogUp running sum computation, Merkle tree commitments (binary and arity-8), multiplicity counting, precomputed table validation, and Schwartz-Zippel security analysis. Includes property-based tests for field arithmetic and determinism.
Node.js Integration
E2E tests, webhook handlers, SDK tests
75 tests
✓
▶
End-to-end integration tests across the Node.js layer including webhook handlers, SDK client tests, authentication flows, and serverless function validation. Covers Netlify function deployment, API proxy routing, and cross-service communication.
Reproduce
Clone the repository and run any of these commands to verify.
# Run all 1,743 tests cargo test --release # Run specific module cargo test --release pqc:: cargo test --release fhe:: cargo test --release zkp:: # Run with Miri (memory safety) cargo +nightly miri test