1
0
mirror of https://github.com/bitcoinbook/bitcoinbook synced 2024-11-22 08:08:11 +00:00

Edited ch07_authorization-authentication.adoc with Atlas code editor

This commit is contained in:
clenser 2023-10-28 18:43:22 +00:00
parent 291c757480
commit 0c44ee53cd

View File

@ -383,7 +383,7 @@ script may include multiple of those opcodes.
[[multisig_bug]] [[multisig_bug]]
==== An Oddity in CHECKMULTISIG Execution ==== An Oddity in CHECKMULTISIG Execution
There ((("OP_CHECKMULTISIG execution", id="op-checkmultisig")))((("CHECKMULTISIG execution", id="checkmultisig")))is an oddity in There ((("OP_CHECKMULTISIG execution", id="op-checkmultisig")))is an oddity in
++OP_CHECKMULTISIG++'s execution that requires a slight workaround. When ++OP_CHECKMULTISIG++'s execution that requires a slight workaround. When
+OP_CHECKMULTISIG+ executes, it should consume _t_ + _k_ + 2 items on the stack as +OP_CHECKMULTISIG+ executes, it should consume _t_ + _k_ + 2 items on the stack as
parameters. However, due to the oddity, +OP_CHECKMULTISIG+ will pop an extra parameters. However, due to the oddity, +OP_CHECKMULTISIG+ will pop an extra
@ -463,7 +463,7 @@ book, we simply call it an oddity.
From now on, if you see a multisig script, you should expect From now on, if you see a multisig script, you should expect
to see an extra +OP_0+ in the beginning, whose only purpose is as a to see an extra +OP_0+ in the beginning, whose only purpose is as a
workaround to an oddity in the ((("scripts", "multisignature", startref="script-multisignature")))((("multisignature scripts", startref="multi-script")))((("OP_CHECKMULTISIG execution", startref="op-checkmultisig")))((("CHECKMULTISIG execution", startref="checkmultisig")))consensus rules. workaround to an oddity in the ((("scripts", "multisignature", startref="script-multisignature")))((("multisignature scripts", startref="multi-script")))((("OP_CHECKMULTISIG execution", startref="op-checkmultisig")))consensus rules.
[[p2sh]] [[p2sh]]
=== Pay to Script Hash === Pay to Script Hash