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

Device Dehydration: Cache the dehydration key #4186

Closed
3 tasks
BillCarsonFr opened this issue Oct 30, 2024 · 0 comments · Fixed by #4383
Closed
3 tasks

Device Dehydration: Cache the dehydration key #4186

BillCarsonFr opened this issue Oct 30, 2024 · 0 comments · Fixed by #4383
Assignees

Comments

@BillCarsonFr
Copy link
Member

Part of element-hq/element-meta#2603

Currently, the dehydration key is only kept in memory, which means that when the client gets restarted, it will no longer have the dehydration key, and will not be able to create new dehydrated devices. We need to cache it in the crypto store so that the SDK can fetch it on statup.

  • Add functions to store/get dehydration key: store the key, fetch the key (or None if no key is stored), delete the key
  • sqlite migration
  • indexeddb migration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant