mirror of
https://github.com/logos-messaging/go-libp2p-pubsub.git
synced 2026-01-03 13:23:07 +00:00
Better comment for signing with a different key
Note that the second message is the incorrectly signed message.
This commit is contained in:
parent
a726a896db
commit
08c4a28ee3
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user