update safe storage store
This commit is contained in:
parent
73c3f8c45a
commit
8653867178
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue