Skip to content

Releases: matrix-org/matrix-rust-sdk-crypto-wasm

v11.0.0

01 Nov 15:40
Compare
Choose a tag to compare

matrix-sdk-crypto-wasm v11.0.0

  • Update matrix-rust-sdk to 70bcddfba5e19.

BREAKING CHANGES

  • Remove SignedCurve25519 variant of DeviceKeyAlgorithm.

v10.1.0

30 Oct 10:56
aad3fbc
Compare
Choose a tag to compare
  • Update matrix-rust-sdk to ce9dc73376b4ee

v10.0.0

29 Oct 12:47
840086c
Compare
Choose a tag to compare

Update matrix-rust-sdk to 3558886b98992.

BREAKING CHANGES

  • Rename DecryptionErrorCode.SenderIdentityPreviouslyVerified to
    SenderIdentityVerificationViolation (in line with changes to
    matrix-rust-sdk).

  • Rename UserIdentity to OtherUserIdentity (in line with changes
    to matrix-rust-sdk).

  • Update matrix-rust-sdk to #3558886b9.

v9.1.0

30 Sep 15:25
Compare
Choose a tag to compare
  • Update matrix-rust-sdk to 866b6e5f, which includes:

    • Change the withheld code for keys not shared due to the IdentityBasedStrategy, from m.unauthorised to m.unverified.
      (#3985)

    • Improve logging for undecryptable Megolm events.
      (#3989)

v9.0.0

17 Sep 18:00
Compare
Choose a tag to compare

BREAKING CHANGES

  • The SenderIdentityNotTrusted value in the DecryptionErrorCode was replaced with UnknownSenderDevice, UnsignedSenderDevice, and SenderIdentityPreviouslyVerified 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

06 Sep 14:21
Compare
Choose a tag to compare

BREAKING CHANGES

  • The format for EncryptionSettings.sharingStrategy has changed. It must now be created using the CollectStrategy.deviceBasedStrategy(...) or CollectStrategy.identityBasedStrategy() functions. (#141)
    • The former DeviceBasedStrategyAllDevices should be replaced by CollectStrategy.deviceBasedStrategy(false, false)
    • The former DeviceBasedStrategyOnlyTrustedDevices should be replaced by CollectStrategy.deviceBasedStrategy(true, false)
    • The former IdentityBasedStrategy should be replaced by CollectStrategy.identityBasedStrategy()
  • The OlmMachine.decryptRoomEvent has a new DecryptionSettings 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 of TrustRequirement.Untrusted. (#141)

Security Fixes

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() and UserInfo.identityNeedsUserApproval() to manage user identity changes. (#141)

  • ShieldState has a new code property that is set when the shield state is not None. (#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

11 Jul 14:17
Compare
Choose a tag to compare

BREAKING CHANGES

  • EncryptionSettings.onlyAllowTrustedDevices has been replaced with EncryptionSettings.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:

    • refactor(sdk-crypto): Room key sharing, introduce extensible strategy
      (#3605)

    • Log the content of received m.room_key.withheld to-device events.
      (#3591)

    • Attempt to decrypt bundled events (reactions and the latest thread reply) if they are found in the unsigned part of an event.
      (#3468)

v6.2.1

03 Jul 19:17
Compare
Choose a tag to compare
  • Update matrix-rust-sdk to 7b25a1c2f, which includes fixes to bugs introduced in v6.2.0.
    (#3651)

v6.2.0

03 Jul 13:28
Compare
Choose a tag to compare
  • Update matrix-rust-sdk to 09d53a52a, which includes:

    • Improve the efficiency of objects stored in the crypto store. (#3645)

v6.1.0

20 Jun 08:08
Compare
Choose a tag to compare
  • Set "creation time" of OlmAccounts 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.