Add Gossipsub 1.4 module in py-libp2p

オープン
#992 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python

調査の方向性

py-libp2p の既存の Gossipsub 1.2 モジュールを、Gossipsub v1.4 仕様および参照されている Go、JavaScript、Rust の実装と併せてレビューします。段階的に実装する前に、ピアスコアリング、ゴシップ、メッセージ ID、レート制限、相互運用性に関するアーキテクチャ上の差分を特定します。完了とは、列挙された機能がテスト、ベンチマーク、クロス言語検証によってカバーされていることを意味します。

索引モデルが issue の本文から書いたものです。

説明

Description

Implement Gossipsub v1.4 in py-libp2p, aligning with the latest libp2p/specs/pubsub/gossipsub specification.

This update introduces key performance and security enhancements over v1.2, including improved peer scoring, message propagation, and adaptive gossip strategies.

Motivation

The current implementation in py-libp2p supports Gossipsub v1.1 / v1.2.

To ensure protocol parity with other libp2p implementations (go-libp2p, js-libp2p, rust-libp2p), and enable cross-language interoperability, we need to bring the Gossipsub 1.4 features to Python.

This will also enhance pubsub performance in decentralized applications using Python-based networking stacks, such as those in Filecoin and IPFS ecosystems.

Requirements
Key Features to Implement
  • Extended Peer Scoring Parameters

    • Decay interval refinements and behavioral penalties.
  • IP Colocation Penalties

    • Penalize peers from the same IP subnet to prevent Sybil attacks.
  • Adaptive Gossip Dissemination

    • Dynamic adjustment of gossip parameters for improved propagation efficiency.
  • Message ID Customization

    • Support for user-defined message ID functions.
  • Rate-limiting and Score Decay Enhancements

    • Align with Gossipsub v1.4 performance tuning.
  • Testing and Interop

    • Validate against go-libp2p and js-libp2p implementations.

References

Next Steps
  1. Review existing Gossipsub 1.2 module implementation in py-libp2p.
  2. Outline architectural deltas required for 1.4 compliance.
  3. Begin incremental implementation (peer scoring, adaptive gossip, rate limiting).
  4. Add test cases and benchmarking suite for verification.
  5. Validate interoperability with go-libp2p and js-libp2p.
Open questions

No response

Are you planning to do it yourself in a pull request ?

Maybe

主要言語
Python
スター
629
フォーク
261
平均マージ
2日 3時間
マージ済み PR(30日)
30

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

libp2p/py-libp2p のほかの issue

libp2p/py-libp2p の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。