2️⃣-Peer Protocol
Overview
Handshake Protocol
Handshake Messages
SessionInit Message (0x00)
`string id = 1`
The message's globally unique identifier, generated by the sender
`string sign = 2`
secp256k1 signature over sha256 hash of a JSON-serialized msg containing fields 3-7
`string peer_pub_key = 3`
The target node secp256k1 public key (in hex)
`string ephemeral_pub_key = 4`
An ephemeral secp256k1 public key (in hex), generated by the sender, for ECDH key exchange
`NodeState node_state = 5`
General info regarding the sender's current node state
`string version = 6`
OpenDEX client version
`string node_pub_key = 7`
The sender's secp256k1 public key (in hex)SessionAck Message (0x01)
Coordination Messages
Ping Message (0x04)
Pong Message (0x05)
Disconnecting Message (0x03)
GetNodes Message (0x0a)
Nodes Message (0x0b)
NodeStateUpdate Message (0x02)
Custom types
NodeState type
Address type
LndUris type
Node type
Last updated