Skip to content
Prev Previous commit
Next Next commit
use MSC number
  • Loading branch information
uhoreg committed May 29, 2024
commit 4fa6b3fc7f2e79b8c4660031ca5f1f254ebb87d2
Copy link
Member

@turt2live turt2live May 29, 2024

Choose a reason for hiding this comment

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

Implementation requirements:

  • Client sending this information
  • Client using this information
  • Demonstration of the core problem being solved (likely covered by the above tasks)

Copy link
Member Author

Choose a reason for hiding this comment

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

This has been implemented in the Rust matrix-sdk-crypto crate, both sending and using. Demonstration of the problem being solved: https://youtu.be/b1jJlT2ENT8?feature=shared&t=345

Copy link
Member

Choose a reason for hiding this comment

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

A few links to the implementation.

On the sender side, the field is added here.

On the receiver side, it is deserialized after decryption into a DecryptedOlmV1Event. It is then used in SenderDataFinder whose job it is to construct a SenderData which records our knowledge about the sending device for a given session.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MSCxxxx: Including device keys with Olm-encrypted events
# MSC4147: Including device keys with Olm-encrypted events

When a Megolm session is sent from one device to another via Olm, the recipient
can
Expand Down Expand Up @@ -128,7 +128,7 @@ came from a deleted device.
## Unstable prefix

Until this MSC is accepted, the new property should be named
`org.matrix.mscxxxx.device_keys`.
`org.matrix.msc4147.device_keys`.

## Dependencies

Expand Down