On Sat, Oct 21, 2023 at 01:08:03AM -0400, Ethan Heilman via bitcoin-dev wrote: > OP_CAT fails if there are less than two values on the stack or if a > concatenated value would have a combined size of greater than the > maximum script element size of 520 Bytes.
Note that if OP_CAT immediately _succeeds_ if the combined size is >= 520 bytes, reverting to the behavior of OP_SUCCESSx, the maximum size can be increased in a subsequent soft fork. Of course, this would often require extra opcodes to validate the size of non-const arguments. But you'd only need another five or six bytes in many cases: SIZE <n> LESSTHAN VERIFY <fixed data> CAT -- https://petertodd.org 'peter'[:-1]@petertodd.org
signature.asc
Description: PGP signature
_______________________________________________ bitcoin-dev mailing list bitcoin-dev@lists.linuxfoundation.org https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev