Simple OP_EQUAL script (Script evaluated without error but finished with a false/empty top stack element)

I'm testing a P2TR script path spend.

The script tree contains a single script leaf with the following script:

hex: 5887
asm: OP_8 OP_EQUAL

The witness spending this output then consists of the following:

58 5887 <control block>

So the complete script should execute like this:

hex: 585887
asm: OP_8 OP_8 OP_EQUAL

However, when I try to send the transaction in to the network I get the following error:

error code: -26
error message:
mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)

Is this to be expected? Or might there be something else wrong with my witness structure (or the original script)?



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/BgrcWTs
via IFTTT

Popular posts from this blog

Do Kwon’s Detention Prolonged Until 2024 As Montenegro Responds To Extradition Requests

Sam Bankman-Fried Trial Begins Tomorrow: 3 Reasons Ex-SEC Official Foresees Conviction

April’s Crypto Game-Changers: 7 Events Set To Drastically Impact The Course Of Digital Currencies