Author

Topic: Not able to private keys into Electrum (Read 270 times)

legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
September 14, 2021, 09:57:31 PM
#6
-snip- Do you know if Electrum ONLY accepts MASTER private keys (instead of only private keys) right now?
It depends on the type of Electrum wallet where you're importing private keys.
If you're importing to an existing wallet, you'll only be able to import to an "[Imported]" wallet, any other wallet will only have "sweep".

If into a new wallet, the "import bitcoin addresses or private keys" option in the new wallet wizard should work for private keys.
legendary
Activity: 3374
Merit: 3095
Playbet.io - Crypto Casino and Sportsbook
September 14, 2021, 12:26:58 PM
#5
Not being able to impor private key. Do you know if Electrum ONLY accepts MASTER private keys (instead of only private keys) right now?

Just adding this on OmegaStarScream suggestion above.

When importing to Electrum check the button info you will see this


Choose any script type depending on what address type if it's legacy it should be p2pkh: or if its segwit then it should be p2wpkh:

Sample:
Code:
p2pkh:yourprivatekeyhere
p2wpkh-p2sh:yourprivatekeyhere
p2wpkh:yourprivatekeyhere

Now it should be work after you import if it's still not then you maybe got the wrong key just follow the guide posted above by OmegaStarScreem on how to export the private key from Armory.
staff
Activity: 3500
Merit: 6152
September 14, 2021, 10:41:49 AM
#4
Not being able to impor private key. Do you know if Electrum ONLY accepts MASTER private keys (instead of only private keys) right now?

No, that's not the case. It should work fine as long as the private key is valid. Here, take a look at this topic: https://bitcointalksearch.org/topic/m.43255691

It's a step-by-step guide showing you how to export private keys from armory and sweep them into electrum.
newbie
Activity: 1
Merit: 0
September 14, 2021, 10:17:05 AM
#3
Not being able to impor private key. Do you know if Electrum ONLY accepts MASTER private keys (instead of only private keys) right now?
legendary
Activity: 3682
Merit: 1580
July 27, 2018, 12:46:49 PM
#2
the private keys have to be in wallet import format (WIF) or in mini key format. WIF private keys start with 5, L or K. mini private keys start with S. Examples are given below:

https://en.bitcoin.it/wiki/Private_key#Base58_Wallet_Import_format

Armory probably exports the private keys in WIF or plain hex format. I also believe it inserts spaces between the characters. If that's the case then remove the spaces before you import them.

If the priv keys are hexadecimal and not in WIF you can convert them using a python script or the electrum python console. I suggest creating a standard electrum wallet making sure to note down the seed then going to view menu > show console, switch to console tab and typing this in there:

Code:
hexpriv=""
bitcoin.serialize_privkey(bytes.fromhex(hexpriv), True, "p2pkh")

It'll then spit out your priv key in WIF which you can sweep via wallet menu > private key > sweep or import into a new wallet if you prefer.

When you're done be sure to clear the console history or your private keys will be saved in plain text to disk:

Code:
window.console.history = []


edit2: Thanks to SombreNight for help with that last command which clears the console history!
newbie
Activity: 9
Merit: 0
July 27, 2018, 12:25:08 PM
#1
I'm trying to import the private keys from my Armory wallet into Electrum but when I select the "import bitcoin adresses or private keys" option and enter my private key the "next" button doesn't work. It stays grey and is can't be clicked. I already tried deleting and redownloading Electrum. Is there anything I could do?
Jump to: