Bitcoin Forum
June 26, 2024, 05:47:08 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Using Electrum for spending from a paper wallet  (Read 1198 times)
cyberguy (OP)
Jr. Member
*
Offline Offline

Activity: 34
Merit: 4


View Profile WWW
May 18, 2016, 11:30:44 PM
Last edit: May 18, 2016, 11:53:46 PM by cyberguy
 #1

It is generally recommended to use a paper wallet like a piggy bank. i.e. you may put funds as many times as you want, but when you spend, withdraw all the funds in the paper wallet and transfer them to another bitcoin address you own. As I understand, this is because importing the private key of the paper wallet introduces a security hole, where the key may be retained on the device used for withdrawing funds and anybody who gains access to it will be in a position to steal any funds at the corresponding address.

If the following procedure is adopted, will it be safe to spend from the paper wallet address multiple times, just like spending from any ordinary address stored in a regular desktop wallet ? I would like to know the views of others.

Procedure
(1) Prepare a paper wallet in a secure way and receive BTC to the address given on it
(2) Have a dedicated PC to use for spending. This can be any old PC with at least 2GB of RAM and capable of booting from a CD or DVD. Ensure that all internal storage media are disconnected from the motherboard except a single CD/DVD drive. Do not connect any external peripherals except the mouse, keyboard, monitor and router/modem
(3) Download and burn to a CD/DVD the latest version of TAILS
(4) Boot the machine with the TAILS live CD and connect to the internet. Use a direct connection to the internet and do not connect via a LAN.
(5) Start Electrum (it comes with TAILS) and use the recovery option with the private key of the paper wallet to create a new wallet, enter a password and confirm when prompted and allow synchronization. This will only have the paper wallet address. (The wallet data will be saved only in the RAM since this is a live session. For added security we use a password so that even this is in encrypted form)
(6) Do any transactions you want and shutdown the computer. Do not save any data for future sessions using another media such as a USB drive. (Electrum will take care that change is returned to your own address, but always check before signing and broadcating)
(7) Repeat the above procedure whenever you need to spend from your paper wallet

The only inconvenience that I notice is that the private key will have to be typed every time the computing is started up. Are there any security risks in the above procedure ?
bitbaby
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile WWW
May 19, 2016, 04:45:44 AM
 #2

It is generally recommended to use a paper wallet like a piggy bank. i.e. you may put funds as many times as you want, but when you spend, withdraw all the funds in the paper wallet and transfer them to another bitcoin address you own. As I understand, this is because importing the private key of the paper wallet introduces a security hole, where the key may be retained on the device used for withdrawing funds and anybody who gains access to it will be in a position to steal any funds at the corresponding address.

If the following procedure is adopted, will it be safe to spend from the paper wallet address multiple times, just like spending from any ordinary address stored in a regular desktop wallet ? I would like to know the views of others.

Procedure
(1) Prepare a paper wallet in a secure way and receive BTC to the address given on it
(2) Have a dedicated PC to use for spending. This can be any old PC with at least 2GB of RAM and capable of booting from a CD or DVD. Ensure that all internal storage media are disconnected from the motherboard except a single CD/DVD drive. Do not connect any external peripherals except the mouse, keyboard, monitor and router/modem
(3) Download and burn to a CD/DVD the latest version of TAILS
(4) Boot the machine with the TAILS live CD and connect to the internet. Use a direct connection to the internet and do not connect via a LAN.
(5) Start Electrum (it comes with TAILS) and use the recovery option with the private key of the paper wallet to create a new wallet, enter a password and confirm when prompted and allow synchronization. This will only have the paper wallet address. (The wallet data will be saved only in the RAM since this is a live session. For added security we use a password so that even this is in encrypted form)
(6) Do any transactions you want and shutdown the computer. Do not save any data for future sessions using another media such as a USB drive. (Electrum will take care that change is returned to your own address, but always check before signing and broadcating)
(7) Repeat the above procedure whenever you need to spend from your paper wallet

The only inconvenience that I notice is that the private key will have to be typed every time the computing is started up. Are there any security risks in the above procedure ?
As soon as you take a paper wallet key to an online machine, you can consider it compromised, this is why it is recommended to use a paper wallet only once and transfer the rest of the balance to the next unused one, if you still persist on using just one cold wallet then you need to make transactions online and sign them offline, which would require you to run a watch only wallet and that requires a master public key.

As for the typing the private key every-time, you could use a third party QR code scanner with a webcam but ONLY the one which can be installed off-line.

Why bother with paper wallets when you can run an offline electrum for cold storage on a different machine or air gapped OS and its watch only version on an online machine, your private key(s) always remain off-line and your coins are safe forever, only thing you have to do is keep back-up(s) of your seed.

cyberguy (OP)
Jr. Member
*
Offline Offline

Activity: 34
Merit: 4


View Profile WWW
May 19, 2016, 06:34:20 AM
 #3

As soon as you take a paper wallet key to an online machine, you can consider it compromised, this is why it is recommended to use a paper wallet only once and transfer the rest of the balance to the next unused one, if you still persist on using just one cold wallet then you need to make transactions online and sign them offline, which would require you to run a watch only wallet and that requires a master public key.

Can we consider the paper wallet as compromised even after taking all the precautions mentioned in my description.
(1) Using a dedicated machine with no writable media
(2) Using TAILS - clean Linux OS with no malware
(3) Not using the persistance feature of TAILS
(4) No connection to any LAN

The private key will be written to the RAM, since the home drive of the user will exist in RAM only, by using a password we ensure that what gets written to RAM is the encrypted pasword.
bitbaby
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1000



View Profile WWW
May 20, 2016, 02:48:55 AM
 #4

As soon as you take a paper wallet key to an online machine, you can consider it compromised, this is why it is recommended to use a paper wallet only once and transfer the rest of the balance to the next unused one, if you still persist on using just one cold wallet then you need to make transactions online and sign them offline, which would require you to run a watch only wallet and that requires a master public key.

Can we consider the paper wallet as compromised even after taking all the precautions mentioned in my description.
(1) Using a dedicated machine with no writable media
(2) Using TAILS - clean Linux OS with no malware
(3) Not using the persistance feature of TAILS
(4) No connection to any LAN

The private key will be written to the RAM, since the home drive of the user will exist in RAM only, by using a password we ensure that what gets written to RAM is the encrypted pasword.
Maybe/maybe not, but the term cold wallet refers to that it must stay off-line which is why it is recommended to not use a paper wallet twice but if you're confident that its safe you can go ahead and re-use it but I wouldn't suggest this to others. It isn't like it costs anything to make paper wallets, why go with all the above steps which are tiresome, when you can simply print any number of paper wallet and use them one after the another, which is much easier to do. Or as I mentioned before running a cold wallet with Electrum is even easier.

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!