to generate child public keys from an ypub (BIP 49) and zpub (BIP84) extended public keys. It works great.
Now I want to generate these child public keys for a different (non-zero) account, i.e. to derive a public key for m'/49'/1'/1'/0/0 instead of m/49'/1'/0'/0/0 and so on. How would I go about that? The reason is that wallets have multiple accounts, and they expose an extended public key for each of these accounts. I want to derive addresses for all the accounts, not just for 0.
I'm using this code
to generate child public keys from an ypub (BIP 49) and zpub (BIP84) extended public keys. It works great.
Now I want to generate these child public keys for a different (non-zero) account, i.e. to derive a public key for m'/49'/1'/1'/0/0 instead of m/49'/1'/0'/0/0 and so on. How would I go about that? The reason is that wallets have multiple accounts, and they expose an extended public key for each of these accounts. I want to derive addresses for all the accounts, not just for 0.