I am trying to establish connection between a go-libp2p host and another jvm-libp2p host. When I use the host.connect() API from the go-libp2p node by passing the multiaddress and peerID of the jvm-libp2p node, it returns an error : “failed to negotiate security protocol: protocol not supported”.
Any help on resolution of the above error would be appreciated!
I tried implementing noise on both sides and then tried using the connect API. It still gives the same error: “failed to negotiate security protocol: protocol not supported”.
Code snippet on jvm-libp2p side: PrivKey key = generateKeyPair(KEY_TYPE.ED25519).component1();
Host host = new HostBuilder()
.protocol(new NoiseXXSecureChannel(key))
.build();