mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
forgot to remove this after extracting function
This commit is contained in:
parent
8d64fa54fe
commit
eda15e1141
@ -43,7 +43,7 @@ export function verifyEd25519Signature(olmUtil, userId, deviceOrKeyId, ed25519Ke
|
|||||||
throw new Error("no signature");
|
throw new Error("no signature");
|
||||||
}
|
}
|
||||||
// throws when signature is invalid
|
// throws when signature is invalid
|
||||||
this._olmUtil.ed25519_verify(ed25519Key, canonicalJson, signature);
|
olmUtil.ed25519_verify(ed25519Key, canonicalJson, signature);
|
||||||
return true;
|
return true;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn("Invalid signature, ignoring.", ed25519Key, canonicalJson, signature, err);
|
console.warn("Invalid signature, ignoring.", ed25519Key, canonicalJson, signature, err);
|
||||||
|
Loading…
Reference in New Issue
Block a user