2
I'm looking for a lightweight node package which can handle creating btc receiving addresses on the server using an extended public key (segwit).
Like this one: zpub6nYqvTejCbqMTRTGz9rHkJnrJKbLsx36LqLnUJChDdJ6a5NA7hBumEpn9HTSDgWpNTNCponkPCBL5VKeAaScVxbXa1H4RPmA4j19rzgJPRp
I tried using https://www.npmjs.com/package/bitcoin-receive-payments But I don't want an OpenExchangeRates account to use this.
There is this guide on PHP https://freedomnode.com/blog/58/generate-bitcoin-wallet-addresses-from-extended-public-key-with-php
But I can't find any equivalent for JS.
I would also be very thankful if there is any explaination for non Math people, as I am just looking to generate addresses on a server based off an extended address.
Someone knows?
Sorry but it seems that your code does not work on my side... i tried to change it to
let address = bitcoin.bip32.fromBase58(xpub).derivePath(acctNumber+"/"+keyindex).__Q.toString('hex');but i cant find the getAddress method here... – rW3ZpUdwYducwSuD – 2018-10-03T02:52:55.527