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.
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 | |
---|---|---|
.. | ||
models | 11 years ago | |
views | 11 years ago | |
api.js | 11 years ago | |
background.js | 11 years ago | |
chromium.js | 11 years ago | |
crypto.js | 11 years ago | |
fake_api.js | 11 years ago | |
helpers.js | 11 years ago | |
libphonenumber-util.js | 11 years ago | |
options.js | 11 years ago | |
popup.js | 11 years ago | |
protobufs.js | 11 years ago | |
sendmessage.js | 11 years ago | |
test.js | 11 years ago | |
testvectors.js | 11 years ago | |
webcrypto.js | 11 years ago |