UNPKG

@shard-auth/client

Version:

Next-generation API authentication without secret keys - MPC-based authentication with FROST threshold signatures

29 lines 799 B
import { ShareA } from '../types'; interface SecureStorageOptions { password?: string; } /** * シェアの安全な保存・読み込みを行うクラス * * @example * ```typescript * // ファイルベースのストレージ * const storage = new SecureStorage('./share.key', { * password: 'strong-password' * }); * * // 環境変数からの読み込み * const storage = SecureStorage.fromEnvironment(); * ``` */ export declare class SecureStorage { private storagePath?; private options; private shareData?; constructor(storagePath?: string, options?: SecureStorageOptions); static fromEnvironment(): SecureStorage; saveShare(share: ShareA): Promise<void>; loadShare(): Promise<ShareA>; } export {}; //# sourceMappingURL=secure-storage.d.ts.map