mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 19:14:52 +01:00
make this work again
This commit is contained in:
parent
7f97c540fb
commit
caaab41e87
4
prototypes/derive-keys.js
vendored
4
prototypes/derive-keys.js
vendored
@ -1,4 +1,4 @@
|
|||||||
import bs58 from "../lib/bs58/index.js";
|
import {base58} from "../src/utils/base-encoding.js";
|
||||||
|
|
||||||
function subtleCryptoResult(promiseOrOp, method) {
|
function subtleCryptoResult(promiseOrOp, method) {
|
||||||
if (promiseOrOp instanceof Promise) {
|
if (promiseOrOp instanceof Promise) {
|
||||||
@ -428,7 +428,7 @@ const OLM_RECOVERY_KEY_PREFIX = [0x8B, 0x01];
|
|||||||
|
|
||||||
|
|
||||||
export async function deserializeSSSSKey(recoverykey) {
|
export async function deserializeSSSSKey(recoverykey) {
|
||||||
const result = bs58.decode(recoverykey.replace(/ /g, ''));
|
const result = base58.decode(recoverykey.replace(/ /g, ''));
|
||||||
|
|
||||||
let parity = 0;
|
let parity = 0;
|
||||||
for (const b of result) {
|
for (const b of result) {
|
||||||
|
Loading…
Reference in New Issue
Block a user