public Bip32HDKeyManager(HDECKeypair k) {
   keys.put(new int[] {}, new EncryptedDeterministicKey(KeyTransformer.make_DeterministicKey(k)));
   set_has_private_keys(true);
   if (k.password_protected()) {
     set_crypter(new KeyCrypterScrypt());
     set_password_protected(true);
   } else {
     set_password_protected(false);
   }
 }
 public Bip32HDKeyManager(HDECPublicKey k) {
   keys.put(new int[] {}, new EncryptedDeterministicKey(KeyTransformer.make_DeterministicKey(k)));
   set_has_private_keys(false);
   set_password_protected(false);
 }