Better comment for signing with a different key

Note that the second message is the incorrectly signed message.
This commit is contained in:
Raghav Gulati 2019-05-08 09:27:57 -07:00
parent a726a896db
commit 08c4a28ee3
No known key found for this signature in database
GPG Key ID: EA2C73F6F7EF2701
1 changed files with 2 additions and 1 deletions

View File

@ -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)