Is it possible to generate new ethereum public address from extended public key?
Thanks!
Have you ended up finding this...
var hdkey = require('ethereumjs-wallet/hdkey');
var extPubKey = 'xpub6ERoQFMqiUoTXAL56JpQYLq5FyXaZypJiKdsAbHKzMUQsSiJTNSMnBtYYRXxda9C6fUx6mMMqatUDNFSKxxXcpBcpPkTqVwyethpWiQN8p5';
var hdwallet = hdkey.fromExtendedKey(extPubKey);
var wallet = hdwallet.getWallet();
var address = wallet.getAddress();
console.log(`Address: 0x${address.toString('hex')}`);
Thanks for looking!
Yea, I got it but I am getting a build error everytime :/
Don't know what's going wrong.If there's any other way, that would be so helpful.