whalibmob 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/Store.js CHANGED
@@ -36,7 +36,7 @@ function generateKeyPair() {
36
36
  }
37
37
 
38
38
  // Sign message with X25519 private key using curve25519-js XEdDSA
39
- // message should be the 33-byte public key (with 0x05 prefix) per libsignal-node convention
39
+ // message should be the 33-byte public key (with 0x05 prefix) per Signal protocol convention
40
40
  function sign(privKey32, message) {
41
41
  return Buffer.from(curveJs.sign(privKey32, message));
42
42
  }
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const crypto = require('crypto');
4
- const libsignal = require('@whiskeysockets/libsignal-node');
4
+ const libsignal = require('./libsignal');
5
5
  const { SignalStore } = require('./SignalStore');
6
6
  const { SenderKeyStore, SenderKeyCrypto } = require('./SenderKey');
7
7
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
- const { SessionRecord } = require('@whiskeysockets/libsignal-node');
5
+ const { SessionRecord } = require('./libsignal');
6
6
 
7
7
  class SignalStore {
8
8
  constructor() {