libp2p / cpp-libp2p

C++17 implementation of libp2p
Apache License 2.0
347 stars 98 forks source link

message signing [question] #154

Closed dchagniot closed 2 years ago

dchagniot commented 2 years ago

I am using C++ libp2p with Rust libp2p peers in a gossip network (I use the gossip example as starting point).

Peers are connecting without issue. I may send a message from a rust peer and the other rust and C++ peers get it.

But if the C++ peer sends a message, the rust peers are rejecting it: the message is not signed and the gossip configuration of the rust peers want a message signed.

Is it possible for C++ libp2p to sign the message before sending it ?

turuslan commented 2 years ago

Please check if it works now, with gossip config.sign_messages = true

dchagniot commented 2 years ago

perfect, thanks this is working now with the rust gossipsub-chat example