You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# TODO: If a witnessScript is provided, the scriptPubKey or the redeemScript must be for that witnessScript
83
+
58
84
# TODO
59
85
return 0;
60
86
}
@@ -149,17 +175,7 @@ sub sign
149
175
150
176
return$signed;
151
177
152
-
# TODO: add PSBT_IN_PARTIAL_SIG to inputs
153
-
# TODO: how to check if the input is ours?
154
-
# TODO: use PSBT_IN_BIP32_DERIVATION to locate the key
155
-
# TODO: create a signer and sign each type
156
-
# TODO: BIP170 checks:
157
-
# If a non-witness UTXO is provided, its hash must match the hash specified in the prevout
158
-
# If a witness UTXO is provided, no non-witness signature may be created
159
-
# If a redeemScript is provided, the scriptPubKey must be for that redeemScript
160
-
# If a witnessScript is provided, the scriptPubKey or the redeemScript must be for that witnessScript
161
-
# If a sighash type is provided, the signer must check that the sighash is acceptable. If unacceptable, they must fail.
162
-
# If a sighash type is not provided, the signer should sign using SIGHASH_ALL, but may use any sighash type they wish.
178
+
# TODO: If a sighash type is provided, the signer must check that the sighash is acceptable. If unacceptable, they must fail.
163
179
# TODO: this note
164
180
# For PSBTv2s, a signer must update the PSBT_GLOBAL_TX_MODIFIABLE field after signing inputs so that it accurately reflects the state of the PSBT. If the Signer added a signature that does not use SIGHASH_ANYONECANPAY, the Input Modifiable flag must be set to False. If the Signer added a signature that does not use SIGHASH_NONE, the Outputs Modifiable flag must be set to False. If the Signer added a signature that uses SIGHASH_SINGLE, the Has SIGHASH_SINGLE flag must be set to True.
0 commit comments