chatch/stellar-hd-wallet

How do you create/add additional keypairs?

chrisabrams opened this issue · 2 comments

Since you can select the index of the keypair, how would you create/add new ones?

hi @chrisabrams, all keys are generated deterministically from the seed. so if you need a new one just pick a new index down the chain and fetch the keypair for that index.

specifically, use getKeypair:

wallet.getKeypair(idx)