mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-24 06:31:52 +00:00
resolve same bn.js version
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 (!publicKey.verify(generatedPayload, payload.identitySig as Buffer)) {
|
||||
throw new Error("Static key doesn't match to peer that signed payload!");
|
||||
}
|
||||
return remotePeer;
|
||||
|
Reference in New Issue
Block a user