Revise Note About Op Codes In Signature Scripts (closes #563)

Based on text and revisions by @petertodd and @luke-jr in pull #563.
This commit is contained in:
David A. Harding 2014-10-23 16:00:53 -04:00
parent 5959721141
commit 1061571b13
No known key found for this signature in database
GPG key ID: 4B29C30FF29EC4B7

View file

@ -52,10 +52,13 @@ A complete list of OP codes can be found on the Bitcoin Wiki [Script
Page][wiki script], with an authoritative list in the `opcodetype` enum Page][wiki script], with an authoritative list in the `opcodetype` enum
of the Bitcoin Core [script header file][core script.h] of the Bitcoin Core [script header file][core script.h]
Note: non-standard transactions can add non-data-pushing op codes to Note: Signature scripts are not signed, so anyone can modify them. This
their signature script, but signature scripts are run separately from the pubkey scripts (with a means signature scripts should only contain data and data-pushing op
shared stack), so signature scripts can't use arguments such as `OP_RETURN` to codes which can't be modified without causing the pubkey script to fail.
prevent the script from working as expected. Placing non-data-pushing op codes in the signature script currently
makes a transaction non-standard, and future consensus rules may forbid
such transactions altogether. (Non-data-pushing op codes are already
forbidden in signature scripts when spending a P2SH pubkey script.)
{% endautocrossref %} {% endautocrossref %}