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

Add support for olm fallback keys #1467

Merged
merged 15 commits into from
Oct 7, 2020
Merged

Conversation

uhoreg
Copy link
Member

@uhoreg uhoreg commented Sep 15, 2020

Requires matrix-org/synapse#8312 and https://gitlab.matrix.org/matrix-org/olm/-/merge_requests/13 (Should not be merged until a new olm release is made and the olm dependency is bumped.)

Implements MSC2732

@uhoreg uhoreg changed the title Add support for fallback keys Add support for olm fallback keys Sep 15, 2020
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall!

src/crypto/index.js Outdated Show resolved Hide resolved
src/sync.js Outdated Show resolved Hide resolved
src/sync.js Outdated
@@ -1361,6 +1361,15 @@ SyncApi.prototype._processSyncResponse = async function(
const currentCount = data.device_one_time_keys_count.signed_curve25519 || 0;
this.opts.crypto.updateOneTimeKeyCount(currentCount);
}
if (this.opts.crypto && data.device_unused_fallback_keys) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, so a supporting server will list your fallback key in every sync response indefinitely? It would nice if there were some way for it to only appear when changed, rather than every time, but I'll leave that to the spec and server discussion.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment to the MSC for this.

@uhoreg
Copy link
Member Author

uhoreg commented Oct 6, 2020

@jryans already approved this, but it has probably changed enough since then that it should be reapproved

@uhoreg uhoreg requested review from jryans and a team and removed request for jryans October 6, 2020 23:08
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 this pull request may close these issues.

2 participants