Wednesday, December 25, 2024
HomeBitcoinError message "mandatory-script-verify-flag-failed" when establishing a SigHash SINGLE | ANY transaction

Error message “mandatory-script-verify-flag-failed” when establishing a SigHash SINGLE | ANY transaction


One of many major potentialities that SigHash SINGLE | ANY (0x83) has, is to mix two or extra transactions with this explicit flag into one (Modularity).

That is the idea, however in terms of follow, it’s not working (no less than for me); Let me clarify:

I created this two transactions in testnet4, each spending just one enter and sending it to just one output, each P2PKH:

Transaction 1:

0100000001bd20399c1f2d841f1e147ad2e03df1635f48fc5b8cdbb55ea3a86b14225e2743000000006a4730440220435c5161232d1b3215c44169f7c0328f1af1d40b4a8f2ec16795f442e9b80f7e022047fd3dd15421d2a0956a79e2141f3a72d2fe69c4e6c5bcc75047bd6d8bf019f5832102313b35fdf7af967980d29e684c508c90e11d99b10cab20ef477c9e63d9bf7bf7ffffffff0158980000000000001976a914c103e57c094061209b419e5ca559704a8a22f3f988ac00000000

Transaction 2:

0100000001d38e64afa39dd966f96e07bf56ae44bc3d402630771480f461389edff8a0051e010000006a4730440220645a7a25ebb00194a3b2f940d5618d021f513c2dd9bdc0504f623824e9845d8e0220077af01808e98b7ca97d2927243f9beb8cbd48e85d07dde26ea46c2e79d6c2ee832102e90fb489e28444cdfd85057fcce5f6d6ab1ba525acf570a7ffa355dbb7f21162ffffffff0128a00000000000001976a914d80f48340dd7ee6c7fae287342d3eeb1d4d887e288ac00000000

Then, I’ve mixed them into one, ensuring that outputs are within the right index place:

0100000002bd20399c1f2d841f1e147ad2e03df1635f48fc5b8cdbb55ea3a86b14225e2743000000006a4730440220435c5161232d1b3215c44169f7c0328f1af1d40b4a8f2ec16795f442e9b80f7e022047fd3dd15421d2a0956a79e2141f3a72d2fe69c4e6c5bcc75047bd6d8bf019f5832102313b35fdf7af967980d29e684c508c90e11d99b10cab20ef477c9e63d9bf7bf7ffffffffd38e64afa39dd966f96e07bf56ae44bc3d402630771480f461389edff8a0051e010000006a4730440220645a7a25ebb00194a3b2f940d5618d021f513c2dd9bdc0504f623824e9845d8e0220077af01808e98b7ca97d2927243f9beb8cbd48e85d07dde26ea46c2e79d6c2ee832102e90fb489e28444cdfd85057fcce5f6d6ab1ba525acf570a7ffa355dbb7f21162ffffffff0258980000000000001976a914c103e57c094061209b419e5ca559704a8a22f3f988ac28a00000000000001976a914d80f48340dd7ee6c7fae287342d3eeb1d4d887e288ac00000000

After I confirm the signatures with a code that I created (that additionally reconstructs the Hash-Preimage of every one; I’ve checked that the Hash-Preimage reconstructed for every enter, is identical one because the Hash-Preimage of the transaction individually), the signatures are legitimate.

However when I attempt to broadcast it, the next error message seems: (code 26) Didn’t broadcast transaction, motive: mandatory-script-verify-flag-failed (Signature have to be zero for failed CHECK(MULTI)SIG operation)

What could possibly be taking place?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments