Open BlinkyStitt opened 4 years ago
This is a great idea! We've been wanting to add this as well. Glad there is interest, and we'll make an effort to incorporate it
@WyseNynja #207 adds support for deriving sequential indices. The approach we took was to continue supporting the --count
command for multiple wallets, while introducing a new counter --indices
(short -k
) for sequential indices. The shorthand flag of -n
-l
-j
were all taken (which were the potential logical options).
For usage, if I want to create a new Ethereum HD wallet and print out the indices from index 3 to index 8, I would use the following convention:
wagyu ethereum hd -i 3 -k 5
Ditto for importing an Ethereum HD wallet:
wagyu ethereum import-hd -m {mnemonic} -i 3 -k 5
Hello! Thanks for the awesome library!
I have an ethereum mnemonic and am trying to generate 10 addresses using BIP44. What's the best way to do this?
If I run
wagyu ethereum hd --count 10
it generates 10 separate wallets, which is not what I want.There sure are a lot of different ways of handling the path, but BIP44 defines the path as
m / purpose' / coin_type' / account' / change / address_index
.import-hd
only has a flag for--index
. I would like to set the account (and maybe change), too.This probably belongs on a separate issue, but while trying to figure this out, I think
--index
is not working like I expect it to.I expected "Path" to be
m/44'/60'/0'/0/9
like Ganache uses:For now, I can build the path manually, but it would be nice if wagyu could do this for me.