libaxolotl-javascript icon indicating copy to clipboard operation
libaxolotl-javascript copied to clipboard

reference Store implementation

Open urandom2 opened this issue 9 years ago • 3 comments

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?

urandom2 avatar Nov 06 '15 06:11 urandom2

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 avatar Dec 30 '15 11:12 joebandenburg

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. :-)

joebandenburg avatar Dec 30 '15 11:12 joebandenburg

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?!

chpio avatar Mar 17 '16 14:03 chpio