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