Generating new addresses from external wallet private key

+4 votes
Once an external private key, public key and address are generated for use with a lite wallet, where the user has to manage their own private key, what's the easiest way to generate new addresses for that private key? We will use an external library like BitcoinJs, but I read on https://www.multichain.com/developers/address-key-format/ that we will have to modify it a little bit?..Is that correct?.. Have any libraries been created already that work with Multichain, or do we need to do that ourselves?
asked Sep 25, 2017 by mark

1 Answer

+1 vote

Each private key corresponds to a single address, so I'm not sure I understand the question.

If you're talking about multiple private keys and their associated addresses, do you have a good reason not to use MultiChain's createkeypairs API?

answered Sep 26, 2017 by MultiChain
If someone with a private key is using a lite wallet, they will probably want to issue multiple addresses to receive payments, so that it would be more difficult for someone to know their asset balance. Or am I barking up the wrong tree here..:-)
https://www.multichain.com/qa/3440/hierarchical-deterministic-wallet-on-multichain

I found this, so that helps. We would be running an API script that would give permissions to each address as it was created, based on KYC results on another chain.
Yes, you're welcome to use an HD scheme to generate multiple private keys and addresses from a seed key. But this would happen outside of MultiChain, and each address would need to be explicitly permissioned.
...