Create node address from a private key

+1 vote

I want to know if there is any way to pass a pre-create private key to a node creation so the node uses a "pre-known" address?

Also: can the node address be a multisig address?

asked May 15, 2017 by reiven

1 Answer

0 votes

You can use the importprivkey command to add a private key to the node's wallet, and you can add multisig addresses using importaddress. But I'm not sure what you mean why you ask "can the node address be a multisig address" because there is no such thing as a single node address. But if you mean the address that a node uses for handshaking with other nodes in the peer-to-peer protocol, this cannot be a multisig address.

answered May 16, 2017 by MultiChain
What i mean is the adress for handshaking/permissions/etc: there is any way to pass a privkey to the node/network creation so the FIRST address which hold all the permissions are known? (ie if we want to use a vanity address)
Not yet, but this is a good idea and we hope to add it in 1.0 beta 2.
Is there any available solution for this previous issue in the new version ?
Yes, there's been the initprivkey parameter for a while now that does this.