📖
Mel docs
HomeOld docs
  • A post-blockchain Web3
  • Conceptual wiki
    • Data model
    • Consensus
    • MEL: trustless sound money
    • Governance-free neutrality
    • Covenants
    • Light clients
    • Network architecture
    • Melnet: the P2P layer
    • What belongs on-chain?
  • Developer guides
    • Overview
    • 🛠️Gibbername: your first off-chain composable protocol
      • melprot: a quick intro
      • Design
      • Implement
      • Use
      • Next steps
    • 💰Wallets
      • Setup and installation
      • Sending money
      • Swapping tokens
    • 🪙Getting tokens
      • Melmint overview
      • Using melminter
      • Melmint arbitrage
    • 🤖Run a full node
      • Melnode quick start
      • Basic replica node
      • Setting up a local simnet
  • 🌉Szaldi guide
    • Bridge your coins
    • Architectural overview
  • Resources
    • Yellow Paper
    • Frequently asked questions
    • MelVM spec
Powered by GitBook
On this page
Edit on GitHub
  1. Conceptual wiki

Melnet: the P2P layer

PreviousNetwork architectureNextWhat belongs on-chain?

Last updated 2 years ago

Mel uses a very simple P2P protocol, melnet, for communication among and between full nodes and light clients. Implemented as a within the framework, it has the following features:

  • Unstructured gossip network, similar to Bitcoin (and unlike libp2p and similar DHTs)

  • Uses JSON-RPC 2.0 over plain HTTP/1.1. Not even WebSockets is used.

Using simple web standards makes it easy for (still future) web-based clients written in JavaScript or WebAssembly to directly access the P2P network. In-browser light clients, or even full nodes, become possible.

Eventually, we'll have a more detailed description and spec of melnet here. For now, !

full nodes
Rust crate
nanorpc
check out the actual codebase on GitHub