Hi, im basic. I need to print private and public key. I tried to use $bitcoinECDSA->getPrivateKey();, buto when i do this, the private key is not for generateg BTC address, but other. Can you help me?
Your code looks correct although I did not run it.
Instead of getting the private key in its Hex format you can also get it under its WIF format using $bitcoinECDSA->getWif();
Hi, im basic. I need to print private and public key. I tried to use
$bitcoinECDSA->getPrivateKey();
, buto when i do this, the private key is not for generateg BTC address, but other. Can you help me?Full code: