Question for any Bitcoin Script-ers out there:

Taking op codes like OP_CLTV or the proposed OP_CTV, how could you combine them with other conditions in logical OR (using OP_BOOLOR or otherwise)?

I ask because if they evaluate to False, they terminate execution of the script with failure, immediately, right.

Reply to this note

Please Login to reply.

Discussion

Yeah since they immediately fail you'd have to put an OP_IF around them and require the "user" to put an OP_TRUE or OP_FALSE based on which path to go down

I see, I'd just reached the point of realizing that, but then the fact that IF needs externally provided input for choosing a branch doesn't quute fit.

Concretely i want "key a and cltv OR key b and ctv"; I'm now thinking, i should just use two tapleaves and then it's easy :)