I would like to start implementing pnet support for the libp2p project I’ve been working away at and upon reading over the example on GitHub(https://github.com/libp2p/js-libp2p/blob/master/examples/pnet/index.js) I just want clarification on one point.
During the dialProtocol and handle functions I don’t see where the connProtector value is passed as the generated swarmkey. When the nodes are created the swarmkey is passed as a property then, but as far as I can tell not afterwards. Does this mean that nodes supporting the connProtector in the config will only handle connections dialled by nodes sharing the same swarmkey?
If so, could an array of different acceptable swarm keys be passed or would a new node have to be instantiated with specific support for each swarmkey?