store the ed25519KeyPair temp key too on storage under 'identityKey'
This commit is contained in:
parent
1f2c01722a
commit
b42e96c31b
1
main.js
1
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
|
||||
|
|
|
@ -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…
Reference in New Issue