コード例 #1
0
 @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);
 }
コード例 #2
0
  @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);
  }