I’ve seen some unhealthy tales about bitcoinpaperwallet.com And actually don’t belief anything producing my private and non-private keys aside from doing it regionally on a pc that’s not related to the Web.
That is for a chilly storage long-term financial savings “paper” pockets.
What’s the easiest way to go about this?
Is the next the proper strategy to do it?
Can I make sure that the underlying packages are safe?
const bitcoin = require(‘bitcoinjs-lib’)
// Generate a random personal key
const keyPair = bitcoin.ECPair.makeRandom()
const privateKey = keyPair.toWIF()
const publicKey = keyPair.getPublicKeyBuffer()
// Generate the general public handle
const { handle } = bitcoin.funds.p2pkh({ pubkey: publicKey })
console.log(Non-public Key: ${privateKey})
console.log(Public Tackle: ${handle})
