Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest Crypto V2 Verification API #1654

Merged
merged 1 commit into from
Dec 12, 2022
Merged

Conversation

Anderas
Copy link
Contributor

@Anderas Anderas commented Dec 7, 2022

A number of changes in crypto verification API (only for Crypto V2) originating in rust-sdk-crypto. Unfortunatelly this is quite a lot of changes and there is no easy way to break this up. In the future we should be deprecating API in upstream SDKs before removing them entirely, which will make upgrades easier. The changes include:

  • Sas (but not QrCode) verification updates its state via a callback. This makes it easier to observe updates instead of needing to manually processUpdates. QrCode will be updated in similar regard in the future but for now uses the old approach
  • Some methods previously exposed on OlmMachine are now instead exposed on VerificationRequest (eg. startSasVerification
  • A lot of types in the rust-sdk-crypto have changed from structs to protocols, which broke a lot of stubs in unit tests. This PR fixes that wherever possible
  • Add some extra logs
  • Process cached sync response with crypto v2

@Anderas Anderas requested review from a team and aringenbach and removed request for a team December 7, 2022 15:53
Copy link
Contributor

@aringenbach aringenbach left a comment

Choose a reason for hiding this comment

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

Code LGTM

@Anderas Anderas merged commit ea2dd9b into develop Dec 12, 2022
@Anderas Anderas deleted the andy/latest_crypto branch December 12, 2022 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants