How is someone not able to steal my bitcoin with Dumpprivkey command? In an online course the instructor told us that anyone can find the private key of a wallet by using dumpprivkey(address), address being the address that is created from the key (which is public in a transaction on the bitcoin chain).He said that this command returns a WIF object. I assume that is not true because then anyone would steal anyone's bitcoin by looking up the addresses in tx's on the cahin and running the command. Can someone enlighten me about this dumpprivkey command please ?
I hope he meant that they can get the private key for any address in their wallet. Obviously, the software cannot dump a key it does not have.