@@ -1191,12 +1191,12 @@ export interface CryptoCallbacks {
11911191 keys : Record < string , SecretStorageKeyDescription > ;
11921192 } ,
11931193 name : string ,
1194- ) => Promise < [ string , Uint8Array ] | null > ;
1194+ ) => Promise < [ string , Uint8Array < ArrayBuffer > ] | null > ;
11951195
11961196 /** @deprecated : unused with the Rust crypto stack. */
1197- getCrossSigningKey ?: ( keyType : string , pubKey : string ) => Promise < Uint8Array | null > ;
1197+ getCrossSigningKey ?: ( keyType : string , pubKey : string ) => Promise < Uint8Array < ArrayBuffer > | null > ;
11981198 /** @deprecated : unused with the Rust crypto stack. */
1199- saveCrossSigningKeys ?: ( keys : Record < string , Uint8Array > ) => void ;
1199+ saveCrossSigningKeys ?: ( keys : Record < string , Uint8Array < ArrayBuffer > > ) => void ;
12001200 /** @deprecated : unused with the Rust crypto stack. */
12011201 shouldUpgradeDeviceVerifications ?: ( users : Record < string , any > ) => Promise < string [ ] > ;
12021202
@@ -1210,7 +1210,7 @@ export interface CryptoCallbacks {
12101210 * @param keyInfo - secret storage key info
12111211 * @param key - private key to store
12121212 */
1213- cacheSecretStorageKey ?: ( keyId : string , keyInfo : SecretStorageKeyDescription , key : Uint8Array ) => void ;
1213+ cacheSecretStorageKey ?: ( keyId : string , keyInfo : SecretStorageKeyDescription , key : Uint8Array < ArrayBuffer > ) => void ;
12141214
12151215 /** @deprecated : unused with the Rust crypto stack. */
12161216 onSecretRequested ?: (
@@ -1224,11 +1224,11 @@ export interface CryptoCallbacks {
12241224 /** @deprecated : unused with the Rust crypto stack. */
12251225 getDehydrationKey ?: (
12261226 keyInfo : SecretStorageKeyDescription ,
1227- checkFunc : ( key : Uint8Array ) => void ,
1228- ) => Promise < Uint8Array > ;
1227+ checkFunc : ( key : Uint8Array < ArrayBuffer > ) => void ,
1228+ ) => Promise < Uint8Array < ArrayBuffer > > ;
12291229
12301230 /** @deprecated : unused with the Rust crypto stack. */
1231- getBackupKey ?: ( ) => Promise < Uint8Array > ;
1231+ getBackupKey ?: ( ) => Promise < Uint8Array < ArrayBuffer > > ;
12321232}
12331233
12341234/**
@@ -1304,7 +1304,7 @@ export interface GeneratedSecretStorageKey {
13041304 name ?: string ;
13051305 } ;
13061306 /** The raw generated private key. */
1307- privateKey : Uint8Array ;
1307+ privateKey : Uint8Array < ArrayBuffer > ;
13081308 /** The generated key, encoded for display to the user per https://spec.matrix.org/v1.7/client-server-api/#key-representation. */
13091309 encodedPrivateKey ?: string ;
13101310}
0 commit comments