-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(dehydration): support for dehydration key and storage #179
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few questions and requests for clarification
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks.
version = "0.8.0" | ||
source = "git+https://github.com/matrix-org/matrix-rust-sdk?branch=release-for-crypto-wasm-12#37c17cf854a70fe6f719c7fde49a6b0e4402988f" | ||
version = "0.9.0" | ||
source = "git+https://github.com/matrix-org/matrix-rust-sdk#b18100228e0456973d56d4ac6a58caf30b17bd8d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will have a conflict with #184 but you can just keep your changes and ignore that.
Cargo.toml
Outdated
matrix-sdk-qrcode = { git = "https://github.com/matrix-org/matrix-rust-sdk", optional = true, branch="release-for-crypto-wasm-12" } | ||
matrix-sdk-common = { git = "https://github.com/matrix-org/matrix-rust-sdk", features = ["js"] } | ||
matrix-sdk-indexeddb = { git = "https://github.com/matrix-org/matrix-rust-sdk", default-features = false, features = ["e2e-encryption"] } | ||
matrix-sdk-qrcode = { git = "https://github.com/matrix-org/matrix-rust-sdk", optional = true } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This does the same as #184 so hopefully no conflict?
Update matrix-sdk to 0.9.0
38bf441
to
33ee915
Compare
@@ -1,5 +1,13 @@ | |||
# UNRELEASED | |||
|
|||
**BREAKING CHANGES** | |||
|
|||
- Update matrix-rusk-sdk to `0.9.0`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andybalaam Should I use a git hash here too? even it is this actual tag, or link the tag?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what you have is sufficient.
`DehydratedDevices.keysForUpload` and `DehydratedDevices.rehydrate` now use the `DehydratedDeviceKey` as parameter | ||
instead of a raw UInt8Array.Use `DehydratedDeviceKey::createKeyFromArray` to migrate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, a belated review:
- I think this point about
keysForUpload
andrehydrate
should be a separate bullet point - The other points ("Update matrix-rusk-sdk to
0.9.0
" and "Expose new API") aren't breaking changes so should be above the "BREAKING CHANGES" header (see matrix-sdk-crypto-wasm v12.0.0, for example) - It would be good to link to this pr for the changes (see lots of other entries in the changelog, for example)
- There are a number of typos on line 9. It should be:
instead of a raw `UInt8Array`. Use `DehydratedDeviceKey.createKeyFromArray` to migrate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[suggest fixing these as part of #187]
Fixes #160
Depends on matrix-org/matrix-rust-sdk#4399