hd-wallet-derive icon indicating copy to clipboard operation
hd-wallet-derive copied to clipboard

Generate extended public keys from an extended key

Open cosmin-harangus opened this issue 5 years ago • 4 comments

Given an extended public/private key generate the corresponding extended public keys in "legacy", "p2sh-segwit" or "bech32" address types (if supported) These can then be used by hd-addr to check the generated addresses for funds as mentioned in issue #28 .

cosmin-harangus avatar Oct 03 '19 17:10 cosmin-harangus

This patch doesn't seem to work.

Firstly, the get-extended param is not read from the command-line. maybe you forgot to commit changes in Util.php?

Even after I added that, I get an error that $key is undefined on line 54 of hd-wallet-derive.php. After fixing that, I got another error.

If you fix the PR so that I can test it out, I will evaluate further. thanks.

dan-da avatar Oct 04 '19 17:10 dan-da

You're right, I missed a few things there... Too eager to push I guess. I will fix it in the new few days and update the PR. These changes were taken from another project where I needed to run this package as a JSON server instead of through the CLI.

cosmin-harangus avatar Oct 06 '19 16:10 cosmin-harangus

ok, yeah I'll take a look once you update...

dan-da avatar Oct 14 '19 00:10 dan-da

I've updated the PR with the fixes and tested the solution. Please confirm and let me know if there are other other changes that I should do. I tried to used the same naming conventions in order to match the current usage style.

cosmin-harangus avatar Oct 15 '19 16:10 cosmin-harangus