Drops-of-Diamond / diamond_drops

WIP on sharding and Ethereum 2.0 with enshrined-in-consensus data availability and Rust: a fast, safe, concurrent and practical programming language
The Unlicense
57 stars 14 forks source link

Implement Gossipsub for sharding p2p #94

Open jamesray1 opened 6 years ago

jamesray1 commented 6 years ago

Go PR: https://github.com/libp2p/go-floodsub/pull/67

I figure I'll implement gossipsub for Rust rather than wait until a go-libp2p daemon is implemented, which wouldn't be optimal anyway.

Note that gossipsub would not only be useful for sharding p2p, but general p2p networks.

Ignore the rest of this post, due to tomaka's comment below.

Only the differences to Floodsub are included below.

To implement with [Rust-libp2p]:

tomaka commented 6 years ago

Note that a direct translation from Go code to Rust is a very very bad idea due to the profound differences between the languages.

Compatibility between the implementations should exist at the wire level. There is almost nothing in common between the source codes of rust-libp2p and go-libp2p.

jamesray1 commented 6 years ago

Right, thanks for correcting me, should've realized that I was on the wrong track!