Oct 25 - Oct 25, 2024
The complexity and cost implications of using OP_CAT for such purposes are acknowledged. Two specific script examples are provided to illustrate the point. The first example demonstrates a more complex sequence involving operations such as OP_SWAP, OP_SIZE, OP_ADD, OP_TOALTSTACK, and OP_CAT, culminating in multiple concatenations and a final OP_HASH256 operation. The alternative, simpler approach directly uses three consecutive OP_HASH256 operations interspersed with OP_SWAP. This contrast highlights the trade-offs between complexity and efficiency in script optimization strategies.
Thread Summary (0 replies)
Oct 25 - Oct 25, 2024
1 messages
TLDR
We’ll email you summaries of the latest discussions from high signal bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project.
Give Feedback