Search content
Sort by

Showing 16 of 16 results by bluecat4
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 21/07/2025, 00:05:49 UTC
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 ).

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 had 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.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 19/07/2025, 06:59:49 UTC

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 fitst, 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.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 04/07/2025, 06:59:44 UTC
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.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 04/07/2025, 06:46:36 UTC

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

Thanks.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 01/07/2025, 23:37:08 UTC

Many thanks Cricktor and nc50lc. Best regards.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 30/06/2025, 17:20:45 UTC

I learned how to freeze UTXOs and select which ones to spend with Electrum. Does Trezor also manage UTXOs?

Just out of curiosity, my other question is whether something similar to what happened to this person in 2010 ( https://bitcointalk.org/index.php?topic=782.0 ) could happen. He sent a bitcoin to himself and lost all the change.

Thanks. 
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 25/06/2025, 21:22:40 UTC
-snip-
I think I understand.

So, I see that the uncompressed WIF private key has a direct relationship with the uncompressed master public key. And it works in the same way between the compressed WIF private key and the compressed master public key.
Good,
But since you're pertaining to a single private key, just drop the "master" in its public key pair.
Because that's a commonly used term used to define the public key pair of the "master private key" which is where the child extended private/public keys and private/public keys of an HD wallet are based from.
The "m" in the derivation path (e.g. m/44'/0'/0').


Ok, I think it's clear. So, it's much better and more accurate to say compressed public key and uncompressed public key without the word "master" when there's only one private key.

Thanks.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 24/06/2025, 16:46:47 UTC
Firstly, I’ll check the balance with the uncompressed master public key and the compressed master public key using 2 watch-only wallets. If the balance is different, I’d need to import both WIF private keys. If the balance is the same, my idea is to import the uncompressed WIF.
Third option: if both balances are zero, check the addresses on a block explorer because of this:
It is possible your old Bitcoins were sent to pubkey instead of the Bitcoin address. If that's the case, Electrum can't handle "send to pubkey" inputs so you can't use it to sign offline.

Good to know. It's important to keep this possibility in mind.
Thanks.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 24/06/2025, 15:21:58 UTC
So, I don't understand how the WIF private key depending if it's compressed or uncompressed can affect the UTXOs.
But first, take note that WIF is encoded with or without a "compressed byte" flag that tells the client which pair public key form to compute from it.
So, compressed and uncompressed WIF specifically point to their corresponding compressed and uncompressed pubKey format.

Then, simplest explanation to the UTXO: it's "locked" using the hash of the public key. (Pay-to-Pub-Key-Hash)
Since compressed and uncompressed pubKeys are entirely different, their hashes will be different.
So the UTXO created with them only corresponds to the public key that can reproduce its hash.

I think I understand.

So, I see that the uncompressed WIF private key has a direct relationship with the uncompressed master public key. And it works in the same way between the compressed WIF private key and the compressed master public key.

Firstly, I’ll check the balance with the uncompressed master public key and the compressed master public key using 2 watch-only wallets. If the balance is different, I’d need to import both WIF private keys. If the balance is the same, my idea is to import the uncompressed WIF.

Many thanks.
Post
Topic
Board Bitcoin Technical Support
Merits 1 from 1 user
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 22/06/2025, 20:58:48 UTC
⭐ Merited by vapourminer (1)
Ok, I understand, so for importing the private key, it's much better to use the WIF not compressed as in your example. I think everything's clear.


It actually doesn't hurt if you import both the uncompressed and the compressed WIFs into your wallet. That way you don't miss any UTXOs.


Please, could you explain this? It's the only part of your message I don't understand. I'm learning about UTXOs now ( the concept and how to freeze UTXOs in Electrum ). Maybe, I have no funds, I have no idea, it's been a long time since I created the wallet. But prevention is better than cure and very old addresses suffer dusting attacks.

So, I don't understand how the WIF private key depending if it's compressed or uncompressed can affect the UTXOs.

Thanks.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 22/06/2025, 20:33:29 UTC
Thank you very much LoyceV !

Sorry for not answering before. I've been very busy and just logged back in. Ok, I understand, so for importing the private key, it's much better to use the WIF not compressed as in your example. I think everything's clear.

And as was said above, do not put it online if you think there could be any significant amount of bitcoin there.  It is better to be safe than to lose a significant amount of value.


Yes, sure. I have no idea if there are funds. I hope so.

Thanks for your comment. Best regards.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 20/06/2025, 18:43:20 UTC
I think in addition to having Electrum on the laptop offline, it can also be necessary to buy a hardware wallet.

If you're willing to learn, consider install and using one of Linux distro (such as Linux Mint) on that offline laptop.

Quote
Bitaddress gives 2 public keys: the public key ( 130 characters ) and the compressed public key ( 66 characters ). Are both the master public key ? Which of the 2 public keys do I need to create a watch only wallet ? It’s important not to expose the private key.
In Electrum, you'll just use the Bitcoin Address. Considering it's old, you probably need the one that isn't "Compressed". If you use my test-key from the quote above, it's this address:
1DBZmNMC69PPbC1wjGYaagXQKiba2e5NdS
You won't need the 130 or 66 character hex keys, you'll need the WIF (again: not Compressed):
5KMWmYkn5YWkJnUDG4utD9L1HXQv3DBseqqCGsQXmthcEerbA7k

Personally i would recommend to copy Bitcoin address from compressed and uncompressed public key just to be sure.

Thank you very much to both of you.
Post
Topic
Board Bitcoin Technical Support
Re: Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 20/06/2025, 18:26:08 UTC

Thank you very much LoyceV !

Sorry for not answering before. I've been very busy and just logged back in. Ok, I understand, so for importing the private key, it's much better to use the WIF format as in your example. I think everything's clear.
Post
Topic
Board Bitcoin Technical Support
Merits 11 from 4 users
Topic OP
Please, I need help for converting a very old btc private key to WIF.
by
bluecat4
on 19/06/2025, 16:26:19 UTC
⭐ Merited by LoyceV (4) ,klarki (4) ,ABCbits (2) ,PowerGlove (1)

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. I have no programming knowledge. I’ve been following a Python tutorial on Youtube for some weeks.

I think it would be better to use bitaddress.org instead of Python. It’s more practical, and because I don’t know how to program. I would use a laptop that has never been connected to the internet.

The first step would be to connect it to the internet for the first and only time, download the Electrum app and go to bitaddress.org. The second step would be to disconnect the internet. The third step would be to automatically convert my base64 private key to WIF in bitaddress offline.The fourth step would be to get the results in bitaddress and save them.

Bitaddress gives 2 public keys: the public key ( 130 characters ) and the compressed public key ( 66 characters ). Are both the master public key ? Which of the 2 public keys do I need to create a watch only wallet ? It’s important not to expose the private key.

I think in addition to having Electrum on the laptop offline, it can also be necessary to buy a hardware wallet.

I tested bitaddress offline with an example of a private key from a post of other forum. The result is :

- 2 Bitcoin addresses with QR codes.

- The public key and the compressed public key.

- 4 private keys in different formats.

Do you recommend using bitaddress offline ? Could you help me ?

Sorry for the length of this post. Many thanks. Best regards.
Post
Topic
Board Primeros pasos y ayuda
Re: He encontrado una clave privada de btc, ¿cómo pasarla a wif?
by
bluecat4
on 03/06/2025, 22:59:55 UTC
Muchas gracias por responder, trato de hacer clic en el link que me has puesto pero no me sale nada. ¿Podrías volver a poner el enlace?

Siento no haber respondido antes, y es que acabo de ver el mensaje ahora mismo. Estuve revisando el post durante los siguientes días a la publicación y no había ninguna respuesta. Escribí un post similar en otro foro un mes antes y no tuve ningún comentario, así pues pensaba que aquí iba a pasar lo mismo.

Desde hace varios días estoy siguiendo un tutorial de python en youtube ( no pongo aquí el enlace para que no me echen por spam ), dura más de 5 horas y ya voy por la tercera parte. Me viene muy bien pues mis conocimientos de programación son inexistentes como ya dije en mi primer mensaje.

Buscando información en internet he encontrado esto:

1) Para comprobar si efectivamente mi clave privada es base64:

import base64

string = input("Input base64 here:aquí pondría mi clave")

print("Decode string: )   (NOTA: ¿Tendría que poner la clave aquí de nuevo tras : ?)

print (string_decode)    (NOTA: Supongo que el resultado debe ser True o False)


2) Para pasar de base64 a WIF:

import BitcoinPrivateKey

privkey = BitcoinPrivateKey (privKey)

privkey = privkey.to_wif(aquí mi clave privada base64)

print privkey   (NOTA: supongo que me tiene que devolver la clave en formato wif )


Mi idea es usar un ordenador que no se ha conectado nunca a internet. Me he descargado VisualCode en otro ordenador, ¿ tendría que pasar el programa VisualCode del pc conectado al pc sin conexión por ejemplo mediante un pen drive ?


Muchas gracias. Saludos.

Post
Topic
Board Primeros pasos y ayuda
Topic OP
He encontrado una clave privada de btc, ¿cómo pasarla a wif?
by
bluecat4
on 11/05/2025, 00:27:14 UTC

He encontrado una clave privada de bitcoin muy antigua. Buscando en internet he averiguado que mi clave privada es del tipo base 64, tiene 44 caracteres y termina en un signo igual. Solamente tengo la clave privada, no tengo la frase semilla. Necesito convertir la clave privada en formato WIF para poder importarla en Electrum.

Este artículo lo explica en el apartado "Private Key to WIF": https://en.bitcoin.it/wiki/Wallet_import_format , pero la mayoría de las cosas no las entiendo, y es que no tengo conocimientos de programación.

¿ Podría alguien explicarme el proceso paso a paso ? ¿ Hay algún programa para hacer esto ? ¿ Se puede usar Power Shell de Windows ?

Siguiendo el ejemplo de " Private key to WIF " del artículo parece claro que hay que añadir 80 al comienzo de la clave. En el punto 3 ya me pierdo, ¿ cómo se genera SHA- 256 ?

El punto 5 dice hay que coger los 4 primeros bytes del segundo SHA- 256 hash. En el ejemplo equivale a 8 caracteres. ¿ Serían siempre 8 caracteres ?

Finalmente, no entiendo que tengo que hacer en el punto 7.

Utilizaría para ello un portatil que no se ha conectado nunca a internet.

Gracias por leerme. Saludos.