ionux/phactor

Point test failed!

Opened this issue · 2 comments

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()

Have you solved it?

NanQi commented

use gmp;