UNPKG

@neabyte/quantum-zkp

Version:

Educational quantum-resistant zero-knowledge proof library for learning and prototyping

30 lines (29 loc) 1.14 kB
import type { LatticeProof, ProofParameters } from '../types/index.js'; export declare class LatticeZKP { private static readonly DEFAULT_DIMENSION; private static readonly DEFAULT_BITS; private static readonly DEFAULT_ERROR_BOUND; private static readonly VERSION; static createProof(secret: Buffer | string, parameters?: Partial<ProofParameters>): LatticeProof; static verifyProof(proof: LatticeProof): boolean; private static createLWECommitment; private static generateLWEChallenge; private static createLWEResponse; private static verifyLWEEquation; private static verifyPolynomialCommitment; private static verifyZeroKnowledge; private static createPolynomialCommitment; private static generatePolynomialCoefficients; private static polynomialHash; private static validateProofStructure; static getPerformanceMetrics(): { generationTime: number; verificationTime: number; proofSize: number; }; static getSecurityLevel(): { quantumResistant: boolean; classicalSecurity: number; quantumSecurity: number; }; }