java
var key = ZMQ.Curve.generateKeyPair()
Log.i(TAG,"KEY ${key.publicKey} ${key.secretKey}")
socket?.curvePublicKey = key.publicKey.toByteArray()
socket?.curveSecretKey = key.secretKey.toByteArray()
socket?.curveServerKey = key.secretKey.toByteArray()
使用jeromq依赖jnacl,下载地址:https://github.com/neilalexander/jnacl/releases/tag/v1.0