wip: new import account

This commit is contained in:
2023-10-15 16:10:16 +07:00
parent 620e763380
commit cd3b9ada5a
13 changed files with 430 additions and 418 deletions

View File

@@ -19,13 +19,11 @@ export class LumeStorage {
}
public async secureSave(value: string, key?: string) {
return await invoke('secure_save', { key: this.account.pubkey ?? key, value });
return await invoke('secure_save', { key, value });
}
public async secureLoad(key?: string) {
const value: string = await invoke('secure_load', {
key: this.account.pubkey ?? key,
});
const value: string = await invoke('secure_load', { key });
return value;
}