Create Signer interface and use it
This commit is contained in:
parent
1cc7205e9c
commit
691e4d15d1
7 changed files with 42 additions and 20 deletions
|
@ -1007,7 +1007,8 @@ function getSigningData(
|
|||
) {
|
||||
throw new Error('Inconsistent redeemScript');
|
||||
}
|
||||
const ourPubKey = keyPair.publicKey || keyPair.getPublicKey();
|
||||
const ourPubKey =
|
||||
keyPair.publicKey || (keyPair.getPublicKey && keyPair.getPublicKey());
|
||||
if (!canSign(input)) {
|
||||
if (witnessValue !== undefined) {
|
||||
if (input.value !== undefined && input.value !== witnessValue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue