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

use node cluster workers everywhere. #1

Open
jaeh opened this issue Jan 12, 2020 · 0 comments
Open

use node cluster workers everywhere. #1

jaeh opened this issue Jan 12, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@jaeh
Copy link
Member

jaeh commented Jan 12, 2020

using nodejs cluster and running all crypto functions in workers provides a lot of isolation in comparison to function closures (used now).

master:
  • wait for request
  • spawn a worker on request to sign, encrypt or verify
  • send secret to worker
worker
  • generate public/private key pair inside the worker, derived from secret
  • sign, encrypt and/or verify using the keypair
  • overwrite the keypair
  • send the signed/encrypted/verified result back to master
  • die.
master
  • receive returned result, send it to callee.
caveat:

see if performance suffers too much.
time is relative.

@jaeh jaeh added the enhancement New feature or request label Jan 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant