indutny / elliptic

Fast Elliptic Curve Cryptography in plain javascript
1.7k stars 381 forks source link

secp256k1.createPublicKey is not a function #199

Open qy201901 opened 5 years ago

qy201901 commented 5 years ago

After I copied the secp256k1 from the deps fold to node_modules fold and run "node index.js", I saw this error message "secp256k1.createPublicKey is not a function", how to solve this problem?

fanatid commented 5 years ago

Is your issue about cryptocoinjs/secp256k1-node? What purpose of coping some deps to node_modules? Please use yarn/npm/etc. What in index.js which you run with node? Without details such issues can not be solved.