elliptic
elliptic copied to clipboard
deriving private key from public key
- elliptic uses bn.js. You can generate number with crypto.randomBytes and then check interval (0, n). Or you can use
.getKeyPair()
-
new EC('curve25519').g.mul
- You're right.
Originally posted by @fanatid in https://github.com/indutny/elliptic/issues/108#issuecomment-259091242
I'm just a beginner, so I might have missed some detail here, but does it imply that the private key is derivable from the public key? It was my understanding that the process should be near-impossible.