ionux / phactor

Phactor is a high-performance PHP implementation of the elliptic curve math functions needed for EC keypair and ECDSA signature generation, validating signatures, validating curve points, creating SINs and much more.
https://github.com/ionux/phactor
MIT License
50 stars 18 forks source link

Verify using the compressed public key does not work #9

Closed TiMESPLiNTER closed 6 years ago

TiMESPLiNTER commented 6 years ago

I can't use the Phactor\Signature::Verify() method with a compressed public key.

Private key: 0428f04029621a66147e406b003d6bd4371b8079dc8398c4c927d6cc4cb6cc0f9d865768231eeb980295d0c833e361f2e93946c302d37016f6b3071337f714240f
Private key (compressed): 0328f04029621a66147e406b003d6bd4371b8079dc8398c4c927d6cc4cb6cc0f9d
Phalcon\Key::parseCompressedPublicKey() result: 60764356133267901461215204385388380387438907318916336174302592415422982923279
ionux commented 6 years ago

Hmm, I'll take a look. Thank you for the bug report @TiMESPLiNTER !