decrypt/encrypt with libsignal-client, remove libsignal-protocol-javascript
This commit is contained in:
parent
37ff4a1df4
commit
86d2a4b5dd
60 changed files with 2508 additions and 28714 deletions
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2015-2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
/* global libsignal, textsecure */
|
||||
/* global textsecure */
|
||||
|
||||
describe('Key generation', function thisNeeded() {
|
||||
const count = 10;
|
||||
|
@ -43,11 +43,10 @@ describe('Key generation', function thisNeeded() {
|
|||
});
|
||||
}
|
||||
|
||||
before(() => {
|
||||
before(async () => {
|
||||
localStorage.clear();
|
||||
return libsignal.KeyHelper.generateIdentityKeyPair().then(keyPair =>
|
||||
textsecure.storage.protocol.put('identityKey', keyPair)
|
||||
);
|
||||
const keyPair = window.Signal.Curve.generateKeyPair();
|
||||
await textsecure.storage.protocol.put('identityKey', keyPair);
|
||||
});
|
||||
|
||||
describe('the first time', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue