You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Buffer is used liberally assuming it exists when it practice it may not (in browsers without polyfills). ../matrix-js-sdk/src/rust-crypto/rust-crypto.ts:1073: return Buffer.from(backupKeys.decryptionKey.toBase64(), "base64"); - Solution: use the util class which handles this for us encodeBase64.
Type definitions on export interface CreateSecretStorageOpts imply all args are optional but createSecretStorageKey is not, it is required.
cacheSecretStorageKey should probably live on SecretStorageCallbacks as it is the pair to getSecretStorageKey which is in SecretStorageCallbacks. Currently the cache function sits in CryptoCallbacks which extends SecretStorageCallbacks.
Amalgamated issue so I don't forget about it.
Buffer
is used liberally assuming it exists when it practice it may not (in browsers without polyfills).../matrix-js-sdk/src/rust-crypto/rust-crypto.ts:1073: return Buffer.from(backupKeys.decryptionKey.toBase64(), "base64");
- Solution: use the util class which handles this for usencodeBase64
.export interface CreateSecretStorageOpts
imply all args are optional butcreateSecretStorageKey
is not, it is required.keyFromPassphrase
https://github.com/matrix-org/matrix-js-sdk/blob/develop/src/crypto/key_passphrase.ts#L55 which does aglobal.Olm
check and fails if it isn't found, meaning rust crypto relies on old crypto..The text was updated successfully, but these errors were encountered: