Skip to content

Commit

Permalink
add more explanation to OP_PUSH_TX
Browse files Browse the repository at this point in the history
  • Loading branch information
xhliu committed Mar 19, 2020
1 parent 17404c4 commit e7dffcb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/contracts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@ The following example shows usage of the standard contract ``P2PKH`` that corres
Contract "OP_PUSH_TX"
---------------------
sCrypt comes with a powerful contract called ``Tx`` that allows inspection of the transaction containing the contract itself.
One grave misconception regarding bitcoin script is that its access is only limited to the data provided in the locking script and corresponding unlocking script.
Thus, its scope and capability are greatly underestimated.

sCrypt comes with a powerful contract called ``Tx`` that allows inspection of the **ENTIRE TRANSACTION** containing the contract itself, besides the locking script and unlocking script.
More precisely, it enables inspection of the preimage used in signature verification defined in `BIP143`_.
The format of the preimage is as follows:

Expand Down

0 comments on commit e7dffcb

Please sign in to comment.