update safe storage store

This commit is contained in:
Abhinav 2022-07-11 01:59:17 +05:30
parent 73c3f8c45a
commit 8653867178
2 changed files with 3 additions and 5 deletions

View file

@ -45,13 +45,11 @@ export const safeStorageSchema: Schema<SafeStorageStoreType> = {
type: 'object',
properties: {
encryptedData: { type: 'string' },
key: { type: 'string' },
nonce: { type: 'string' },
},
},
};
export const safeStorage = new Store({
export const safeStorageStore = new Store({
name: 'safeStorage',
schema: safeStorageSchema,
});

View file

@ -32,12 +32,12 @@ export const FILE_PATH_KEYS: {
[FILE_PATH_TYPE.FILES]: 'filePaths',
};
interface KeyAttributes {
export interface KeyAttributes {
encryptedData: string;
key: string;
nonce: string;
}
export interface SafeStorageStoreType {
encryptionKey: KeyAttributes;
encryptionKey: string;
}