You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-desktop/js/modules
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
..
migrations Prekeys sending: first pass (#12) 7 years ago
types Copy quoted message contents into quote on receipt 7 years ago
views Show and log progress during the SQLCipher migration 7 years ago
.eslintrc Auto-fixes: UX Improvements (#2077) 7 years ago
auto_orient_image.js Format all source code using Prettier 7 years ago
backup.js backup.js: Remove references to nonexistent i18n strings 7 years ago
crypto.js Format all source code using Prettier 7 years ago
data.js data/removeMessage: no need for additional model instantiation 7 years ago
database.js Format all source code using Prettier 7 years ago
debug.js Set disappearing check timer reliably - on all message saves 7 years ago
debuglogs.js Log clear error if we fail to retrieve debug log upload key 7 years ago
deferred_to_promise.d.ts Let's make it all pretty, shall we? 7 years ago
deferred_to_promise.js Extract `deferredToPromise` 7 years ago
i18n.js Use window.log in browser context, turn on console eslint rule 7 years ago
idle_detector.js Use window.log in browser context, turn on console eslint rule 7 years ago
logs.js Refactor: db tasks to database.js, log delete to modules/logs.js 7 years ago
loki_message_api.js Client side proof of work attached to messages 7 years ago
messages_data_migrator.js Show and log progress during the SQLCipher migration 7 years ago
migrate_to_sql.js Move all arrayBuffer<->base64 functions to be async 7 years ago
privacy.js Remove newlines from group IDs 7 years ago
settings.js Show and log progress during the SQLCipher migration 7 years ago
signal.js Migrate to SQLCipher for messages/cache 7 years ago
sleep.js Format all source code using Prettier 7 years ago
startup.js Format all source code using Prettier 7 years ago
string_to_array_buffer.js Format all source code using Prettier 7 years ago
web_api.js Accomodate for upcoming signature in websocket connection header 7 years ago