mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-11-02 10:16:44 +00:00
add further restriction for checking if keystores can sign a psbt input
This commit is contained in:
parent
9d250437ad
commit
e298033cbb
1 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ import org.slf4j.Logger;
|
|||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
|
||||
public class Keystore extends Persistable {
|
||||
|
@ -252,7 +253,7 @@ public class Keystore extends Persistable {
|
|||
}
|
||||
}
|
||||
|
||||
if(derivation.size() == 2) {
|
||||
if(derivation.size() == 2 && KeyPurpose.fromChildNumber(derivation.get(0)) != null) {
|
||||
return getPubKey(new WalletNode(KeyDerivation.writePath(derivation)));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue