refactor: run exchangeCommunicationKeys inside setLoginKey

This commit is contained in:
Derrick Hammer 2023-08-04 11:27:44 -04:00
parent c6bcf9a7a5
commit b1fa47d1e6
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
2 changed files with 1 additions and 1 deletions

View File

@ -31,6 +31,7 @@ export async function exchangeCommunicationKeys() {
}
export async function setLoginKey(key: Uint8Array) {
await exchangeCommunicationKeys();
const privKey = getCommunicationKey();
const pubKey = getRemoteCommunicationKey();

View File

@ -127,7 +127,6 @@ export default function App() {
const seed = await bip39.mnemonicToSeed(wordSeed);
const key = HDKey.fromMasterSeed(seed).derive(BIP44_PATH);
await exchangeCommunicationKeys();
await setLoginKey(key.privateKey);
window.setTimeout(() => {