nim-eth Portal Wire implementation first interop tests with ddht and trin.
Similar as in this gist: https://gist.github.com/carver/f3c26d9adb28ea2b4e5d5bbe42b4f4b7
How to use nim-eth portalcli, a quick Portal Wire cli test tool: https://github.com/status-im/nim-eth/tree/master/eth/p2p/portal
https://github.com/ethereum/ddht/
# Start ddht
ddht --listen-address <local network ip address> --disable-upnp --port 12345 --log-level-stderr 10 --private-key 7261696e626f7773756e69636f726e737261696e626f7773756e69636f726e73 alexandria
# Manually copy encoded ENR from logs
# Other shell: Launch Ping request from nim-eth portalcli
./eth/p2p/portal/portalcli --nat:extip:<local network ip address> --listen-address:<local network ip address> ping <encoded enr copied in above step>
# Or FindNodes
./eth/p2p/portal/portalcli --nat:extip:<local network ip address> --listen-address:<local network ip address> findnodes <encoded enr copied in above step>
# Or FindContent
./eth/p2p/portal/portalcli --nat:extip:<local network ip address> --listen-address:<local network ip address> findcontent <encoded enr copied in above step>
# Or just run the node
./eth/p2p/portal/portalcli --nat:extip:<local network ip address> --listen-address:<local network ip address> --bootnode:<encoded enr copied in above step>
https://github.com/carver/trin
# Start trin
TRIN_INFURA_PROJECT_ID=<id> RUST_LOG=debug cargo run
# Manually copy encoded ENR from logs
# Other shell: Launch Ping request from nim-eth portalcli
./eth/p2p/portal/portalcli --nat:extip:<local network ip address> --listen-address:<local network ip address> ping <encoded enr copied in above step>
# FindNodes
./eth/p2p/portal/portalcli --nat:extip:<local network ip address> --listen-address:<local network ip address> findnodes <encoded enr copied in above step>
# FindContent requests are not implemented afaik
# Or just run the node
./eth/p2p/portal/portalcli --nat:extip:<local network ip address> --listen-address:<local network ip address> --bootnode:<encoded enr copied in above step>
# launch portalcli
./eth/p2p/portal/portalcli --nat:extip:<local network ip address> --listen-address:<local network ip address>
# Manually copy encoded ENR from logs
ddht --listen-address <local network ip address> --disable-upnp --port 12345 --log-level-stderr 10 alexandria --bootnode <encoded enr copied in above step>
# ddht seems to send a lot of ping requests. But they all work and get responses.
# portalcli is currently only sending base layer ping/pongs
TRIN_INFURA_PROJECT_ID=<id> RUST_LOG=debug cargo run -- --bootnodes <encoded enr copied in above step>
# Portal ping/pong is occuring (baselayer talkreq/talkresp)
# portalcli is currently only sending base layer ping/pongs