Bitcoin full node and query server

May 13, 2018

View in context in the libbitcoin Slack #general mirror.

James C.09:17
Hello Libbitcoin Team! Quick question regarding setting certificate for zmq curve. I can't find any official documentation on the following comment in the protocol::socket object source:
// Use on client for both set_public_key and set_private_key from a cert.
// If CURVE is not required by server, call set_certificate({ null_hash })
// to generate an arbitrary client certificate for a secure socket.
Is the null_hash passed to zmq with ZMQ_CURVE_SECRETKEY/ZMQ_CURVE_PUBLICKEY set to null, and zmq automatically generates a temp pair? If "curve is not required by server", doesn't the client have to also set ZMQ_CURVE_SERVER to true, since the (libbitcoin)server is not the curve server? Couldn't find answers to this case in the zmq docs. Any pointers much appreciated!