0.8.0
What's Changed
Features
-
Apply the const keyword to many methods (#167).
-
[BREAKING] The
Account::sign()method now accepts animpl AsRef<[u8]>
for the message instead of a&str. This has been streamlined to be like
most of our other methods accepting a message to be encrypted. This
change is mostly backwards compatible as the method will continue to
accept a string.
TheOlmMessage::from_parts()andOlmMessage::to_parts()methods now
accept and return an&[u8]andVec<u8>exclusively for the
ciphertext. Thebase64_encode()andbase64_decode()methods can be
used to achieve the previous behavior (#176). -
Add support for the libolm PkEncryption feature. This allows
Matrix clients to implement the m.megolm_backup.v1.curve25519-aes-sha2
room key backup algorithm. Please note that this algorithm contains a
critical flaw and should only be used for compatibility reasons (#171) (#180).