Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommended method to save state #487

Closed
seanieb opened this issue Sep 6, 2022 · 2 comments
Closed

Recommended method to save state #487

seanieb opened this issue Sep 6, 2022 · 2 comments

Comments

@seanieb
Copy link

seanieb commented Sep 6, 2022

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
Copy link
Contributor

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
Copy link
Author

seanieb commented Sep 6, 2022

Thanks!

@seanieb seanieb closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants