Beaudan
dfa8b59bc3
Using let and const properly, updated number to uint function, general cleaning
7 years ago
Beaudan
ee57c698d7
Client side proof of work attached to messages
...
Skeleton calcPoW function that prepares payload for hashingFunction to increment Uint8Array nonce
Util function for converting a number to its Uint8Array representation
Actually perform calculate PoW nonce for every message
Adding bytebuffer as dependency and updated package-lock
Move PoW to new file and execute it in child process
TODO: Move send message logic to callback after child process has finished calculating the PoW
Refactored nonce calculation to function to be awaited
More readable timestamp grab plus converted to seconds
Nonce is now returned as a base64 string and included in request header
Also converted timestamp and ttl to string when including them in the header
Added a couple comments and tidied up some nonce logic
7 years ago
sachaaaaa
886f47b8e7
Prekeys sending: first pass ( #12 )
...
* add 'recipient' attribute in prekey database to allow binding a prekey to a recipient pub key
* Attach a PreKeyBundleMessage to the ContentMessage in fallback encryption mode
* Skip generating 100 prekeys upon registration
* Store the signed key signature in database
7 years ago
sachaaaaa
54201d6665
fix bad merge: missing FallBackDecryptionError
7 years ago
sachaaaaa
eb488f9305
fix bad merge in libloki-protocol
7 years ago
sachaaaaa
b432700fe8
Merge pull request #11 from sachaaaaa/key_exchange_status
...
Change keysPending flag to keyExchangeCompleted in conversation model
7 years ago
sachaaaaa
d5ef0cfb03
Revert changes and rename keysPending to keyExchangeCompleted
7 years ago
sachaaaaa
377ee009c4
Merge pull request #10 from sachaaaaa/ignore_failed_decryption_messages
...
Ignore friend request messages that couldn't be decrypted
7 years ago
sachaaaaa
ecd300d68d
Change keysPending flag to keyExchangeStatus in conversation model
7 years ago
sachaaaaa
0283c6428f
Ignore friend request messages that could not be decrypted
7 years ago
sachaaaaa
583fb2e6c6
Merge pull request #8 from sachaaaaa/send_as_bytes
...
Send outgoing messages as bytes
7 years ago
sachaaaaa
9677f8b648
Merge branch 'development' into send_as_bytes
7 years ago
sachaaaaa
b52dac98b7
Merge pull request #7 from sachaaaaa/fallback_decrypt
...
Decrypt "friend request" messages using fallback encryption. Move logic into libloki.js
7 years ago
sachaaaaa
be29ea725a
revert libsignal-protocol and convert binary-encoded string to Uint8Array later down the line
7 years ago
sachaaaaa
54e238dee8
changed mock http server to display received bytes
7 years ago
sachaaaaa
6fe70b9b85
Send outgoing messages as raw bytes (Uint8Array) and moved recipient & ttl to header
7 years ago
sachaaaaa
6d84eb69e7
upgrade node-fetch to 2.2.0
7 years ago
sachaaaaa
9da4e94276
print outgoing messages as bytes, that can be injected in the mock socket server for debugging
7 years ago
sachaaaaa
60b54d59c9
update mock socket server to send friend-request message (fallback encryption)
7 years ago
sachaaaaa
04b45f6aa1
Decrypt friend-request messages (the ones using fallback encryption). Moved logic into a new file libloki-protocol.js and concat loki code into js/libloki.js
7 years ago
sachaaaaa
5e9f4177ff
style nits
7 years ago
sachaaaaa
826bbe9631
Merge pull request #6 from sachaaaaa/development
...
Reconcile incoming and outgoing messages
7 years ago
sachaaaaa
d6954aa91c
Wrap outgoing message in a WebSocketMessage proto object to match incoming format
7 years ago
sachaaaaa
38e6272dc6
Use async/await in addMockContact instead of nested promises
7 years ago
sachaaaaa
42e941531f
Add fallback encryption (FallBackSessionCipher. simple DH) for when key bundle hasn't been received yet. Skip padding of bytes.
7 years ago
sachaaaaa
905e2c1ba6
mock socket server to send keepalive as well as mock messages
7 years ago
sachaaaaa
ac92d53e14
display mock contact priv key for debugging
7 years ago
sachaaaaa
81f8ef0adb
Update mock socket server to send a hello world message!
7 years ago
sachaaaaa
e81e253ccf
temporarily disable decryption and unpadding of incoming messages
7 years ago
sachaaaaa
d8bef6041d
Change mock socket server to send fake message
7 years ago
sachaaaaa
6b998d79a7
Fix message_receiver not able to convert ArrayBuffer to stringBase64 in addToCache
7 years ago
sachaaaaa
2631d195fd
allow generating a mock contact via console without saving its key bundle
7 years ago
sachaaaaa
d521795cf8
add helper to set the keysPending flag for a discussion
7 years ago
sachaaaaa
22a86b5351
store key bundle status in conversation model
7 years ago
sachaaaaa
33ad509fbf
Merge branch 'master' of https://github.com/signalapp/Signal-Desktop into development
...
# Conflicts:
# _locales/ar/messages.json
# _locales/es_419/messages.json
# _locales/he/messages.json
# _locales/hi/messages.json
# _locales/hr/messages.json
# _locales/kn/messages.json
# _locales/ko/messages.json
# _locales/mk/messages.json
# _locales/sr/messages.json
# _locales/uk/messages.json
# _locales/vi/messages.json
# package.json
7 years ago
Scott Nonnenberg
e8983ea4a4
v1.16.2
7 years ago
Scott Nonnenberg
4760b8115c
Merge tag 'v1.16.2-beta.2'
7 years ago
Scott Nonnenberg
8cd3db0262
v1.16.2-beta.2
7 years ago
Scott Nonnenberg
c13b91a790
Update linter exceptions after update
7 years ago
Scott Nonnenberg
79ebec36ca
v1.16.2-beta.1
7 years ago
Scott Nonnenberg
979afad47a
Localization string updates
7 years ago
Scott Nonnenberg
48d937b66a
Follow symlinks on target file path as well as user/config paths
7 years ago
Scott Nonnenberg
3464eb65b8
Keep conversation.lastMessage in memory
7 years ago
Scott Nonnenberg
ecb126e74c
Custom linter to check code quality ( #2753 )
7 years ago
Scott Nonnenberg
a3b6f3ddce
v1.16.1
7 years ago
Scott Nonnenberg
03f81dea5a
Merge tag 'v1.16.1-beta.2'
7 years ago
Scott Nonnenberg
366401f77a
v1.16.1-beta.2
7 years ago
Scott Nonnenberg
814b9cf26a
Only accept 'you left group' messages when group blocked
7 years ago
Scott Nonnenberg
c2e0ec5636
Group Blocking: Allow group metadata messages from own devices
7 years ago
Scott Nonnenberg
9c399624cc
Support for blocking groups on mobile, via group/blocked syncs
7 years ago