Bitcoin Forum
April 01, 2026, 04:15:57 PM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
  Print  
Author Topic: Please, I need help for converting a very old btc private key to WIF.  (Read 834 times)
bluecat4 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 12


View Profile
July 01, 2025, 11:37:08 PM
 #21


Many thanks Cricktor and nc50lc. Best regards.
bluecat4 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 12


View Profile
July 04, 2025, 06:46:36 AM
 #22


Hi, I have a new doubt: Is coin control possible on a watch-only wallet in Electrum?

Thanks.
LoyceV
Legendary
*
Offline Offline

Activity: 3990
Merit: 21514


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
July 04, 2025, 06:55:33 AM
Merited by ABCbits (1)
 #23

Is coin control possible on a watch-only wallet in Electrum?
Yes. Click View > Coins to enable the Coins tab if it's not showing yet. On the Coins tab, CTRL-select the ones you want, right-click to Add to coin control.

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
bluecat4 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 12


View Profile
July 04, 2025, 06:59:44 AM
 #24

Is coin control possible on a watch-only wallet in Electrum?
Yes. Click View > Coins to enable the Coins tab if it's not showing yet. On the Coins tab, CTRL-select the ones you want, right-click to Add to coin control.

Ok, perfect. Thanks.
bluecat4 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 12


View Profile
July 19, 2025, 06:59:49 AM
 #25


I found a very old Bitcoin private key. Searching online, I discovered that my private key is base64, has 44 characters, and ends in an equal sign. I only have the private key, I don’t have the seed phrase. I need to convert the private key to WIF format to import it into Electrum.


After some days-off, I continue with my normal life and with the “treasure hunting”. At first, like it’s in my first message I thougth it was base64, now I think there’s also could be base58Check. I thought this was going to be easier after the very serious problem to find it. I wasn’t able to convert it with bitaddress offline, it says something like “this is not a valid private key”. I’m sure it’s a bitcoin private key, I found it in a pen drive in 2 files (both with the same code), one of them with the name “btc private key”. Of course it’s possible that maybe I made a terrible mistake and copied the code wrong. To avoid this I copied and pasted it twice, includind characters that were not part of the key.

The private key or the wallet to be more precise was created in the old bitcoin client, bitcoin qt, in 2010. It has 44 characters and ends in an equal sign like I said in my first message. Additionally, there are 2 characters at the beginning and 2 at the end of the code that are not part of the private key. They are: =_ at the beginning and _= at the end. Inside are the 44 chars of the private key.

The code contains a prefix that starts with UTF-8. Bitcoin qt offered several options, at least two, of formats for the private key at that time: I remember there was a format with many characters ( maybe hex ? ) and at least there was another with far fewer chars. I chose the shorten version possible.

When I logged into bitcoin qt with my key, I think, if I remember correctly, I didn’t need to type the 44 chars. The reason was because the first characters were written on the screen by the program: the prefix UTF-8.

I’ve been thinking that maybe the prefix has one encoding and the rest of the key has another and that’s why bitaddress doesn’t recognize it as valid. In that case, it wouldn’t make much sense for it to be base64 when base64 is 44 chars, so why have two encodings instead of one ? Another case could be that it was base58Check and the prefix served to reduce the number of chars, but… why does it end in =?

I don’t know where the prefix ends, so the key starts with UTF-8, ends with =, and at some character the prefix ends and at the next one the rest of the key continues. I think this may be the biggest difficulty.

I downloaded Python yesterday on the same computer I used bitaddress offline. I hope this is the last time I connect to the internet with it, for security reasons. I have no programming knowledge like I said in my first post, but I guess I’ll have to use python for this.

Do you think that the key can actually have 2 different encodings ? Could this have any solution ?

Sorry for the length of this post. Many thanks.
Cricktor
Legendary
*
Offline Offline

Activity: 1442
Merit: 3812



View Profile
July 19, 2025, 01:49:56 PM
Last edit: July 19, 2025, 02:08:34 PM by Cricktor
Merited by vapourminer (4)
 #26

You may want to have a look at which characters you find in your encoded string. As of https://en.wikipedia.org/wiki/Base64 Base64 uses all A-Z, a-z, 0-9 and two other characters, usually + and / and = for padding.

