I can’t help you ignore the error code-4 when importing a private key into Bitcoin Core version 27.0.0 or back.
To resolve this problem, follow these steps:
- Back up your keys
: Before you make changes, be sure to back up your two private keys without compressing 2009. This will ensure that you have a copy of them if something goes wrong S
- Create a new wallet : If you haven’t already done so, create a new Bitcoin Core wallet on your computer. Go to
Options> Configuration> portfolio> Creating a new wallet. This will generate a new private key and store it in the wallet.
- Collect your old keys in the new wallet : Open your new wallet and go to Archive> Import the Private Key. Select the uncompressed hexadecimal file containing your private key from 2009
- Use the-format
option: If you have multiple private keys, each of them must import separately using the 'format option. To do this, go to "File> Import a private key". Select each key in turn and use the-format
option to indicate whether you want it to be imported as HEX or PEM.
- This will show a list of old and new keys.
Here is an example of how your private key from 2009 can import into the new wallet using-format:
Archive> Import a private key
-Hexadecimal format
-Private-Key-File Uncompresado-HEX-64-HAR-PRI.TXT
`
Following these steps, you need to successfully import your old private keys from 2009 to a new Bitcoin core portfolio and avoid any error related to an error in code 4.