@Test public void serializeUnencryptedChildRoot() throws UnreadableWalletException { DeterministicHierarchy hierarchy = new DeterministicHierarchy(masterKey); DeterministicKey rootKey = hierarchy.get(BitcoinTest.get().getBip44Path(0), false, true); SimpleHDKeyChain newChain = new SimpleHDKeyChain(rootKey); serializeUnencrypted(newChain, DETERMINISTIC_WALLET_SERIALIZATION_TXT_CHILD_ROOT_KEY); }
@Test public void encryptionChildRoot() throws UnreadableWalletException { DeterministicHierarchy hierarchy = new DeterministicHierarchy(masterKey); DeterministicKey rootKey = hierarchy.get(BitcoinTest.get().getBip44Path(0), false, true); SimpleHDKeyChain newChain = new SimpleHDKeyChain(rootKey); encryption(newChain); }