1.0 KiB
1.0 KiB
sequenceDiagram
Waku Node->>DNS Server: (1) Lookup TXT example.com
DNS Server-->>Waku Node: (2) enrtree-root:v1 e=U3...3Y ...
Waku Node->>DNS Server: (3) Lookup TXT U3...3Y.example.com
DNS Server-->>Waku Node: (4) enrtree-branch:DU...VQ,J3..HU,IC...WE
Waku Node->> DNS Server: (5) Lookup TXT DU...VQ.example.com
DNS Server-->>Waku Node: (6) enr:-M-4QLdAB-Kyz...Wt1Mg8
Waku Node ->> Waku Node: (7) Decode ENR: Peer's connection details
- DNS lookup query to retrieve TXT data stored on
example.com
domain. entree-root
is returned, value ofe
is theenr-root
, root hash of the node subtree.- DNS lookup query to retrieve TXT data stored on
<enr-root>.example.com
domain. entree-branch
is returned, this tree contains hashes of node subtrees.- DNS lookup query to retrieve TXT data stored on,
DU...VQ.example.com
domain, the first leaf ofentree-branch
. enr
record is returned.- Returned value is decoded, peer connection details such as ip address and port are learned.