Hi - we’re looking into libp2p as a network stack for our application and exploring how we could integrate verifiable credentials (https://w3c.github.io/vc-data-model/) infrastructure. A basic use case is that of a node being challenged to provide some specific credential to join the network. The bootstrap node handling the incoming connection should verify the credential with the issuer and complete the connection/bootstrap or terminate it.
Wanting to implement the scenario above, can we intercept the bootstrap connection on the receiver node and inject our verification logic? And what is the best way, for a node, to send some extra blob of data representing a VC?
We just started looking into go-libp2p and any pointer into the right direction would be greatly appreciated.
PS: I originally posted this as an issue here https://github.com/libp2p/libp2p/issues/78 but I only discovered this forum since.