|
|
@ -68,7 +68,9 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
libsignal.KeyHelper.generateIdentityKeyPair().then(keyPair => {
|
|
|
|
libsignal.KeyHelper.generateIdentityKeyPair().then(keyPair => {
|
|
|
|
const pubKey = StringView.arrayBufferToHex(keyPair.pubKey);
|
|
|
|
const pubKey = StringView.arrayBufferToHex(keyPair.pubKey);
|
|
|
|
|
|
|
|
const privKey = StringView.arrayBufferToHex(keyPair.privKey);
|
|
|
|
log.info('contact pubkey ' + pubKey);
|
|
|
|
log.info('contact pubkey ' + pubKey);
|
|
|
|
|
|
|
|
log.info('contact privkey ' + privKey);
|
|
|
|
const signedKeyId = Math.floor((Math.random() * 1000) + 1);
|
|
|
|
const signedKeyId = Math.floor((Math.random() * 1000) + 1);
|
|
|
|
const promises = [
|
|
|
|
const promises = [
|
|
|
|
libsignal.KeyHelper.generateSignedPreKey(keyPair, signedKeyId)
|
|
|
|
libsignal.KeyHelper.generateSignedPreKey(keyPair, signedKeyId)
|
|
|
|