refactor: run exchangeCommunicationKeys inside setLoginKey
This commit is contained in:
parent
c6bcf9a7a5
commit
b1fa47d1e6
|
@ -31,6 +31,7 @@ export async function exchangeCommunicationKeys() {
|
|||
}
|
||||
|
||||
export async function setLoginKey(key: Uint8Array) {
|
||||
await exchangeCommunicationKeys();
|
||||
const privKey = getCommunicationKey();
|
||||
const pubKey = getRemoteCommunicationKey();
|
||||
|
||||
|
|
|
@ -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(() => {
|
||||
|
|
Reference in New Issue