store the ed25519KeyPair temp key too on storage under 'identityKey'

pull/1385/head
Audric Ackermann 4 years ago
parent 1f2c01722a
commit b42e96c31b
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -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

4
ts/window.d.ts vendored

@ -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 }>;
}
}

Loading…
Cancel
Save