UNPKG

@neabyte/quantum-zkp

Version:

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

31 lines (30 loc) 1.28 kB
import type { HybridProof, ProofParameters, AlgorithmType } from '../types/index.js'; export declare class HybridZKP { private static readonly VERSION; private static readonly DEFAULT_ALGORITHMS; private static readonly DEFAULT_WEIGHTS; static createProof(secret: Buffer | string, parameters?: Partial<ProofParameters>): HybridProof; static verifyProof(proof: HybridProof): boolean; private static generateComponentProofs; private static createHybridCommitment; private static generateHybridChallenge; private static createHybridResponse; private static combineProofs; private static verifyComponentProof; private static verifyHybridCommitment; private static verifyZeroKnowledge; private static verifyCombinedProof; private static validateProofStructure; static createOptimizedProof(secret: Buffer | string, algorithms?: AlgorithmType[]): HybridProof; static createMaximumSecurityProof(secret: Buffer | string): HybridProof; static getPerformanceMetrics(): { generationTime: number; verificationTime: number; proofSize: number; }; static getSecurityLevel(): { quantumResistant: boolean; classicalSecurity: number; quantumSecurity: number; }; }