13
6
There are a lot of applications when someone would like to import a private key. However in wiki documentation they say it is very dangerous: https://en.bitcoin.it/wiki/How_to_import_private_keys
WARNING Before reading this page, users should note that messing with ECDSA private keys is very dangerous and can result in losing bitcoins, even long after the import. It is recommended that outside of self-generated vanity addresses, users should never import (or export) private keys.
and
Note that importing a key to bitcoind and/or Bitcoin-Qt may be dangerous and is not recommended unless you understand the full details of how it works.
Why is it that dangerous and what are the alternatives if you are using cold storage, a paper wallet or generating vanity addresses?
Related: Why so many warnings about importing private keys? (but it is about warnings on blockchain.info and not bitcoind). I'm not sure if the warnings are due to the same reason.
2This doesn't seem to answer the OP's question, as you don't really mention why /importing/ is dangerous... rather you talk about why leaving a key unerased is dangerous. – nmz787 – 2016-03-30T02:27:20.390
@nmz787 That's precisely the danger of importing a key provided to a user in any way except for an immediate sweep followed by never using said key again. It can be unerased at the level of the sender/party that generated it. – ζ-- – 2016-03-30T10:16:17.997
what if the private key was dumped by your own system (i.e. you created a new wallet locally, transferred in funds, then put that priv key into cold storage), and later you want to revive that by importing? – nmz787 – 2016-03-30T17:05:06.170
1@nmz787 I specifically state I am speaking about situations where weak or compromised keys are imported from outside. Although this answer is quite old I can edit it for you if you'd still like. – ζ-- – 2016-03-30T21:42:50.157