Update 8_4_Scripting_a_Multisig.md

This commit is contained in:
Shannon Appelcline 2017-06-01 11:55:26 -07:00 committed by GitHub
parent 1133ccc212
commit d39995e424

View File

@ -60,27 +60,27 @@ Stack: [ 0 $signature1 $signature2 2 $address1 $address2 2 ]
``` ```
Then, the `OP_CHECKMULTISIG` begins to run. First, the "2" is popped: Then, the `OP_CHECKMULTISIG` begins to run. First, the "2" is popped:
``` ```
Script: OP_CHECKMULTISIG Running: OP_CHECKMULTISIG
Stack: [ 0 $signature1 $signature2 2 $address1 $address2 ] Stack: [ 0 $signature1 $signature2 2 $address1 $address2 ]
``` ```
Then, the "2" tells `OP_CHECKMULTISIG `to pop two addresses: Then, the "2" tells `OP_CHECKMULTISIG `to pop two addresses:
``` ```
Script: OP_CHECKMULTISIG Running: OP_CHECKMULTISIG
Stack: [ 0 $signature1 $signature2 2 ] Stack: [ 0 $signature1 $signature2 2 ]
``` ```
Then, the next "2" is popped: Then, the next "2" is popped:
``` ```
Script: OP_CHECKMULTISIG Running: OP_CHECKMULTISIG
Stack: [ 0 $signature1 $signature2 ] Stack: [ 0 $signature1 $signature2 ]
``` ```
Then, the "2" tells `OP_CHECKMULTISIG` to pop two signatures: Then, the "2" tells `OP_CHECKMULTISIG` to pop two signatures:
``` ```
Script: OP_CHECKMULTISIG Running: OP_CHECKMULTISIG
Stack: [ 0 ] Stack: [ 0 ]
``` ```
Then, one more item is mistakenly popped: Then, one more item is mistakenly popped:
``` ```
Script: OP_CHECKMULTISIG Running: OP_CHECKMULTISIG
Stack: [ ] Stack: [ ]
``` ```
Then, `OP_CHECKMULTISIG` completes its operation by comparing the "m" signatures to the "n" addresses: Then, `OP_CHECKMULTISIG` completes its operation by comparing the "m" signatures to the "n" addresses: