Skip to content
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

How to use curveKeyPair? #657

Closed
gameprem opened this issue Sep 29, 2024 · 1 comment
Closed

How to use curveKeyPair? #657

gameprem opened this issue Sep 29, 2024 · 1 comment

Comments

@gameprem
Copy link

gameprem commented Sep 29, 2024

Version: 6.0.4

  1. Question: How can I use the curveKeyPair function?
    Result: Error: Operation not supported

  2. Question: Based on the following code, how can I assign values to curveServerKey, curvePublicKey, and curveSecretKey?
    const _ZMQ = require("zeromq");

const subKeyPair = _ZMQ.curveKeyPair();

const sock = new _ZMQ.Subscriber({
curveServerKey: 'xxx',
curvePublicKey: subKeyPair.publicKey,
curveSecretKey: subKeyPair.secretKey,
});
Result: super(2 /* SocketType.Subscriber */, options);
TypeError: Cannot add property curveServerKey, object is not extensible

@aminya
Copy link
Member

aminya commented Oct 2, 2024

Duplicate of #640

You can expedite the process by sponsoring the project
https://github.com/sponsors/aminya
https://polar.sh/aminya/
https://www.patreon.com/aminya

@aminya aminya closed this as completed Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants