UNPKG

@kya-os/mcp-i

Version:

COMING SOON:Production-ready MCP Identity with automatic registration, key rotation, and optimized performance

17 lines (16 loc) 956 B
export interface PrecomputedKeyPair { publicKey: string; privateKey: string; publicKeyBytes?: Uint8Array; privateKeyBytes?: Uint8Array; } export declare function generateKeyPair(): Promise<PrecomputedKeyPair>; export declare function sign(message: string | Buffer, privateKeyBase64: string): Promise<string>; export declare function verify(message: string | Buffer, signatureBase64: string, publicKeyBase64: string): Promise<boolean>; export declare function generateNonce(length?: number): Promise<string>; export declare function generateNonceSync(length?: number): string; export declare function constantTimeEqual(a: string, b: string): boolean; export declare function publicKeyToDid(publicKeyBase64: string): string; export declare function encrypt(data: string, password: string): Promise<string>; export declare function decrypt(encryptedData: string, password: string): Promise<string>; export declare function clearCache(): void;