Skip to content

Curve support zmq::CurveKeyPair::new(); #401

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
glennpierce opened this issue Jun 10, 2024 · 3 comments
Open

Curve support zmq::CurveKeyPair::new(); #401

glennpierce opened this issue Jun 10, 2024 · 3 comments

Comments

@glennpierce
Copy link

Hi I am running on debian 12,5

I have a zeromq python client script working fine that includes the line

context = zmq.Context()
public_key, secret_key = zmq.curve_keypair()

this script works fine and i need to translate it to rust
but I get errors when doing

// Generate curve keypair
let keypair_result = zmq::CurveKeyPair::new();

I get the error

Err(Operation not supported)

Is the a feature I need to enable. I can see one from the docs

I am using versions

zmq = { version = "0.10", optional = true }
zmq-sys = { version = "0.12.0", optional = true }

Thanks

@esemeniuc
Copy link

My pr fixes it: #400

@havok4u
Copy link

havok4u commented Mar 17, 2025

Is this getting fixed in 0.10.0? Seems like a lot of time has gone by and still get Err on the call, but if I back down to the following config
[dependencies] zmq = { version = "0.9.2", features = ["vendored"] }
Then it seems to work.

@Nightrat
Copy link

Is there any chance that #400 gets merged?
In my project it is mandatory to use CurveZMQ and I'm now forced to go back to version 0.9.2 of the zmq crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants