5. 生成子私钥 BIP 44 子私钥 - QuincySx/BlockchainWallet-Crypto GitHub Wiki

//以最简单的方式生成根私钥
ExtendedKey aNew = ExtendedKey.createNew();

//直接获取子私钥
extendedKey.getChild(index);

//获取 Bip44 标准的子私钥
AddressIndex address = BIP44.m().purpose44()
                    .coinType(CoinTypes.Ethereum)
                    .account(0)
                    .external()
                    .address(0);
CoinPairDerive coinKeyPair = new CoinPairDerive(extendedKey);
ECKeyPair master = coinKeyPair.derive(address);