Commit Graph

24 Commits (1023ea173287ba49ee0cea9856e97749aefc6ea4)

Author SHA1 Message Date
lilia 1023ea1732 Refactor textsecure.protos -> textsecure.protobuf
DRY up protobuf declarations and move to a slightly briefer naming
convention.

Also dropped some ArrayBuffer -> string conversions as
ProtoBuf.js handles ArrayBuffers just fine, and in fact, more
efficiently than strings.

Finally, dropped the btoa() wrappers, because that incurs an extra
string -> string conversion before the protobuf's internal string ->
array buffer conversion. In lieu of btoa, we can simply pass in the
optional string encoding argument to the protobuf's decode method,
which in these cases should be 'binary'.

Related: #17
11 years ago
Matt Corallo 5e3b7e9db8 Add missing blanket-js file 11 years ago
Matt Corallo d9f53d4c01 Fix not-allowed inline scripts error 11 years ago
Matt Corallo a6b0d1f84b Add entirely untested secondary device init 11 years ago
lilia 2751d0e884 Such tests. Very mocha. Much chai. Amaze!!!
ERHMAGERRRD testing frameworks are so the best. Removed all our custom
code for ensuring test exclusivity and doneness and isolating callbacks
and everything. mocha does it all for us, and makes it pretty.

Also rather than return a long chain of promises that eventually resolve
to truthiness, we now use chai to make assertions about what is good and
right in the world.

Recommended reading:
  https://visionmedia.github.io/mocha
  http://chaijs.com/api/assert/
11 years ago
Matt Corallo 0088721343 Move AXOLOTL test vectors to js/testvectors.js 11 years ago
Matt Corallo 28d1f370cd mkdir nacl 11 years ago
Marco 13a9329bcf improved number validation (based on google's libphonenumber) 11 years ago
Matt Corallo 6ae95107c0 Merge pull request #47 from rpicard/minify-deps
Minify CryptoJS dependencies with uglify-js
11 years ago
Matt Corallo d0fd3e94d8 sendMessage refactor, initial group stuff (breaks message storage) 11 years ago
Robert Picard 2d700e2104 Covert spaces to tabs 11 years ago
Robert Picard f13d47360a Update dependencies in popup.html and test.html 11 years ago
Matt Corallo cf35b7056f Retry API, standardize <script> list 11 years ago
Matt Corallo c2d1d816f2 Save sessions in deviceObjects, test using fake_api, minor tweaks 11 years ago
Matt Corallo 05101b69b0 Some initial helpers.js namespaceing 11 years ago
Matt Corallo 905357a2e1 More wholesale conversion to promises 11 years ago
lilia 41d50d7480 Lilia's Webcrypto branch rebased and a few very tiny tweaks 11 years ago
Matt Corallo 3e60368a16 LGPL license (I'd like to be an axolotl/TS JS lib in the future) 11 years ago
Matt Corallo 136a8941c1 Things:
* key API changes moxie made because he disliked the other API
 * remove atmosphere
 * Fix some bugs in the send path, update for new send API
 * Send HTML
11 years ago
Matt Corallo b8357a6464 Unmiified js files, mostly 11 years ago
Matt Corallo fee6a69083 Optional curve25519 in js 11 years ago
Matt Corallo 8db3885659 Updates, NaCL 11 years ago
Matt Corallo eec4c66ef6 Fixup dir structure 11 years ago
Matt Corallo 4595ad0fc4 moar stuff 11 years ago