signalapp / libsignal

Home to the Signal Protocol as well as other cryptographic primitives which make Signal possible.
GNU Affero General Public License v3.0
3.06k stars 362 forks source link

Recommended method to save state #487

Closed seanieb closed 1 year ago

seanieb commented 1 year ago

Is the current best practice to save session state, key state, etc. to just serialize it or blob it, and store it in something like a SQLCipher database? I assume anything else would be far too brittle? Or am I missing something?

jrose-signal commented 1 year ago

That's what all of Signal's client apps do, yes, at least for session state. It's not totally out of the question to try to store state field-by-field, but you could run into trouble if we ever needed to add something to the format.

seanieb commented 1 year ago

Thanks!