Author

Topic: How to "sweep" private key in electrum? (Read 14850 times)

legendary
Activity: 3682
Merit: 1580
June 25, 2017, 08:23:11 AM
#13
Those screenshots show creating a seeded HD wallet...
Then when it asks for the keystore, you want to select "Use public or private keys":

That's what I said.
sr. member
Activity: 439
Merit: 252
Get Paid to Play your Media on Current
thanks
HCP
legendary
Activity: 2086
Merit: 4361
Those screenshots show creating a seeded HD wallet... you want to use the following option when you select "File" -> "New/Restore":

After selecting a name for your wallet... select "Standard Wallet":


Then when it asks for the keystore, you want to select "Use public or private keys":


The next window will have a textbox where you can enter a list of private keys that you wish to import.


legendary
Activity: 3682
Merit: 1580
so there is no way to import a new address (and his private key) in electrum?

Yes. Create a new wallet using file > new/restore and when the keystore screen comes up choose "Use public or private keys". Then enter your private keys in the next screen.

Here are some screenshots:

https://bitcoinelectrum.com/creating-an-electrum-wallet/
sr. member
Activity: 439
Merit: 252
Get Paid to Play your Media on Current
June 24, 2017, 10:58:50 AM
#9
so there is no way to import a new address (and his private key) in electrum?
full member
Activity: 191
Merit: 100
October 16, 2014, 03:22:47 AM
#8
Be careful with sweeping without storing the private key: you might have to prove ownership of the private keys by signing a message.
Example for claiming refunds or requesting a transfer of ownership to another address.
hero member
Activity: 658
Merit: 500
October 10, 2014, 05:55:30 AM
#7
Sweeping is just sending all fund in that address to another one in your wallet. You don't have to do it in electrum. You can use your old client and send everything over.
hero member
Activity: 619
Merit: 500
October 10, 2014, 02:01:58 AM
#6
[...]
When spending bitcoins from an imported private key in electrum the change is sent back to one of the input addresses which may well be the imported private key's address. So you have to backup the wallet file or you may loose bitcoins. You also have to make sure the imported private key does not leak out meaning you can't leave the paper wallet lying about.
Isn't this configurable with the "Use change addresses" checkbox?
newbie
Activity: 31
Merit: 0
August 05, 2014, 01:10:07 AM
#5
Thanks, u are an expert!
legendary
Activity: 3682
Merit: 1580
August 04, 2014, 11:54:42 PM
#4
"When spending bitcoins from an imported private key in electrum the change is sent back to one of the input addresses which may well be the imported private key's address."

I thought electrum uses a fresh deterministic address for all change?  You're saying if u spend half of an imported privkey, then the change MAY go back into the same privkey? i thought that was a privacy no-no that only mobile wallets make the mistake of doing.

Electrum does it for transactions involving imported private keys only. For all other transactions a fresh change address is used.

Quote
So then what is the best way to "sweep" a private key into electrum?
You have to spend the whole amount or nothing?? (to prevent the possible reuse of addresses)
(i was thinking of testing with a small amount first)

thanks Abdussamad!

Yes, send the whole amount to a receiving address in your main account. Right click on the imported private key and use the send from option. Then in the amount field on the send tab enter exclamation point to have it automatically fill in the full amount you can send using that private key.
newbie
Activity: 31
Merit: 0
August 04, 2014, 07:58:49 PM
#3
"When spending bitcoins from an imported private key in electrum the change is sent back to one of the input addresses which may well be the imported private key's address."

I thought electrum uses a fresh deterministic address for all change?  You're saying if u spend half of an imported privkey, then the change MAY go back into the same privkey? i thought that was a privacy no-no that only mobile wallets make the mistake of doing.

So then what is the best way to "sweep" a private key into electrum?
You have to spend the whole amount or nothing?? (to prevent the possible reuse of addresses)
(i was thinking of testing with a small amount first)

thanks Abdussamad!
legendary
Activity: 3682
Merit: 1580
August 04, 2014, 06:05:41 PM
#2
Sweeping is where all the bitcoins in the private key are sent to another address in your wallet. The private key is not added to your wallet and once it is swept it contains no more bitcoins. Reasons why it is considered better than importing:

- You don't have to worry about securing the private key anymore. It is now empty and you can throw it away if you don't expect to receive more bitcoins to its address.

- The address where the bitcoins have been swept to is generated deterministically from your wallet seed. So it is protected by the single paper backup you made when creating the wallet. An imported private key would not be protected by such a backup.

Electrum currently does not have a sweep option although it is being added to the next version.

When spending bitcoins from an imported private key in electrum the change is sent back to one of the input addresses which may well be the imported private key's address. So you have to backup the wallet file or you may loose bitcoins. You also have to make sure the imported private key does not leak out meaning you can't leave the paper wallet lying about.
newbie
Activity: 31
Merit: 0
August 04, 2014, 04:14:00 PM
#1
For importing private key- Is the best way to import it, and then just spend it to one of your existing addresses? Even if u spend half the coin, the other half just goes to a change address in the same wallet right?

I never understood the big deal about "sweeping" privkeys.  Isn't my way just as secure?

You can do the same in Armory right?
I guess i would rather trust myself manually spending it & seeing the transaction, than adding another hidden "sweep" step to the process?  What is better about "sweeping" in armory, than just spending it to urself?
Jump to: