XCHG Documentation

XCHG Protocol L1
XCHG Protocol L2

Definitions

Node

  • is a router
  • has Address
  • usually has a public IP-address. Through it, traffic is exchanged.
  • accepts connections via TCP/IP
  • verifies Addresses
  • provides information about connected peers
  • translates calls/responses to/from connected peers
  • Peer

  • is a peer connection to the xchg-node
  • has Address confirmed by PrivateKey
  • chooses a node suitable for it to receive/send traffic
  • can be receive call from XCHG (server role)
  • can send call to another peer (client role)
  • should connect to prescribed nodes to be detected in the network.
  • Address

  • is a string of 48 characters. base32(sha256(publicKey)[0:30]). case insensitive
  • example: kqfc2fwogggtlsf7vnh46hhgdjmheiqvqycapj2f2xe2d5jz
  • Network Map

  • contains IP-addresses of all the nodes of the network
  • is divided into at least 16 sections