remove key derivation method

This commit is contained in:
Craig Raw 2022-07-14 16:07:55 +02:00
parent d489aa6af9
commit fefebbabb5

View file

@ -740,17 +740,6 @@ public class Wallet extends Persistable implements Comparable<Wallet> {
}
}
public void derivePublicKeys() {
for(KeyPurpose keyPurpose : KeyPurpose.DEFAULT_PURPOSES) {
WalletNode purposeNode = getNode(keyPurpose);
for(WalletNode addressNode : purposeNode.getChildren()) {
for(Keystore keystore : getKeystores()) {
keystore.getPubKey(addressNode);
}
}
}
}
public boolean isWalletTxo(TransactionInput txInput) {
return getWalletTxos().keySet().stream().anyMatch(ref -> ref.getHash().equals(txInput.getOutpoint().getHash()) && ref.getIndex() == txInput.getOutpoint().getIndex());
}