UNPKG

@bajetech/digitalbits-wallet-sdk

Version:

A library to make it easier to write wallets that interact with the DigitalBits blockchain

22 lines (21 loc) 608 B
import { EncryptedKey } from "../types"; export interface LocalStorageConfigParams { prefix?: string; storage: Storage; } /** * Facade for `LocalStorageKeyStore` encapsulating the access to the actual * local storage */ export declare class LocalStorageFacade { private storage; private prefix; constructor(); configure(params: LocalStorageConfigParams): void; hasKey(id: string): boolean | null; getKey(id: string): any; setKey(id: string, key: EncryptedKey): void | null; removeKey(id: string): void | null; getAllKeys(): EncryptedKey[]; private check; }