Where are the node key pair is stored ?

+1 vote
I have been testing new version of multichain, and I wonder where is the node keypair is stored, and how about the new address keypair ?

Every time I try to generate new address, is it belong to node keypair, if so how can we generate separated key pair for specific address we wanted too in Multichain ?
asked Nov 7, 2017 by veyhong

1 Answer

0 votes
 
Best answer

MultiChain stores its key pairs inside the node's wallet file, called wallet.dat

Each node wallet can store multiple key pairs / address, and there's no single address that has any special status from the perspective of the wallet.

answered Nov 7, 2017 by MultiChain
selected Nov 9, 2017 by veyhong
can we generate wallet address in multichain: an address that have it own key pair and can generate new address using it own privateKey ?
Yes, of course, this is what the getnewaddress API does.
But I don’t see any private key response. And also when we are doing tx there is no need to input key in order to sign .
After calling getnewaddress you can obtain the private key for it using dumpprivkey.

For high-level transaction APIs the node automatically signs with the necessary private key before broadcasting. If you prefer you can use createrawsendfrom to pre-build a transaction and then sign and send it in separate steps via signrawtransaction and sendrawtransaction.
...