make this work again
This commit is contained in:
parent
7f97c540fb
commit
caaab41e87
|
@ -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) {
|
||||||
|
|
Reference in New Issue