make this work again
This commit is contained in:
parent
7f97c540fb
commit
caaab41e87
1 changed files with 2 additions and 2 deletions
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) {
|
||||
if (promiseOrOp instanceof Promise) {
|
||||
|
@ -428,7 +428,7 @@ const OLM_RECOVERY_KEY_PREFIX = [0x8B, 0x01];
|
|||
|
||||
|
||||
export async function deserializeSSSSKey(recoverykey) {
|
||||
const result = bs58.decode(recoverykey.replace(/ /g, ''));
|
||||
const result = base58.decode(recoverykey.replace(/ /g, ''));
|
||||
|
||||
let parity = 0;
|
||||
for (const b of result) {
|
||||
|
|
Reference in a new issue