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-&gt;deriveChild(1);
$publicAddress = $key-&gt;getPublicKey()-&gt;getAddress()-&gt;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.
Did a bit of digging and in order to extract the private key, you can use:
$privateKey = $key-&gt;getPrivateKey()-&gt;toWif(); And then sign the transaction.