elliptic
elliptic copied to clipboard
Fast Elliptic Curve Cryptography in plain javascript
Hi, for the following software I use elliptic to verify EC signatures using different curves: https://github.com/OpenChargingCloud/ChargyDesktopApp Now I need to add curve secp224k1 which is currently not defined in elliptic....
This PR adds an example of public key recovery for ECDSA to the `README`. It took me hours to figure how to recover public key from signature. This example would...
https://github.com/indutny/elliptic/blob/523da1cf71ddcfd607fbdee1858bc2af47f0e700/lib/elliptic/ec/signature.js#L108 toECSDA: function(enc){ return utils.encode(this.r.toArray().concat(this.s.toArray()), enc); } Many systems still use plain r+s concatenated values.
new node-bn.js 5.0.0-1 gives error when the string passed to sign function is not in hex format. curve secp256k1 should have `signature.s
I need to perform some validation on received ECDSA keys. I tried the following code: ```javascript const key = Buffer.from('asdfasf', 'base64').toString('ascii')); const kp = ec.keyFromPrivate(key); ``` I was expecting to...
pointFromX, pointFromY and initialization functions for points got an additional optional function parameter. This can be used for providing strings containing numbers in other bases than 16 (hex).
```js Error: Unknown point format at ShortCurve.decodePoint ``` I'm getting this error after using the following code: ```js const ec = new EC('secp256k1'); const publicKey = ec.keyFromPublic("022e0ab4358780d72a4cac22ab75b257757663e5b204d96ccdce62f780536dac6a", 'hex'); ``` Can...
`var EC = elliptic.ec; var ec = new EC('secp256k1'); //var key = ec.genKeyPair('123456'); //ec: EC, priv: BN, pub: Point //key.priv.toString('hex') var isk = ec.keyFromPrivate('7606f7f74dddb9a9e8063b34c9d4b147527e21d248c8ec228a49bbbfec200fe5', 'hex'); var opk = isk.getPublic().encode('hex');//04f0ce54e0961e85b998a17c0538095b5152d2dd8001f8a2ad0dbf891401e9a622ca8f7f234c6d5ccda373c82aaadba58d12c2de4bf04e5bde3a585f44e829a72e var...
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...
I see the below warning on Node.js 10.x and 12.x `[DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.`...