SHA256
Миграция PDA на client.key
This commit is contained in:
@@ -42,11 +42,11 @@ export function render({ navigate }) {
|
||||
}
|
||||
const savedKeys = await loadEncryptedUserSecrets(state.session.login, state.session.storagePwdInMemory);
|
||||
const keys = {
|
||||
deviceKey: savedKeys.deviceKey || '',
|
||||
clientKey: savedKeys.clientKey || '',
|
||||
blockchainKey: state.deviceConnect.blockchain ? (savedKeys.blockchainKey || '') : '',
|
||||
rootKey: state.deviceConnect.root ? (savedKeys.rootKey || '') : '',
|
||||
};
|
||||
if (!keys.deviceKey) throw new Error('На этом устройстве нет device key');
|
||||
if (!keys.clientKey) throw new Error('На этом устройстве нет client key');
|
||||
|
||||
const qrText = makeKeyTransferText({ login: state.session.login, keys });
|
||||
qrEl.innerHTML = renderQrSvg(qrText);
|
||||
|
||||
Reference in New Issue
Block a user