Loving just playing around with this library. Thank you. Was just coding up a little test thing. I copied and pasted a sample of the code. The issue is the result when using testnet gives an address td1qjdk4ashlydvrne997tls6cn7g9tpkq29q2fq6n
. However when I try and put this into my wallet, it gives an error about it not being base58. How do we go between what is outputted by account0.getAddress(0)
and what can be used in a wallet?
const { fromMnemonic, fromZPrv, fromZPub } = require('dogecoin-bip84')
var mnemonic = 'dolphin depart wild cannon fitness tennis emotion fruit tired dress office about pupil level iron'
var root = new fromMnemonic(mnemonic, '', true)
var child0 = root.deriveAccount(0)
var account0 = new fromZPrv(child0)
console.log('Address:', account0.getAddress(0))