joebandenburg / libaxolotl-javascript

A JavaScript implementation of axolotl. Axolotl is a ratcheting forward secrecy protocol.
GNU Lesser General Public License v3.0
75 stars 13 forks source link

reference Store implementation #11

Open urandom2 opened 9 years ago

urandom2 commented 9 years ago

I am working on using libaxolotl in my project Grd Me and as a beginner at JS, I feel uncertain about my Store implementation. I totally understand separating the store code from libaxolotl, as per #6, but would you be willing to submit a reference Store implementation that others can build off of?

joebandenburg commented 8 years ago

Hi, the Store interface should be fairly easy to implement. I've created an implementation in "Xolotl", a Chrome app I was developing that uses my implementation of libtextsecure-javascript.

In that app, I store the keys in the Browser's IndexedDb. It's just a key-value store where the key is the id passed into the function from libaxolotl.

joebandenburg commented 8 years ago

You should also look at the implementation of libtextsecure-javascript, which is the complete implementation of the TextSecure protocol. Using libaxolotl by itself requires a deeper understanding of how TextSecure and Axolotl interact. TextSecure.js is probably a good place to start. :-)

chpio commented 8 years ago

but there are no put/set methods in the interface, but you defined them in xolotl. I could not understand why the Store Interface is readonly, but i think it's just incomplete?!