6
1
Why are the substring opcodes disabled? I understand that OP_CAT is disabled because it can blow up the stack easily (in combination with OP_DUP). But the substring opcodes reduce the stack size.
Context:
I'd like to use OP_LEFT to implement a proof of work requirement to spend a transaction. A substring operation is needed because OP_ADD (for salting) and OP_GREATERTHAN only work on 32bit values.
So do you agree with my analysis, or can you see potential issues with these substring operations? Thanks for taking the time to answer my question! – hrobeers – 2016-09-23T11:31:24.303
I do not see any issues with those operations, no. – Pieter Wuille – 2016-09-23T11:57:11.400