14.0.0 • Published 2 years ago
@tkey-singularity/torus-storage v14.0.0
tKey Chrome Storage Module
The tKey Server Storage Module helps you store and recall key shares in the server. This module is the part of the tKey SDK.
Installation
npm install --save @tkey/server-storageInitialization
Import the ServerStorageModule class from @tkey/server-storage
import ServerStorageModule from "@tkey/server-storage";Assign the ServerStorageModule class to a variable
const serverStorageModule = new ServerStorageModule();Returns
The ChromeExtensionStorageModule class returns an object with the following properties:
class ServerStorageModule implements IModule {
moduleName: string;
tbSDK: ITKeyApi;
constructor();
setModuleReferences(tbSDK: ITKeyApi): void;
initialize(): Promise<void>;
storeWebShare(deviceShareStore: ShareStore, customDeviceInfo?: StringifiedType): Promise<void>;
}