DEV Community

Discussion on: Build a p2p network and release your cryptocurrency

Collapse
 
talk2tim profile image
talk2tim

Nice work. I am quite the beginner and i have been following this tutorial from the part 1. Please how did you generate the pairs that you used here?

const MINT_PRIVATE_ADDRESS = "0700a1ad28a20e5b2a517c00242d3e25a88d84bf54dce9e1733e6096e6d6495e";
const MINT_KEY_PAIR = ec.keyFromPrivate(MINT_PRIVATE_ADDRESS, "hex");
const MINT_PUBLIC_ADDRESS = MINT_KEY_PAIR.getPublic("hex");

// Your key pair
const privateKey = process.env.PRIVATE_KEY || "62d101759086c306848a0c1020922a78e8402e1330981afe9404d0ecc0a4be3d";
const keyPair = ec.keyFromPrivate(privateKey, "hex");
const publicKey = keyPair.getPublic("hex");

I know you asked us to refer to your previous YouTube video for steps to generate the keypairs but i didn't see it in the Creating Transaction video.

Please assist me or point me in the right direction.