update libsignal + no dependency on proto files + no native deps

This commit is contained in:
Adhiraj Singh
2021-10-13 17:42:48 +05:30
parent d3b7ffecf2
commit 3f6bd2ad84
7 changed files with 1733 additions and 46 deletions

View File

@@ -1,13 +1,3 @@
const path = require('path');
const protobuf = require('protobufjs');
const { groupproto } = require('./GroupProtocol')
const protodir = path.resolve(__dirname);
const group = protobuf.loadSync(path.join(protodir, 'group.proto')).lookup('groupproto');
module.exports = {
SenderKeyDistributionMessage: group.lookup('SenderKeyDistributionMessage'),
SenderKeyMessage: group.lookup('SenderKeyMessage'),
SenderKeyStateStructure: group.lookup('SenderKeyStateStructure'),
SenderChainKey: group.lookup('SenderChainKey'),
SenderSigningKey: group.lookup('SenderSigningKey'),
};
module.exports = groupproto