def curve_keypair():
 _check_version((3, 2), 'monitor')
 public = ffi.new('char[64]')
 private = ffi.new('char[64]')
 rc = C.zmq_curve_keypair(public, private)
 _check_rc(rc)
 return (ffi.buffer(public)[:40], ffi.buffer(private)[:40])

def curve_keypair ( ) : _check_version ( ( 3 , 2 ) , 'monitor' ) public = ffi . new ( 'char[64]' ) private = ffi . new ( 'char[64]' ) rc = C . zmq_curve_keypair ( public , private ) _check_rc ( rc ) return ( ffi . buffer ( public ) [ : 40 ] , ffi . buffer ( private ) [ : 40 ] )
generate a z85 keypair for use with zmq .