From 08c4a28ee3cb7c85f6efdd735ef523f0c9becd34 Mon Sep 17 00:00:00 2001 From: Raghav Gulati Date: Wed, 8 May 2019 09:27:57 -0700 Subject: [PATCH] Better comment for signing with a different key Note that the second message is the incorrectly signed message. --- floodsub_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/floodsub_test.go b/floodsub_test.go index 3dfe701..585e166 100644 --- a/floodsub_test.go +++ b/floodsub_test.go @@ -994,7 +994,8 @@ func TestImproperlySignedMessageRejected(t *testing.T) { t.Fatal(err) } - // Change the sign key for the adversarial peer, and send the second message. + // Change the sign key for the adversarial peer, and send the second, + // incorrectly signed, message. adversaryPubSub.signID = honestPubSub.signID adversaryPubSub.signKey = honestPubSub.host.Peerstore().PrivKey(honestPubSub.signID) err = adversaryPubSub.Publish(topic, incorrectMessage)