We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e1ff3d commit de163d5Copy full SHA for de163d5
src/crypto-api/recovery-key.ts
@@ -44,7 +44,7 @@ export function encodeRecoveryKey(key: ArrayLike<number>): string | undefined {
44
* Decode a recovery key encoded with the Matrix {@link https://spec.matrix.org/v1.11/appendices/#cryptographic-key-representation | Cryptographic key representation} encoding.
45
* @param recoveryKey
46
*/
47
-export function decodeRecoveryKey(recoveryKey: string): Uint8Array {
+export function decodeRecoveryKey(recoveryKey: string): Uint8Array<ArrayBuffer> {
48
const result = bs58.decode(recoveryKey.replace(/ /g, ""));
49
50
let parity = 0;
0 commit comments