On device linking flow, we include the addresses of the local node so that we can connect to it from the mobile device. The problem is that we are including too many addresses in the code so the code is massive that sometimes the library we use its not even able to render it and sometimes the camera fails to scan such a big QR
An example of addresses we encode are:
/ip4/15.204.217.165/tcp/4002/p2p/12D3KooWGvsbBfcbnkecNoRBM7eUTiuriDqUyzu87pobZXSdUUsJ/p2p-circuit/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/15.204.217.165/udp/4002/webrtc-direct/certhash/uEiBisqx666tiSFVf9EYUtCJD69FB3Kg7T2R_XBSclyR9Lg/p2p/12D3KooWGvsbBfcbnkecNoRBM7eUTiuriDqUyzu87pobZXSdUUsJ/p2p-circuit/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/15.204.217.165/udp/4002/quic-v1/p2p/12D3KooWGvsbBfcbnkecNoRBM7eUTiuriDqUyzu87pobZXSdUUsJ/p2p-circuit/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/15.204.217.165/udp/4002/quic-v1/webtransport/certhash/uEiB7YJk_AQJ6Q-FGpOVlB5_Nows7oEDyBuyLVKLy7LrivQ/certhash/uEiCx19IwcZi2DTlyBhxNO9miomSeb_LXJ6uRk6YLO_4G7A/p2p/12D3KooWGvsbBfcbnkecNoRBM7eUTiuriDqUyzu87pobZXSdUUsJ/p2p-circuit/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/40.160.6.196/tcp/4002/p2p/12D3KooWNmjM4sMbSkDEA6ShvjTgkrJHjMya46fhZ9PjKZ4KVZYq/p2p-circuit/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/40.160.6.196/udp/4002/webrtc-direct/certhash/uEiA2nkjtAP67mwVZYE3N3o3N80tcYown8DCstqgNxDd1FQ/p2p/12D3KooWNmjM4sMbSkDEA6ShvjTgkrJHjMya46fhZ9PjKZ4KVZYq/p2p-circuit/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/40.160.6.196/udp/4002/quic-v1/p2p/12D3KooWNmjM4sMbSkDEA6ShvjTgkrJHjMya46fhZ9PjKZ4KVZYq/p2p-circuit/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/40.160.6.196/udp/4002/quic-v1/webtransport/certhash/uEiB4YX6wrfFvqXZF4R2jr96C9RuZiKg9KlqCAMGuJ71bBQ/certhash/uEiCYoOOPuRpZiQ508GVnbRHgAm17UlalAi7B-3TJZCrllQ/p2p/12D3KooWNmjM4sMbSkDEA6ShvjTgkrJHjMya46fhZ9PjKZ4KVZYq/p2p-circuit/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/80.26.132.44/udp/58000/webrtc-direct/certhash/uEiCfAMCbJ1gRvNN8IgPeMHGT03JtzfHphypXq3TfPTcvjw/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/80.26.132.44/udp/58000/quic-v1/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/80.26.132.44/udp/58000/quic-v1/webtransport/certhash/uEiA6dLTPnzlDLH4KJhSY-EIAYrqPH65KGKaAwSfY4Iml6w/certhash/uEiCgHU72gPOjoTXnQ5ddU2ADBTzBtlFcApolNzZcCURtsQ/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/127.0.0.1/tcp/58000/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/127.0.0.1/udp/58000/webrtc-direct/certhash/uEiCfAMCbJ1gRvNN8IgPeMHGT03JtzfHphypXq3TfPTcvjw/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/127.0.0.1/udp/58000/quic-v1/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/127.0.0.1/udp/58000/quic-v1/webtransport/certhash/uEiA6dLTPnzlDLH4KJhSY-EIAYrqPH65KGKaAwSfY4Iml6w/certhash/uEiCgHU72gPOjoTXnQ5ddU2ADBTzBtlFcApolNzZcCURtsQ/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/192.168.1.86/tcp/58000/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/192.168.1.86/udp/58000/webrtc-direct/certhash/uEiCfAMCbJ1gRvNN8IgPeMHGT03JtzfHphypXq3TfPTcvjw/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/192.168.1.86/udp/58000/quic-v1/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kq,
/ip4/192.168.1.86/udp/58000/quic-v1/webtransport/certhash/uEiA6dLTPnzlDLH4KJhSY-EIAYrqPH65KGKaAwSfY4Iml6w/certhash/uEiCgHU72gPOjoTXnQ5ddU2ADBTzBtlFcApolNzZcCURtsQ/p2p/12D3KooWKugq8Xv83QtDWy1PJbX5CmDU6L2QDzcr9XWeN6Fe66kqWhich are way to many (3225 characters) to make sense of it. We should not need that many. First of all. if the browser cannot call non webrtc addresses, then we should remove the other ones. Also, the local ones should not be necessary in production.
First step would be to launch the daemon with `--p2p.no-private-ips` which would remove local addresses.
The next step would be to remove the peerID at the end of every addr and insert it before we dial the peer (the PID is in another field in the QR so no need to duplicate it)