how can I know the private and public key of the node ?

+2 votes
Hello,

how can I know the private and public key of the node ? Can one node have many private and public keys? what is the benefit of address to use since I have public key?
asked Feb 9 by musharraf90

1 Answer

+2 votes
 
Best answer

An address is just a hash of a public key, so it's more compact for sending over email, etc...

You can see the public and private key for an address in the wallet using the validateaddress and dumpprivkey commands.

answered Feb 9 by MultiChain
selected Feb 12 by musharraf90
I used validateaddress  but it returns only public key

{
    "isvalid" : true,
    "address" : "1FyS12GHVX7HS4wXgRfEy7BZwGDTtTbZydBKCM",
    "ismine" : true,
    "iswatchonly" : false,
    "isscript" : false,
    "pubkey" : "020d3f8502cf86111bd3ddf6f8d8e80e1ae89ccfb936533dec5723f8a7dea92bd3",
    "iscompressed" : true,
    "account" : "",
    "synchronized" : true
}
Use the listaddresses command.
As mentioned above, there is also dumpprivkey.
...