Skip to content

Commit

Permalink
Convert recovery key to Uint8Array explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed Apr 7, 2020
1 parent 2e3cb54 commit 2ed6e9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/crypto/recoverykey.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ export function decodeRecoveryKey(recoverykey) {
throw new Error("Incorrect length");
}

return result.slice(
return Uint8Array.from(result.slice(
OLM_RECOVERY_KEY_PREFIX.length,
OLM_RECOVERY_KEY_PREFIX.length + global.Olm.PRIVATE_KEY_LENGTH,
);
));
}

0 comments on commit 2ed6e9b

Please sign in to comment.