dotnet-libp2p icon indicating copy to clipboard operation
dotnet-libp2p copied to clipboard

Peer scoring in pubsub

Open flcl42 opened this issue 6 months ago • 2 comments

Peer scoring improves security and resilience of pubsub based systems. Let's add scoring for gossipsub protocols.

Peer scoring was introduced in Gossipsub/1.1 https://github.com/libp2p/specs/blob/master/pubsub/gossipsub/gossipsub-v1.1.md#peer-scoring. We need to:

  • [ ] Add settings. Code you can copy-paste https://github.com/NethermindEth/dotnet-libp2p/pull/48/files#diff-286f0fd5b5357ac650f6aaa3df9913709dd0a490d0d6fc144d79655a7f4ff7edL1
  • [ ] Add score to peers, most likely it can be held in peerState in PubsubRouter
  • [ ] Change score values depending on messages received, etc

flcl42 avatar Aug 14 '25 12:08 flcl42

Hi @flcl42, could you explain a little about what needs to be done? I would love to pick this up.

namay26 avatar Aug 23 '25 13:08 namay26

Hi @flcl42, could you explain a little about what needs to be done? I would love to pick this up.

I've improved the description a bit. Feel free to ask any questions here or in discord/tg.

flcl42 avatar Aug 25 '25 16:08 flcl42