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
// This check is to make sure that the script we created can actually be solved for and signed by us
429
+
// if we were to have the private keys. This is just to make sure that the script is valid and that,
430
+
// if found in a transaction, we would still accept and relay that transaction. In particular,
431
+
// it will reject witness outputs that require signing with an uncompressed public key.
432
+
DummySignatureCreator creator(&store);
433
+
SignatureData sigs;
434
+
// Make sure that STANDARD_SCRIPT_VERIFY_FLAGS includes SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, the most
435
+
// important property this function is designed to test for.
436
+
static_assert(STANDARD_SCRIPT_VERIFY_FLAGS & SCRIPT_VERIFY_WITNESS_PUBKEYTYPE, "IsSolvable requires standard script flags to include WITNESS_PUBKEYTYPE");
437
+
if (ProduceSignature(creator, script, sigs)) {
438
+
// VerifyScript check is just defensive, and should never fail.
0 commit comments