matrix-org / vodozemac

An implementation of Olm and Megolm in pure Rust.
Apache License 2.0
175 stars 31 forks source link

Add the RatchetKey to the Debug output of the ReceiverChain #121

Closed poljar closed 9 months ago

poljar commented 9 months ago

The ratchet key is a crucial piece of information when trying to debug a decryption failure of a Olm Session.

The ratchet key and chain index, which are found inside a Olm message, form a pair which uniquely identifies the individual message key that should be used to decrypt the message.

To inspect why a decryption failure occurs it's useful to have the ratchet key and chain index pair, this allows us to double check if the correct chain is part of the Session.