• Welcome to forex.pm forex forum binary options trade. Please login or sign up.
 

Bitcoinj - Creating child public keys from a base 58 parent public key

Started by Bitcoin, Feb 06, 2022, 06:48 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Bitcoin

Bitcoinj - Creating child public keys from a base 58 parent public key

We're trying to derive a list of child address public keys from a parent public key with path "m/44H/0H/0H". The parent public key is derived using the HD seed.


Is this possible?


Example code


        DeterministicHierarchy dh = new DeterministicHierarchy(privateMasterKey);
        HDPath path = HDPath.parsePath("m/44H/0H/0H");

        DeterministicKey dk = dh.get(path.subList(0, path.size()), true, true);

We would like to store base 58 of the dk public key and then use it to derive children with paths m/44H/0H/0H/n.


Source: Bitcoinj - Creating child public keys from a base 58 parent public key