Hey i am just learning that how to create bit coin key pair using javascript.
I had tried many times but unable to create code. So can you help me with that?
This is the code for mnemonic generation.
function generateMenomic(bytes) {
const randomEntropy = crypto.randomBytes(bytes).toString("hex");
// console.log(randomEntropy);
const menomic = bip39.entropyToMnemonic(randomEntropy);
return menomic;
}
Or else if there any another method then you can tell me that.
also i want to learn about how to create multiple account with multiple keypairs from same mnemonic 12 word? Like any of the wallet is doing outthere.
Looking for help.










