Most Secure Way To Create a Bitcoin Paper Wallet 2022?

I have seen some bad stories about bitcoinpaperwallet.com And really don’t trust anything else generating my public and private keys other than doing it locally on a computer that’s not connected to the Internet.

This is for a cold storage long-term savings “paper” wallet.

What is the best way to go about this?

Is the following the right way to do it? Can I be sure that the underlying packages are secure?

const bitcoin = require('bitcoinjs-lib')

// Generate a random private key const keyPair = bitcoin.ECPair.makeRandom() const privateKey = keyPair.toWIF() const publicKey = keyPair.getPublicKeyBuffer()

// Generate the public address const { address } = bitcoin.payments.p2pkh({ pubkey: publicKey })

console.log(Private Key: ${privateKey}) console.log(Public Address: ${address})



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/ESBdpGs
via IFTTT

Comments

Popular posts from this blog

Do Kwon’s Detention Prolonged Until 2024 As Montenegro Responds To Extradition Requests

Sam Bankman-Fried Trial Begins Tomorrow: 3 Reasons Ex-SEC Official Foresees Conviction

Ethereum Price Plummets 9% As Fed Chair Passes Hawkish Remarks