UNPKG

eth-janus

Version:

Indirection service

30 lines (29 loc) 1.09 kB
import { IStorageProvider } from "../interfaces/istorage-provider"; import { OnetimeKey } from "../common/models"; export declare class FileStorageProvider implements IStorageProvider { private onetimeKeyPathMap; private onetimeKeysMap; constructor(); storeOnetimeKeyMap(txnRef: string, networkId: string, partyKeyMap: Array<{ partyName: string; onetimeKey: OnetimeKey; }>): Promise<void>; readOnetimeKeyMap(txnRef: string, networkId: string): Promise<{ txnRef: string; networkId: string; partyKeyMap: Array<{ partyName: string; onetimeKey: OnetimeKey; }>; }>; storeOnetimeKeyPath(txnRef: string, networkId: string, onetimeAddress: string, onetimePublicKey: string, derivedPath: string): Promise<void>; readOnetimeKeyPath(txnRef: string, networkId: string): Promise<{ txnRef: string; networkId: string; onetimeAddress: string; onetimePublicKey: string; derivedPath: string; }>; private buildKey; } export default FileStorageProvider;