Author

Topic: Feature request: private key importation (Read 988 times)

legendary
Activity: 1526
Merit: 1134
April 28, 2013, 05:36:19 AM
#14
The right way to do it is with deterministic wallets. Then you can have a paper wallet that doesn't have all the complicated issues with change addresses and privacy. But it would still need some nodes to index the UTXO set to make import fast, otherwise you have to rescan the chain from the birthday onwards, which is very slow. Fine for restoring from backups when you're not expecting to ever have to do it, less fine for other things. Some people want to use paper wallets not only for backups but to very frequently import, spend and delete the wallet. This use case is much more complicated to support.

In other words, to work well paper wallets need both changes in the protocol and upgrades of the clients.
hero member
Activity: 812
Merit: 1022
No Maps for These Territories
I heard Armory supports paper/offline wallets natively. Haven't tried, but may be worth taking a look.
legendary
Activity: 1526
Merit: 1134
Yes, exactly. People don't understand how the protocol works and how wallets work, then they lose their money. It's not hard to have a wallet app that understands paper wallets and guides users through the process, it's just that today none do it. It'd be a  good contribution.
sr. member
Activity: 351
Merit: 250
Of course, the other piece that needs to be in a client that imports private keys is the ability to spend from a specific address. If you believe that the act of importing a private key has potentially compromised the security of that key then all funds, once imported, need to be moved to a clean address. This also would address the "change" issue that I believe is being referenced when someone says "paper wallet imports make people lose their coins"
legendary
Activity: 2058
Merit: 1452
it's bad because people can trick you into importing a private key. your client will show that you have BTC. but if it's not sweeped to one of your addresses, both you and the other party has access to the coins.
member
Activity: 62
Merit: 10
April 27, 2013, 02:42:22 PM
#9
Quote
Yeah paper wallets are a great idea ... if your wallet software explicitly supports them. Which today none do. If your wallet app doesn't have explicit support for paper wallets then you are very, very likely to lose money with them. It's already happened

Really why?  My understanding is that the paper wallet has a private key on it so as long as the private key is safe the coins cannot be lost.  Isn't that the whole point of having a paper wallet?

Yes it is for long term savings but in the event you want to spend it, it needs to get to an online wallet somehow.  Why is using the import private key function a bad idea?  And what is the better way?
legendary
Activity: 1526
Merit: 1134
April 27, 2013, 11:39:52 AM
#8
Yeah paper wallets are a great idea ... if your wallet software explicitly supports them. Which today none do. If your wallet app doesn't have explicit support for paper wallets then you are very, very likely to lose money with them. It's already happened.
full member
Activity: 128
Merit: 100
April 27, 2013, 11:15:18 AM
#7
So if importing private keys is dangerous then what is the right way to spend money that is stored in a paper wallet?  I imagined you were supposed to import the private key of the paper wallet.
you're supposed to spend the input immediately, so there will be no funds left over in the paper wallet. this can be done by using a separate wallet to send to your main wallet, or by using coin control to make sure the paper wallet's inputs are spent.

I thought a paper wallet was for safe long term storage. That's what I've been doing with it.

legendary
Activity: 2058
Merit: 1452
April 27, 2013, 10:00:44 AM
#6
So if importing private keys is dangerous then what is the right way to spend money that is stored in a paper wallet?  I imagined you were supposed to import the private key of the paper wallet.
you're supposed to spend the input immediately, so there will be no funds left over in the paper wallet. this can be done by using a separate wallet to send to your main wallet, or by using coin control to make sure the paper wallet's inputs are spent.
member
Activity: 62
Merit: 10
April 27, 2013, 09:50:10 AM
#5
So if importing private keys is dangerous then what is the right way to spend money that is stored in a paper wallet?  I imagined you were supposed to import the private key of the paper wallet.
hero member
Activity: 812
Merit: 1022
No Maps for These Territories
April 27, 2013, 02:54:50 AM
#4
Importing/exporting individual keys is dangerous, and will never be supported in a friendly way as there's just too many ways to shoot yourself in the foot with it. It breaks the wallet abstraction as it allows private keys to exist in multiple places at once.

What would be acceptable is a "sweep" feature, that either once or regularly sweeps the incoming coins from a specified private key to the user's wallet using a transaction.
full member
Activity: 128
Merit: 100
April 26, 2013, 10:20:36 PM
#3
You might know this and probably won't be completely happy with it, but: the latest clients have a "Debug window" where RPC commands can be entered.  So it is as easy as Help -> Debug window -> Console -> Enter "importprivkey 5kj2..."

Most of the core devs seem to be against making this easy, see: https://github.com/bitcoin/bitcoin/pull/2050 .

Wow. Ok whatya gonna do... It's the hard way then....
sr. member
Activity: 448
Merit: 254
April 26, 2013, 05:13:57 PM
#2
You might know this and probably won't be completely happy with it, but: the latest clients have a "Debug window" where RPC commands can be entered.  So it is as easy as Help -> Debug window -> Console -> Enter "importprivkey 5kj2..."

Most of the core devs seem to be against making this easy, see: https://github.com/bitcoin/bitcoin/pull/2050 .
full member
Activity: 128
Merit: 100
April 25, 2013, 06:56:32 PM
#1
First, apologies if this is the wrong place or this has been requested before - but we really need an easy way to import a private key from the ever growing in popularity paper wallets.

No messing about with RPC, please.... Just a nice menu choice.

Jump to: