mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-22 21:21:48 +00:00
Fix yarn.lock
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user