Open eduardosan opened 8 years ago
Hi Eduard, Can you write here your implementation of Store.js ? We are also trying to implement and having some problems in storing keys in chrome storage
@eduardosan The documentation is a little out of date, sorry about that.
Check out the source. Here's the JSDoc:
/**
* Unwrap the WhisperMessage from a PreKeyWhisperMessage and attempt to decrypt it using session. If a session does
* not already exist, it will be created.
*
* @method
* @param {Session} session - a session, if one exists, or null otherwise.
* @param {ArrayBuffer} preKeyWhisperMessageBytes - the encrypted message bytes
* @returns {Promise.<Object, InvalidMessageException>} an object containing the decrypted message and a new session
*/
I changed the API so that Axolotl itself is stateless and you need to explicitly pass in a session
object. You'll get a new session in the response, which should replace the one that was passed in.
As mentioned in #14 I think the documentation could use some improvements.
Hi, I'm trying to use axolotl to open an encrypted message and I believe I'm missing something. I have created a class that implements store interface with all the mandatory methods. The axolotl is used like this:
This class is called by another one later like this:
Then I use it to unencrypt and incoming pkmsg like this:
The problem is: nothing happens when I call decryptPreKeyWhisperMessage. It does not write anything to log, neither show any error messages. Can you tell me what am I missing? How can I debug decryptPreKeyWhisperMessage?