From 455e5887bf1663559c034601a9d0a180c6fdde07 Mon Sep 17 00:00:00 2001 From: Andrew Groot Date: Tue, 26 Jan 2021 10:54:58 -0500 Subject: [PATCH] Tweaks to modified locking script details. --- protocol/blockchain/transaction/transaction-signing.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/protocol/blockchain/transaction/transaction-signing.md b/protocol/blockchain/transaction/transaction-signing.md index fdbe7f9..c6c64cf 100644 --- a/protocol/blockchain/transaction/transaction-signing.md +++ b/protocol/blockchain/transaction/transaction-signing.md @@ -103,7 +103,8 @@ Second, the selected script (locking script or redeem script) is modified as fol * Find the [`OP_CODESEPARATOR`](/protocol/blockchain/script#cryptography) operation in the script preceding the expected [signature-verification operation](/protocol/blockchain/script#cryptography) (e.g. `OP_CHECKSIG`). * Remove all operations before this point. -* Remove any remaining `OP_CODESEPARATOR` operations. +* For Bitcoin Core signatures, remove any remaining `OP_CODESEPARATOR` operations. This requirement was dropped with [BCH-UAHF](/protocol/forks/bch-uahf) (activated in block 478,559). +* If creating this modified script for signature verification purposes, also remove any signatures that appeared in the unlocking script The resulting script is what is included in the signature preimage.