비트코인 스크립트의 실행 모델에 대한 오해와 이해 과정을 설명하는 글입니다.
이 글은 P2SH 트랜잭션에서 redeemScript의 실행에 대한 오해를 다루고 있습니다. 저자는 스택에 데이터를 푸시한 후에도 스택의 데이터는 코드로 실행되지 않는다는 점을 이해하게 됩니다. 비트코인 스크립트에서 실행되는 것은 스크립트 본문에 작성된 명령어뿐이며, 스택에 있는 데이터는 단순히 데이터로 취급됩니다. 다양한 개념을 명확히 하며 비트코인 스크립트의 작동 방식을 설명합니다.
This article explains misconceptions and insights about the execution model of Bitcoin Script.
This article addresses misconceptions about the execution of redeemScript in a P2SH transaction. The author realizes that data pushed onto the stack is not executed as code, highlighting the differences in Bitcoin Script's execution model. Only the instructions written in the script body actually run, while stack data is treated merely as data. The piece clarifies various concepts and explains how Bitcoin Script functions.