Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Minor wording nits.
  • Loading branch information
daira authored Jan 13, 2022
1 parent 1b30e57 commit 5a4aefb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zip-0244.rst
Original file line number Diff line number Diff line change
Expand Up @@ -845,10 +845,10 @@ align with BIP 341 [#bip-0341]_:
P2SH (where ``scriptPubKey`` is fully executed prior to ``redeemScript``).
- For P2SH, this means we commit to the Hash160 digest of ``redeemScript``
instead of the actual script. Note that the Bitcoin P2SH design depends
entirely on Hash160 being preimage resistant, because otherwise anyone would
entirely on Hash160 being preimage-resistant, because otherwise anyone would
be able to spend someone else's P2SH UTXO using a preimage. We do need to
ensure that there is no collision attack; this holds because even if an
adversary could find a Hash160 collision, this would only enable them to
adversary could find a Hash160 collision, it would only enable them to
alter the input's ``scriptSig`` field. Doing so doesn't alter the effecting
data of the transaction, which by definition means the transaction has the
same effect under consensus (spends the same inputs and produces the same
Expand Down

0 comments on commit 5a4aefb

Please sign in to comment.