Generate my own public/private key to secure my bitcoins I have a few bitcoins on a bitcoin platform (Kraken). I do not trust any bitcoin platform. I want to own my bitcoins.

I do not trust Ledger devices too.

What i want to do is to generate my own public/private key and keep this keys on a paper in my pocket.

Here is what i want to do. Can you tell me if it is good:


First, i want to build a bitcoin node on a dedicated server 

git clone -b 0.18 https://github.com/bitcoin/bitcoin.git
Next, i will wait to download all blocks on this server.
Next, i will generate an address:

bitcoin-cli  getnewaddress
Next, i will send all my bitcoins to this address through kraken website
Next, i will export my public/private key with this command:

bitcoin-cli dumpwallet export.txt


Next, i will print or save export.txt file
Next, i will ERASE the dedicated server.



Can you confirm me i will own my bitcoins if i only keep export.txt file ?
As long as you have the wallet dump, you will be able to access your bitcoin.

However, your approach doesn't line up - if you are already at the point of not trusting hardware wallets, trusting a random dedicated server is not a reasonable approach. In fact, a dedicated server may be a worse choice simply because you have no control over the storage drives - it is trivial to recover deleted files from most drives, especially when such a small amount of data is being written.

Additionally, you also are exposed to any compromise on your local machine. The moment you copy over the wallet dump, or even cat it, anyone who has reasonable access to your local machine via a remote access tool or other malware will be able to see the keys.

The entire point of devices like the ledger is to ensure that the private keys are never, ever placed on any computer at all. They exist solely on that device, and on the paper backup of the mnemonic words.

If you want to go a step further, you can use something like the Cold Card (this is not an endorsement, I have no relation to them, and cannot vouch for them). These aren't even connected to a computer at all, and work with PSBTs via SD cards.