Releases: matrix-org/matrix-rust-sdk-crypto-wasm
v11.0.0
v10.1.0
- Update matrix-rust-sdk to
ce9dc73376b4ee
v10.0.0
Update matrix-rust-sdk to 3558886b98992.
BREAKING CHANGES
-
Rename
DecryptionErrorCode.SenderIdentityPreviouslyVerified
to
SenderIdentityVerificationViolation
(in line with changes to
matrix-rust-sdk). -
Rename
UserIdentity
toOtherUserIdentity
(in line with changes
to matrix-rust-sdk). -
Update matrix-rust-sdk to
#3558886b9
.
v9.1.0
v9.0.0
BREAKING CHANGES
- The
SenderIdentityNotTrusted
value in theDecryptionErrorCode
was replaced withUnknownSenderDevice
,UnsignedSenderDevice
, andSenderIdentityPreviouslyVerified
to allow the application to distinguish between the different reasons that the sender identity is not trusted.
Other changes
-
Add
OlmMachine.markAllTrackedUsersAsDirty
to invalidate the device lists for all known users. This is required for MSC4186 clients as the server may give up trying to persist device list updates for the client at some point, after which the client must treat all devices as dirty. -
Update matrix-rust-sdk to
2408df8bf
. No changes relevant to these bindings.
v8.0.0
BREAKING CHANGES
- The format for
EncryptionSettings.sharingStrategy
has changed. It must now be created using theCollectStrategy.deviceBasedStrategy(...)
orCollectStrategy.identityBasedStrategy()
functions. (#141)- The former
DeviceBasedStrategyAllDevices
should be replaced byCollectStrategy.deviceBasedStrategy(false, false)
- The former
DeviceBasedStrategyOnlyTrustedDevices
should be replaced byCollectStrategy.deviceBasedStrategy(true, false)
- The former
IdentityBasedStrategy
should be replaced byCollectStrategy.identityBasedStrategy()
- The former
- The
OlmMachine.decryptRoomEvent
has a newDecryptionSettings
parameter that allows specifying the required sender trust level. If the trust level is not met, the decryption will fail. To replicate the old behaviour, use a sender trust level ofTrustRequirement.Untrusted
. (#141)
Security Fixes
- Fix
UserIdentity.isVerified
to take into account our own identity #d8d9dae (Moderate, GHSA-4qg4-cvh2-crgg).
Other changes
-
Add
(Own)UserIdentity.wasPreviouslyVerified()
,(Own)UserIdentity.withdrawVerification()
, and(Own)UserIdentity.hasVerificationViolation()
to check and manage the state of users who were previously verified but are no longer verified. (#141) -
Add
UserIdentity.pinCurrentMasterKey()
andUserInfo.identityNeedsUserApproval()
to manage user identity changes. (#141) -
ShieldState
has a newcode
property that is set when the shield state is notNone
. (#141) -
Add a new API
Device.encryptToDeviceEvent
to encrypt a to-device message using Olm. (#101) -
Update matrix-rust-sdk to
07aa6d7bc
, which includes:-
NOTE: this version causes changes to the format of the serialised data in the CryptoStore, meaning that, once upgraded, it will not be possible to roll back applications to earlier versions without breaking user sessions.
-
Miscellaneous improvements to logging for verification and
OwnUserIdentity
updates. (#3949) -
Add message IDs to all outgoing encrypted to-device messages. (#3776)
-
v7.0.0
BREAKING CHANGES
EncryptionSettings.onlyAllowTrustedDevices
has been replaced withEncryptionSettings.sharingStrategy
, which adds the ability to share only with cross-signed devices.
(#134)
Other changes
-
Add
OlmMachine.registerRoomKeysWithheldCallback
to notify when we are told that room keys have been withheld.
(#136) -
Update matrix-rust-sdk to
d9b2b53f8
, which includes:
v6.2.1
v6.2.0
v6.1.0
-
Set "creation time" of
OlmAccount
s which were migrated from legacy libolm data to the unix epoch, instead of "now". Fixes element-hq/element-web#27590.
(#128) -
Update matrix-rust-sdk to
a2235d50c
. No changes relevant to these bindings.