forex.pm forex forum binary options trade

 Сryptocurrency exchanges => Binance - Сryptocurrency exchanges => Topic started by: Bitcoin on Apr 23, 2022, 11:42 am

Title: deriveChild and signing transactions using Bit-Wasp
Post by: Bitcoin on Apr 23, 2022, 11:42 am
deriveChild and signing transactions using Bit-Wasp

I'm generating multiple children using one extended key. I have no problem generating public addresses:



$master = HierarchicalKeyFactory::fromExtended(myKey);
$key = $master->deriveChild(1);
$publicAddress = $key->getPublicKey()->getAddress()->getAddress();


In order to sign a transaction, I need the public address' private key. How do I generate / extract the private key of a derived child? I'm assuming I'm not using the extended key for that.


Source: deriveChild and signing transactions using Bit-Wasp (https://bitcoin.stackexchange.com/questions/64793/derivechild-and-signing-transactions-using-bit-wasp)