Обновление архитектуры ключей и кошельков

This commit is contained in:
AidarKC
2026-10-01 17:11:38 +03:00
parent f452ce1f1e
commit 8d22602761
51 changed files with 565 additions and 898 deletions
+3 -12
View File
@@ -95,18 +95,9 @@ async function completeRegistrationLogin({ navigate, keyBundle }) {
state.registrationDraft.password,
);
state.keyStorage.saveRoot = Boolean(state.keyStorage.saveRoot);
state.keyStorage.saveBlockchain = Boolean(state.keyStorage.saveBlockchain);
await authService.persistSelectedKeys(
result.login,
result.storagePwd,
keyBundle,
{
saveRoot: state.keyStorage.saveRoot,
saveBlockchain: state.keyStorage.saveBlockchain,
},
);
// После регистрации оба рабочих ключа сохраняются автоматически.
// Приватный Recovery/root key не записывается на устройство.
await authService.persistSelectedKeys(result.login, result.storagePwd, keyBundle);
await authService.persistSessionMaterial(result.login, result.sessionMaterial);
await clearStoredMessages(state.registrationDraft.login).catch(() => {});