From b42e96c31b155588c446e9af347d312ad89cad87 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Fri, 30 Oct 2020 09:38:27 +1100 Subject: [PATCH] store the ed25519KeyPair temp key too on storage under 'identityKey' --- main.js | 1 + ts/window.d.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index b3b7009c6..34d787489 100644 --- a/main.js +++ b/main.js @@ -1201,6 +1201,7 @@ async function sessionGenerateKeyPair(event, seed) { const x25519KeyPair = { pubKey: prependedX25519PublicKey.buffer, privKey: x25519SecretKey.buffer, + ed25519KeyPair, }; // null as first parameter to indivate no error diff --git a/ts/window.d.ts b/ts/window.d.ts index adf623f13..3898eb869 100644 --- a/ts/window.d.ts +++ b/ts/window.d.ts @@ -99,6 +99,8 @@ declare global { GroupBuffer: any; SwarmPolling: SwarmPolling; owsDesktopApp: any; - sessionGenerateKeyPair: (seed: ArrayBuffer) => Promise<{ pubKey: ArrayBufferLike; privKey: ArrayBufferLike; }>; + sessionGenerateKeyPair: ( + seed: ArrayBuffer + ) => Promise<{ pubKey: ArrayBufferLike; privKey: ArrayBufferLike }>; } }