melnet2

Crates.iomelnet2
lib.rsmelnet2
version0.3.3
sourcesrc
created_at2022-09-06 21:08:04.424245
updated_at2024-07-05 22:42:22.540677
descriptionJSON-RPC/nanorpc-based, low-level auto-peering RPC protocol used throughout Themelio for peer-to-peer communciations
homepage
repositoryhttps://github.com/themeliolabs/melnet2
max_upload_size
id659748
size80,830
Eric Tung (nullchinchilla)

documentation

README

melnet2: Mel's peer-to-peer protocol

melnet2 is Mel's peer-to-peer protocol. It is an overlay network that can be built over any nanorpc transport. The two important items are:

  • Backhaul, which is a trait that fully describes an underlying protocol (e.g. JSON-RPC over TCP, JSON-RPC over HTTP)
    • We provide TcpBackhaul, an high-performance, pipelined implementation of JSON-RPC over TCP
  • Swarm, which wraps around a Backhaul to implement an auto-peering peer-to-peer network of nodes implementing some nanorpc RPC protocol.
    • Swarm essentialy adds functionality for discovering peers and forming a randomly structured gossip network to any nanorpc-based system.

See examples/mn2-gossip for an example program.

Commit count: 45

cargo fmt