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

Point test failed! #12

Open you19891003 opened 3 years ago

you19891003 commented 3 years ago

PHP 7.3.28 Linux VM-0-3-centos 3.10.0-1160.11.1.el7.x86_64 #1 SMP Fri Dec 18 16:34:56 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

[Exception] Point test failed! Cannot continue. I tested the point: array ( 'x' => '-32081871314942606843016219628590540258937117004163101711062316975510003438210', 'y' => '63528019651881546041403845422671143167680805935929999056238244321970887302640', ) but got the point: array ( 'x' => '-54721581836425117214248801613172710836662262006652007104968796841877140612163', 'y' => '4507479940663428790529755445583626585934107362408180449139240266388537565689', 'y2' => '4035809280889847910284906626699952358482347782120795715535245436310648657749709623452788810186840492261707481192584237195626540429992598769307574950969600', 'x3' => '-33020152707852126260409011468750486540615669374153416874354584896669453416299275071203754462870519965918146249751366131753377407381246271935307580364887873666293594057173087947185509217875324580786942923510707510082843628576661000', 'ax' => '0', ) /vendor/ionux/phactor/src/Point.php(272): Phactor\Key->pointTestW(Array) /vendor/ionux/phactor/src/Key.php(111): Phactor\Key->GenerateNewPoint() /vendor/fenguoz/tron-php/src/TRX.php(52): Phactor\Key->GenerateKeypair()

sbihgud commented 3 years ago

Have you solved it?

NanQi commented 2 years ago

use gmp;