UNPKG

@iota-big3/sdk-security

Version:

Advanced security features including zero trust, quantum-safe crypto, and ML threat detection

40 lines 1.41 kB
/** * @iota-big3/sdk-security - Clean Quantum Safe * Minimal quantum-safe cryptography implementation */ import { EventEmitter } from 'events'; import type { QuantumSafeConfig } from './types'; export declare class QuantumSafeManager extends EventEmitter { readonly isEnabled: boolean; private config; private keyPairs; private isInitialized; constructor(config: QuantumSafeConfig); initialize(): Promise<void>; private initializeAlgorithm; generateKeyPair(id: string): Promise<QuantumKeyPair>; encrypt(data: string, publicKeyId: string): Promise<string>; decrypt(encryptedData: string, privateKeyId: string): Promise<string>; sign(data: string, privateKeyId: string): Promise<string>; verify(data: string, signature: string, publicKeyId: string): Promise<boolean>; getKeyPair(id: string): QuantumKeyPair | undefined; getKeyPairs(): QuantumKeyPair[]; removeKeyPair(id: string): boolean; private generateMockKey; shutdown(): Promise<void>; getStats(): { isInitialized: boolean; keyPairsCount: number; algorithm: "KYBER" | "DILITHIUM" | "SPHINCS" | "FALCON"; keySize: number; isEnabled: boolean; }; } export interface QuantumKeyPair { id: string; algorithm: string; publicKey: string; privateKey: string; timestamp: number; } //# sourceMappingURL=quantum-safe.d.ts.map