Remove comment

This commit is contained in:
Belma Gutlic
2020-01-07 17:08:08 +01:00
parent 5be8f61599
commit d3a652aecb
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,8 @@ export async function verifySignedPayload(noiseStaticKey: bytes, plaintext: byte
}
const generatedPayload = getHandshakePayload(noiseStaticKey);
// Unmarshaling from PublicKey protobuf and taking key buffer only.
// Unmarshaling from PublicKey protobuf
const publicKey = crypto.keys.unmarshalPublicKey(receivedPayload.libp2pKey);
if (!publicKey.verify(generatedPayload, receivedPayload.noiseStaticKeySignature)) {
throw new Error("Static key doesn't match to peer that signed payload!");