Need of explicit generation of public/private keypair...

+1 vote
Initially, I was assuming that MultiChain, implicitly handles generation of public/private key pair & sharing public key with connecting nodes.

But later, saw "createkeypair" API command.

In what circumstances this command shall be used ?
asked Apr 10, 2017 by GST

1 Answer

+1 vote

The purpose of the createkeypairs command is to allow you to generate new public/private key pairs which are not stored in the node's wallet. This can be useful if you want to keep the private key external to the node. Follow this tutorial for some examples of how to use this: http://www.multichain.com/developers/external-key-management/

answered Apr 10, 2017 by MultiChain
that's right; createkeypairs command generate new public/private key pairs.
It's understood that "private key" has to persisted into some secured DB or "Flat File".
But wondering, that,"importaddress" command, imports "public key" as well ?
Yes, you can pass a public key (or several) to importaddress, as well as an address.
...