elliptic
elliptic copied to clipboard
Fast Elliptic Curve Cryptography in plain javascript
I would like to take a private key (m) and add a tweak to it, a hash of something (S): `p = m + hash(S)` I can do _point_ addition...
Given: ``` let sig = ecKey.sign(msg); let sigDerHex = sig.toDER('hex'); ``` Is there a way to rehydrate `sigDerHex` back to a `Signature` Object? Many thanks!
I have a requirement of using Secp256r1 curve, how to use this for that? Any help will be appreciated. Thanks
Point equality is implemented as: https://github.com/indutny/elliptic/blob/43ac7f230069bd1575e1e4a58394a512303ba803/lib/elliptic/curve/mont.js#L163-L165 The identity (aka point at infinity) is any point that has 0 in its z-coordinate: https://github.com/indutny/elliptic/blob/43ac7f230069bd1575e1e4a58394a512303ba803/lib/elliptic/curve/mont.js#L77-L80 How would point comparison give the correct result...
ed448 is almost as popular as ed25519. Both of them are part of NIST standard now: https://www.nist.gov/news-events/news/2023/02/nist-revises-digital-signature-standard-dss-and-publishes-guideline?utm_source=miragenews&utm_medium=miragenews&utm_campaign=news
Closes #154
Why hasn't this software been updated after 2021 years? Is it because the software is stable?
I have been doing differential fuzzing of elliptic curve libraries. And I found one inconsistency with this javascript library. Reproducer code is ``` var EC = require('elliptic').ec; var utils =...
Citing https://github.com/indutny/bn.js/pull/295: > In some circumstances the hex encoding of big numbers is wrong. In addition to a display issue, given that the the hex string if often used as...