Base58check uses only a smaller subset and avoids symbols that could be ambigous in most type faces. Additionally it has a partial hash checksum embedded. See here for symbols of Base58: https://learnmeabitcoin.com/technical/keys/base58/

In some cases it might not be possible to distinguish Base64 from Base58 depending on the sample string size. Base58check should be distinguishable because it must pass the checksum test as long as it's not crippled.

A WIF private key is composed of a prefix byte, the private key bytes, optional compression indicator byte and finally a partial hash checksum of four bytes, then all encoded with Base58. See e.g. here for details: https://learnmeabitcoin.com/technical/keys/private-key/wif/

I haven't used Bitcoin-GUI as now Bitcoin Core was called in those early days of 2010. I used Bitcoin-GUI on Windows OS in 2011 earliest. In 2011 I didn't fiddle much around with it, just mined some coins and moved them around. I didn't touch private keys at that time at all, didn't see a need for it until I had to recover a wallet from a dying harddisk many years later.

I don't think the standard Bitcoin client software ever asked for a wallet encryption passphrase when it was opened. But I may not understood what you were writing about your early wallet.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
bluecat4 (OP)
Newbie
*
Offline Offline

Activity: 14
Merit: 12


View Profile
July 21, 2025, 12:05:49 AM
Last edit: July 21, 2025, 12:39:02 AM by bluecat4
 #27

You may want to have a look at which characters you find in your encoded string. As of https://en.wikipedia.org/wiki/Base64 Base64 uses all A-Z, a-z, 0-9 and two other characters, usually + and / and = for padding.

Base58check uses only a smaller subset and avoids symbols that could be ambigous in most type faces. Additionally it has a partial hash checksum embedded. See here for symbols of Base58: https://learnmeabitcoin.com/technical/keys/base58/

In some cases it might not be possible to distinguish Base64 from Base58 depending on the sample string size. Base58check should be distinguishable because it must pass the checksum test as long as it's not crippled.

A WIF private key is composed of a prefix byte, the private key bytes, optional compression indicator byte and finally a partial hash checksum of four bytes, then all encoded with Base58. See e.g. here for details: https://learnmeabitcoin.com/technical/keys/private-key/wif/

I haven't used Bitcoin-GUI as now Bitcoin Core was called in those early days of 2010. I used Bitcoin-GUI on Windows OS in 2011 earliest. In 2011 I didn't fiddle much around with it, just mined some coins and moved them around. I didn't touch private keys at that time at all, didn't see a need for it until I had to recover a wallet from a dying harddisk many years later.

I don't think the standard Bitcoin client software ever asked for a wallet encryption passphrase when it was opened. But I may not understood what you were writing about your early wallet.


UTF-8 contains a hyphen, this symbol does not appear in the base64 alphabet. The index 63 is / or _ according to some articles I've red ( but the char - it's not on the list ). I think there can be two encodings, because UTF-8 (because of the hyphen) cannot be base64.

English isn't my native language, and I sometimes struggle to express myself. What I mean is that with this version of the private key, I didn't have to type the full key when logging in, so it wasn't a password. Let's take an example with a fake key, for example: UTF-8_ZZ_Z1aAAAAAAAAAAAAb6(...)=, and the prefix is UTF-8_ZZ_Z1, so I would have to type the rest aAAAAA(...)=, without typing the prefix.The problem is that I don't know where the prefix ends in my key. I use the word "prefix", but I don't know if it's correct.

Thanks.
Cricktor
Legendary
*
Offline Offline

Activity: 1442
Merit: 3812



View Profile
July 21, 2025, 09:16:33 PM
 #28

I know "UTF-8" as name or designation for a character encoding scheme which is able to encode all over 1 million Unicode symbols. It uses variable length encoding with one to four bytes per single symbol. See https://en.wikipedia.org/wiki/UTF-8 and somewhat more elaborate wording when you ask Google for "what is UTF-8" and look at the KI generated "search result" or rather explanation.

Regarding the rest of the "prefix", I can't provide any help because I haven't seen such a construct and have no idea what has generated such a string of symbols/characters.

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
Pages: « 1 [2]  All
  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!