How are public keys stored in a wallet?

+1 vote
Hello,

I have a multiple questions about how MC stores addresses in the wallet:

1. Are public address are encrypted before being save in a wallet? or does anyone with physical access to the node can view the addresses.

2. If the wallet folder is cleared inside the node, would the node's wallet be emptied and would continue to work? or would it crash and stop working? because in other blockchain, you can just clear your wallet if necessary by just deleting the keystores.

Thanks in advance, and keep up the good work!
asked Dec 12, 2018 by SDVII

1 Answer

+1 vote
 
Best answer

I assume question 1 is about private keys. The answer is that they can be encrypted if you use the encryptwallet command, but this is optional.

As for the modifying the node's wallet, you should not do this while the node is running. If you want to be brave, you can stop the node, remove wallet.dat, and then restart the node with the -rescan option. This will of course lose all your private keys and any assets that were associated with them, so consider carefully.

answered Dec 12, 2018 by MultiChain
selected Dec 13, 2018 by SDVII
...