indutny / elliptic

Fast Elliptic Curve Cryptography in plain javascript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deriving private key from public key

madhav-madhusoodanan opened this issue · comments

  1. elliptic uses bn.js. You can generate number with crypto.randomBytes and then check interval (0, n). Or you can use .getKeyPair()
  2. new EC('curve25519').g.mul
  3. You're right.

Originally posted by @fanatid in #108 (comment)

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.