Posted by Rusty Russell
Oct 22, 2023/04:16 UTC
The email from Brandon Black discusses the use of scripts in programming and the need for proper evaluation. Brandon mentions that he feels uncomfortable because he has not tested the scripts he has written so far. He also points out that writing scripts without iteration makes it difficult to evaluate N-input, but it would be useful to attempt this in order to gain insights into OP_TXHASH input selection. For example, there could be a mode where all inputs except one are considered.
Brandon also mentions that dealing with satoshi amounts is possible but messy, which will be discussed in his next post. Based on some examples provided, he believes that OP_MULTISHA256 is almost as powerful as OP_CAT, but without the stack limit problems. Additionally, Brandon states that OP_2SHA256 is not sufficient for CScriptNum generation in general, which suggests that using it to save two opcodes would be a premature optimization.
Overall, the email highlights the challenges and considerations related to script evaluation and provides insights into the limitations and potential alternatives to certain operations.
TLDR
We’ll email you summaries of the latest discussions from authoritative bitcoin sources, like bitcoin-dev, lightning-dev, and Delving Bitcoin.
We'd love to hear your feedback on this project?
Give Feedback