Fix yarn.lock

This commit is contained in:
morrigan
2020-04-22 19:31:24 +02:00
parent 3b0df24fbd
commit dff7f8bae0
3 changed files with 1340 additions and 1576 deletions

View File

@ -94,7 +94,7 @@ export async function verifySignedPayload(
const generatedPayload = getHandshakePayload(noiseStaticKey);
// Unmarshaling from PublicKey protobuf
const publicKey = keys.unmarshalPublicKey(identityKey);
if (!publicKey.verify(generatedPayload, payload.identitySig)) {
if (!payload.identitySig || !publicKey.verify(generatedPayload, Buffer.from(payload.identitySig))) {
throw new Error("Static key doesn't match to peer that signed payload!");
}
return remotePeer;